/// <summary>Snippet for GetAdGroupSimulation</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetAdGroupSimulationResourceNames()
 {
     // Create client
     AdGroupSimulationServiceClient adGroupSimulationServiceClient = AdGroupSimulationServiceClient.Create();
     // Initialize request argument(s)
     AdGroupSimulationName resourceName = AdGroupSimulationName.FromCustomerAdGroupSimulation("[CUSTOMER]", "[AD_GROUP_SIMULATION]");
     // Make the request
     AdGroupSimulation response = adGroupSimulationServiceClient.GetAdGroupSimulation(resourceName);
 }
示例#2
0
        /// <summary>Snippet for GetAdGroupSimulationAsync</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 GetAdGroupSimulationRequestObjectAsync()
        {
            // Create client
            AdGroupSimulationServiceClient adGroupSimulationServiceClient = await AdGroupSimulationServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetAdGroupSimulationRequest request = new GetAdGroupSimulationRequest
            {
                ResourceNameAsAdGroupSimulationName = AdGroupSimulationName.FromCustomerAdGroupSimulation("[CUSTOMER]", "[AD_GROUP_SIMULATION]"),
            };
            // Make the request
            AdGroupSimulation response = await adGroupSimulationServiceClient.GetAdGroupSimulationAsync(request);
        }
 /// <summary>Snippet for GetAdGroupSimulation</summary>
 public void GetAdGroupSimulationRequestObject()
 {
     // Snippet: GetAdGroupSimulation(GetAdGroupSimulationRequest, CallSettings)
     // Create client
     AdGroupSimulationServiceClient adGroupSimulationServiceClient = AdGroupSimulationServiceClient.Create();
     // Initialize request argument(s)
     GetAdGroupSimulationRequest request = new GetAdGroupSimulationRequest
     {
         ResourceNameAsAdGroupSimulationName = AdGroupSimulationName.FromCustomerAdGroupSimulation("[CUSTOMER]", "[AD_GROUP_SIMULATION]"),
     };
     // Make the request
     AdGroupSimulation response = adGroupSimulationServiceClient.GetAdGroupSimulation(request);
     // End snippet
 }
        /// <summary>Snippet for GetAdGroupSimulationAsync</summary>
        public async Task GetAdGroupSimulationResourceNamesAsync()
        {
            // Snippet: GetAdGroupSimulationAsync(AdGroupSimulationName, CallSettings)
            // Additional: GetAdGroupSimulationAsync(AdGroupSimulationName, CancellationToken)
            // Create client
            AdGroupSimulationServiceClient adGroupSimulationServiceClient = await AdGroupSimulationServiceClient.CreateAsync();

            // Initialize request argument(s)
            AdGroupSimulationName resourceName = AdGroupSimulationName.FromCustomerAdGroupSimulation("[CUSTOMER]", "[AD_GROUP_SIMULATION]");
            // Make the request
            AdGroupSimulation response = await adGroupSimulationServiceClient.GetAdGroupSimulationAsync(resourceName);

            // End snippet
        }