コード例 #1
0
        /// <summary>Snippet for RunReportAsync</summary>
        public async Task RunReportRequestObjectAsync()
        {
            // Snippet: RunReportAsync(RunReportRequest, CallSettings)
            // Additional: RunReportAsync(RunReportRequest, CancellationToken)
            // Create client
            AlphaAnalyticsDataClient alphaAnalyticsDataClient = await AlphaAnalyticsDataClient.CreateAsync();

            // Initialize request argument(s)
            RunReportRequest request = new RunReportRequest
            {
                Entity             = new Entity(),
                Dimensions         = { new Dimension(), },
                Metrics            = { new Metric(), },
                DateRanges         = { new DateRange(), },
                Offset             = 0L,
                Limit              = 0L,
                MetricAggregations =
                {
                    MetricAggregation.Unspecified,
                },
                DimensionFilter     = new FilterExpression(),
                MetricFilter        = new FilterExpression(),
                OrderBys            = { new OrderBy(), },
                CurrencyCode        = "",
                CohortSpec          = new CohortSpec(),
                KeepEmptyRows       = false,
                ReturnPropertyQuota = false,
            };
            // Make the request
            RunReportResponse response = await alphaAnalyticsDataClient.RunReportAsync(request);

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

            // Initialize request argument(s)
            RunReportRequest request = new RunReportRequest();
            // Make the request
            RunReportResponse response = await alphaAnalyticsDataClient.RunReportAsync(request);

            // End snippet
        }