/// <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 GetCampaignCriterionSimulationResourceNamesAsync() { // 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); }
/// <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 GetCampaignCriterionSimulationAsync() { // Create client CampaignCriterionSimulationServiceClient campaignCriterionSimulationServiceClient = await CampaignCriterionSimulationServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/campaignCriterionSimulations/[CAMPAIGN_ID]~[CRITERION_ID]~[TYPE]~[MODIFICATION_METHOD]~[START_DATE]~[END_DATE]"; // Make the request CampaignCriterionSimulation response = await campaignCriterionSimulationServiceClient.GetCampaignCriterionSimulationAsync(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 GetCampaignCriterionSimulationAsync() { // Create client CampaignCriterionSimulationServiceClient campaignCriterionSimulationServiceClient = await CampaignCriterionSimulationServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/campaignCriterionSimulations/[CAMPAIGN_CRITERION_SIMULATION]"; // Make the request CampaignCriterionSimulation response = await campaignCriterionSimulationServiceClient.GetCampaignCriterionSimulationAsync(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 GetCampaignCriterionSimulationResourceNamesAsync() { // Create client CampaignCriterionSimulationServiceClient campaignCriterionSimulationServiceClient = await CampaignCriterionSimulationServiceClient.CreateAsync(); // Initialize request argument(s) CampaignCriterionSimulationName resourceName = CampaignCriterionSimulationName.FromCustomerCampaignCriterionSimulation("[CUSTOMER]", "[CAMPAIGN_CRITERION_SIMULATION]"); // Make the request CampaignCriterionSimulation response = await campaignCriterionSimulationServiceClient.GetCampaignCriterionSimulationAsync(resourceName); }
/// <summary>Snippet for GetCampaignCriterionSimulationAsync</summary> public async Task GetCampaignCriterionSimulationAsync() { // Snippet: GetCampaignCriterionSimulationAsync(string, CallSettings) // Additional: GetCampaignCriterionSimulationAsync(string, CancellationToken) // Create client CampaignCriterionSimulationServiceClient campaignCriterionSimulationServiceClient = await CampaignCriterionSimulationServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/campaignCriterionSimulations/[CAMPAIGN_CRITERION_SIMULATION]"; // Make the request CampaignCriterionSimulation response = await campaignCriterionSimulationServiceClient.GetCampaignCriterionSimulationAsync(resourceName); // End snippet }
/// <summary>Snippet for GetCampaignCriterionSimulationAsync</summary> public async Task GetCampaignCriterionSimulationRequestObjectAsync() { // Snippet: GetCampaignCriterionSimulationAsync(GetCampaignCriterionSimulationRequest, CallSettings) // Additional: GetCampaignCriterionSimulationAsync(GetCampaignCriterionSimulationRequest, CancellationToken) // Create client CampaignCriterionSimulationServiceClient campaignCriterionSimulationServiceClient = await CampaignCriterionSimulationServiceClient.CreateAsync(); // Initialize request argument(s) GetCampaignCriterionSimulationRequest request = new GetCampaignCriterionSimulationRequest { ResourceNameAsCampaignCriterionSimulationName = CampaignCriterionSimulationName.FromCustomerCampaignCriterionSimulation("[CUSTOMER]", "[CAMPAIGN_CRITERION_SIMULATION]"), }; // Make the request CampaignCriterionSimulation response = await campaignCriterionSimulationServiceClient.GetCampaignCriterionSimulationAsync(request); // End snippet }
/// <summary>Snippet for GetCampaignCriterionSimulationAsync</summary> public async Task GetCampaignCriterionSimulationRequestObjectAsync() { // Snippet: GetCampaignCriterionSimulationAsync(GetCampaignCriterionSimulationRequest, CallSettings) // Additional: GetCampaignCriterionSimulationAsync(GetCampaignCriterionSimulationRequest, CancellationToken) // 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); // End snippet }