/// <summary>Snippet for GenerateReachForecastAsync</summary>
        public async Task GenerateReachForecastRequestObjectAsync()
        {
            // Snippet: GenerateReachForecastAsync(GenerateReachForecastRequest, CallSettings)
            // Additional: GenerateReachForecastAsync(GenerateReachForecastRequest, CancellationToken)
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            GenerateReachForecastRequest request = new GenerateReachForecastRequest
            {
                CustomerId       = "",
                CampaignDuration = new CampaignDuration(),
                Targeting        = new Targeting(),
                PlannedProducts  =
                {
                    new PlannedProduct(),
                },
                CookieFrequencyCapSetting = new FrequencyCap(),
                CurrencyCode          = "",
                CookieFrequencyCap    = 0,
                MinEffectiveFrequency = 0,
            };
            // Make the request
            GenerateReachForecastResponse response = await reachPlanServiceClient.GenerateReachForecastAsync(request);

            // End snippet
        }
        /// <summary>Snippet for ListPlannableProductsAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task ListPlannableProductsAsync()
        {
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            string plannableLocationId = "";
            // Make the request
            ListPlannableProductsResponse response = await reachPlanServiceClient.ListPlannableProductsAsync(plannableLocationId);
        }
Beispiel #3
0
        /// <summary>Snippet for ListPlannableLocationsAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task ListPlannableLocationsRequestObjectAsync()
        {
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            ListPlannableLocationsRequest request = new ListPlannableLocationsRequest {
            };
            // Make the request
            ListPlannableLocationsResponse response = await reachPlanServiceClient.ListPlannableLocationsAsync(request);
        }
Beispiel #4
0
        /// <summary>Snippet for GenerateProductMixIdeasAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GenerateProductMixIdeasAsync()
        {
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId          = "";
            string plannableLocationId = "";
            string currencyCode        = "";
            long   budgetMicros        = 0L;
            // Make the request
            GenerateProductMixIdeasResponse response = await reachPlanServiceClient.GenerateProductMixIdeasAsync(customerId, plannableLocationId, currencyCode, budgetMicros);
        }
        /// <summary>Snippet for ListPlannableProductsAsync</summary>
        public async Task ListPlannableProductsAsync()
        {
            // Snippet: ListPlannableProductsAsync(string, CallSettings)
            // Additional: ListPlannableProductsAsync(string, CancellationToken)
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            string plannableLocationId = "";
            // Make the request
            ListPlannableProductsResponse response = await reachPlanServiceClient.ListPlannableProductsAsync(plannableLocationId);

            // End snippet
        }
        /// <summary>Snippet for ListPlannableLocationsAsync</summary>
        public async Task ListPlannableLocationsRequestObjectAsync()
        {
            // Snippet: ListPlannableLocationsAsync(ListPlannableLocationsRequest, CallSettings)
            // Additional: ListPlannableLocationsAsync(ListPlannableLocationsRequest, CancellationToken)
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            ListPlannableLocationsRequest request = new ListPlannableLocationsRequest {
            };
            // Make the request
            ListPlannableLocationsResponse response = await reachPlanServiceClient.ListPlannableLocationsAsync(request);

            // End snippet
        }
Beispiel #7
0
        /// <summary>Snippet for GenerateReachForecastAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GenerateReachForecastAsync()
        {
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            string                       customerId       = "";
            CampaignDuration             campaignDuration = new CampaignDuration();
            IEnumerable <PlannedProduct> plannedProducts  = new PlannedProduct[]
            {
                new PlannedProduct(),
            };
            // Make the request
            GenerateReachForecastResponse response = await reachPlanServiceClient.GenerateReachForecastAsync(customerId, campaignDuration, plannedProducts);
        }
        /// <summary>Snippet for GenerateProductMixIdeasAsync</summary>
        public async Task GenerateProductMixIdeasAsync()
        {
            // Snippet: GenerateProductMixIdeasAsync(string, string, string, long, CallSettings)
            // Additional: GenerateProductMixIdeasAsync(string, string, string, long, CancellationToken)
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId          = "";
            string plannableLocationId = "";
            string currencyCode        = "";
            long   budgetMicros        = 0L;
            // Make the request
            GenerateProductMixIdeasResponse response = await reachPlanServiceClient.GenerateProductMixIdeasAsync(customerId, plannableLocationId, currencyCode, budgetMicros);

            // End snippet
        }
        /// <summary>Snippet for GenerateProductMixIdeasAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GenerateProductMixIdeasRequestObjectAsync()
        {
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            GenerateProductMixIdeasRequest request = new GenerateProductMixIdeasRequest
            {
                CustomerId          = "",
                Preferences         = new Preferences(),
                PlannableLocationId = "",
                CurrencyCode        = "",
                BudgetMicros        = 0L,
            };
            // Make the request
            GenerateProductMixIdeasResponse response = await reachPlanServiceClient.GenerateProductMixIdeasAsync(request);
        }
        /// <summary>Snippet for GenerateReachForecastAsync</summary>
        public async Task GenerateReachForecastAsync()
        {
            // Snippet: GenerateReachForecastAsync(string, CampaignDuration, IEnumerable<PlannedProduct>, CallSettings)
            // Additional: GenerateReachForecastAsync(string, CampaignDuration, IEnumerable<PlannedProduct>, CancellationToken)
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            string                       customerId       = "";
            CampaignDuration             campaignDuration = new CampaignDuration();
            IEnumerable <PlannedProduct> plannedProducts  = new PlannedProduct[]
            {
                new PlannedProduct(),
            };
            // Make the request
            GenerateReachForecastResponse response = await reachPlanServiceClient.GenerateReachForecastAsync(customerId, campaignDuration, plannedProducts);

            // End snippet
        }
        /// <summary>Snippet for GenerateProductMixIdeasAsync</summary>
        public async Task GenerateProductMixIdeasRequestObjectAsync()
        {
            // Snippet: GenerateProductMixIdeasAsync(GenerateProductMixIdeasRequest, CallSettings)
            // Additional: GenerateProductMixIdeasAsync(GenerateProductMixIdeasRequest, CancellationToken)
            // Create client
            ReachPlanServiceClient reachPlanServiceClient = await ReachPlanServiceClient.CreateAsync();

            // Initialize request argument(s)
            GenerateProductMixIdeasRequest request = new GenerateProductMixIdeasRequest
            {
                CustomerId          = "",
                PlannableLocationId = "",
                CurrencyCode        = "",
                BudgetMicros        = 0L,
                Preferences         = new Preferences(),
            };
            // Make the request
            GenerateProductMixIdeasResponse response = await reachPlanServiceClient.GenerateProductMixIdeasAsync(request);

            // End snippet
        }