Exemple #1
0
 /// <summary>Snippet for GetCampaignSimulation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetCampaignSimulationResourceNames()
 {
     // Create client
     CampaignSimulationServiceClient campaignSimulationServiceClient = CampaignSimulationServiceClient.Create();
     // Initialize request argument(s)
     CampaignSimulationName resourceName = CampaignSimulationName.FromCustomerCampaignTypeModificationMethodStartDateEndDate("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[TYPE]", "[MODIFICATION_METHOD]", "[START_DATE]", "[END_DATE]");
     // Make the request
     CampaignSimulation response = campaignSimulationServiceClient.GetCampaignSimulation(resourceName);
 }
        /// <summary>Snippet for GetCampaignSimulationAsync</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 GetCampaignSimulationRequestObjectAsync()
        {
            // Create client
            CampaignSimulationServiceClient campaignSimulationServiceClient = await CampaignSimulationServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCampaignSimulationRequest request = new GetCampaignSimulationRequest
            {
                ResourceNameAsCampaignSimulationName = CampaignSimulationName.FromCustomerCampaignTypeModificationMethodStartDateEndDate("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[TYPE]", "[MODIFICATION_METHOD]", "[START_DATE]", "[END_DATE]"),
            };
            // Make the request
            CampaignSimulation response = await campaignSimulationServiceClient.GetCampaignSimulationAsync(request);
        }
Exemple #3
0
 /// <summary>Snippet for GetCampaignSimulation</summary>
 public void GetCampaignSimulationRequestObject()
 {
     // Snippet: GetCampaignSimulation(GetCampaignSimulationRequest, CallSettings)
     // Create client
     CampaignSimulationServiceClient campaignSimulationServiceClient = CampaignSimulationServiceClient.Create();
     // Initialize request argument(s)
     GetCampaignSimulationRequest request = new GetCampaignSimulationRequest
     {
         ResourceNameAsCampaignSimulationName = CampaignSimulationName.FromCustomerCampaignTypeModificationMethodStartDateEndDate("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[TYPE]", "[MODIFICATION_METHOD]", "[START_DATE]", "[END_DATE]"),
     };
     // Make the request
     CampaignSimulation response = campaignSimulationServiceClient.GetCampaignSimulation(request);
     // End snippet
 }
Exemple #4
0
        /// <summary>Snippet for GetCampaignSimulationAsync</summary>
        public async Task GetCampaignSimulationResourceNamesAsync()
        {
            // Snippet: GetCampaignSimulationAsync(CampaignSimulationName, CallSettings)
            // Additional: GetCampaignSimulationAsync(CampaignSimulationName, CancellationToken)
            // Create client
            CampaignSimulationServiceClient campaignSimulationServiceClient = await CampaignSimulationServiceClient.CreateAsync();

            // Initialize request argument(s)
            CampaignSimulationName resourceName = CampaignSimulationName.FromCustomerCampaignTypeModificationMethodStartDateEndDate("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[TYPE]", "[MODIFICATION_METHOD]", "[START_DATE]", "[END_DATE]");
            // Make the request
            CampaignSimulation response = await campaignSimulationServiceClient.GetCampaignSimulationAsync(resourceName);

            // End snippet
        }