Exemple #1
0
        /// <summary>Snippet for RunPivotReportAsync</summary>
        public async Task RunPivotReportRequestObjectAsync()
        {
            // Snippet: RunPivotReportAsync(RunPivotReportRequest, CallSettings)
            // Additional: RunPivotReportAsync(RunPivotReportRequest, CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

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

            // End snippet
        }
        /// <summary>Snippet for RunPivotReportAsync</summary>
        public async Task RunPivotReportAsync_RequestObject()
        {
            // Snippet: RunPivotReportAsync(RunPivotReportRequest,CallSettings)
            // Additional: RunPivotReportAsync(RunPivotReportRequest,CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            RunPivotReportRequest request = new RunPivotReportRequest();
            // Make the request
            RunPivotReportResponse response = await alphaAnalyticsDataClient.RunPivotReportAsync(request);

            // End snippet
        }