Exemple #1
0
 /// <summary>Snippet for GetCampaignCriterionSimulation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetCampaignCriterionSimulationResourceNames()
 {
     // Create client
     CampaignCriterionSimulationServiceClient campaignCriterionSimulationServiceClient = CampaignCriterionSimulationServiceClient.Create();
     // Initialize request argument(s)
     CampaignCriterionSimulationName resourceName = CampaignCriterionSimulationName.FromCustomerCampaignCriterionTypeModificationMethodStartDateEndDate("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[CRITERION_ID]", "[TYPE]", "[MODIFICATION_METHOD]", "[START_DATE]", "[END_DATE]");
     // Make the request
     CampaignCriterionSimulation response = campaignCriterionSimulationServiceClient.GetCampaignCriterionSimulation(resourceName);
 }
        /// <summary>Snippet for GetCampaignCriterionSimulationAsync</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 GetCampaignCriterionSimulationRequestObjectAsync()
        {
            // Create client
            CampaignCriterionSimulationServiceClient campaignCriterionSimulationServiceClient = await CampaignCriterionSimulationServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCampaignCriterionSimulationRequest request = new GetCampaignCriterionSimulationRequest
            {
                ResourceNameAsCampaignCriterionSimulationName = CampaignCriterionSimulationName.FromCustomerCampaignCriterionTypeModificationMethodStartDateEndDate("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[CRITERION_ID]", "[TYPE]", "[MODIFICATION_METHOD]", "[START_DATE]", "[END_DATE]"),
            };
            // Make the request
            CampaignCriterionSimulation response = await campaignCriterionSimulationServiceClient.GetCampaignCriterionSimulationAsync(request);
        }
Exemple #3
0
 /// <summary>Snippet for GetCampaignCriterionSimulation</summary>
 public void GetCampaignCriterionSimulationRequestObject()
 {
     // Snippet: GetCampaignCriterionSimulation(GetCampaignCriterionSimulationRequest, CallSettings)
     // Create client
     CampaignCriterionSimulationServiceClient campaignCriterionSimulationServiceClient = CampaignCriterionSimulationServiceClient.Create();
     // Initialize request argument(s)
     GetCampaignCriterionSimulationRequest request = new GetCampaignCriterionSimulationRequest
     {
         ResourceNameAsCampaignCriterionSimulationName = CampaignCriterionSimulationName.FromCustomerCampaignCriterionTypeModificationMethodStartDateEndDate("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[CRITERION_ID]", "[TYPE]", "[MODIFICATION_METHOD]", "[START_DATE]", "[END_DATE]"),
     };
     // Make the request
     CampaignCriterionSimulation response = campaignCriterionSimulationServiceClient.GetCampaignCriterionSimulation(request);
     // End snippet
 }
Exemple #4
0
        /// <summary>Snippet for GetCampaignCriterionSimulationAsync</summary>
        public async Task GetCampaignCriterionSimulationResourceNamesAsync()
        {
            // Snippet: GetCampaignCriterionSimulationAsync(CampaignCriterionSimulationName, CallSettings)
            // Additional: GetCampaignCriterionSimulationAsync(CampaignCriterionSimulationName, CancellationToken)
            // Create client
            CampaignCriterionSimulationServiceClient campaignCriterionSimulationServiceClient = await CampaignCriterionSimulationServiceClient.CreateAsync();

            // Initialize request argument(s)
            CampaignCriterionSimulationName resourceName = CampaignCriterionSimulationName.FromCustomerCampaignCriterionTypeModificationMethodStartDateEndDate("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[CRITERION_ID]", "[TYPE]", "[MODIFICATION_METHOD]", "[START_DATE]", "[END_DATE]");
            // Make the request
            CampaignCriterionSimulation response = await campaignCriterionSimulationServiceClient.GetCampaignCriterionSimulationAsync(resourceName);

            // End snippet
        }