Пример #1
0
        /// <summary>Snippet for RunPivotReportAsync</summary>
        public async Task RunPivotReportRequestObjectAsync()
        {
            // Snippet: RunPivotReportAsync(RunPivotReportRequest, CallSettings)
            // Additional: RunPivotReportAsync(RunPivotReportRequest, CancellationToken)
            // Create client
            BetaAnalyticsDataClient betaAnalyticsDataClient = await BetaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            RunPivotReportRequest request = new RunPivotReportRequest
            {
                Property            = "",
                Dimensions          = { new Dimension(), },
                Metrics             = { new Metric(), },
                DateRanges          = { new DateRange(), },
                Pivots              = { new Pivot(), },
                DimensionFilter     = new FilterExpression(),
                MetricFilter        = new FilterExpression(),
                CurrencyCode        = "",
                CohortSpec          = new CohortSpec(),
                KeepEmptyRows       = false,
                ReturnPropertyQuota = false,
            };
            // Make the request
            RunPivotReportResponse response = await betaAnalyticsDataClient.RunPivotReportAsync(request);

            // End snippet
        }