/// <summary>Snippet for GetCampaignBidModifier</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetCampaignBidModifierResourceNames()
 {
     // Create client
     CampaignBidModifierServiceClient campaignBidModifierServiceClient = CampaignBidModifierServiceClient.Create();
     // Initialize request argument(s)
     CampaignBidModifierName resourceName = CampaignBidModifierName.FromCustomerCampaignBidModifier("[CUSTOMER]", "[CAMPAIGN_BID_MODIFIER]");
     // Make the request
     CampaignBidModifier response = campaignBidModifierServiceClient.GetCampaignBidModifier(resourceName);
 }
コード例 #2
0
        /// <summary>Snippet for GetCampaignBidModifierAsync</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 GetCampaignBidModifierRequestObjectAsync()
        {
            // Create client
            CampaignBidModifierServiceClient campaignBidModifierServiceClient = await CampaignBidModifierServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCampaignBidModifierRequest request = new GetCampaignBidModifierRequest
            {
                ResourceNameAsCampaignBidModifierName = CampaignBidModifierName.FromCustomerCampaignBidModifier("[CUSTOMER]", "[CAMPAIGN_BID_MODIFIER]"),
            };
            // Make the request
            CampaignBidModifier response = await campaignBidModifierServiceClient.GetCampaignBidModifierAsync(request);
        }
コード例 #3
0
 /// <summary>Snippet for GetCampaignBidModifier</summary>
 public void GetCampaignBidModifierRequestObject()
 {
     // Snippet: GetCampaignBidModifier(GetCampaignBidModifierRequest, CallSettings)
     // Create client
     CampaignBidModifierServiceClient campaignBidModifierServiceClient = CampaignBidModifierServiceClient.Create();
     // Initialize request argument(s)
     GetCampaignBidModifierRequest request = new GetCampaignBidModifierRequest
     {
         ResourceNameAsCampaignBidModifierName = CampaignBidModifierName.FromCustomerCampaignBidModifier("[CUSTOMER]", "[CAMPAIGN_BID_MODIFIER]"),
     };
     // Make the request
     CampaignBidModifier response = campaignBidModifierServiceClient.GetCampaignBidModifier(request);
     // End snippet
 }
コード例 #4
0
        /// <summary>Snippet for GetCampaignBidModifierAsync</summary>
        public async Task GetCampaignBidModifierResourceNamesAsync()
        {
            // Snippet: GetCampaignBidModifierAsync(CampaignBidModifierName, CallSettings)
            // Additional: GetCampaignBidModifierAsync(CampaignBidModifierName, CancellationToken)
            // Create client
            CampaignBidModifierServiceClient campaignBidModifierServiceClient = await CampaignBidModifierServiceClient.CreateAsync();

            // Initialize request argument(s)
            CampaignBidModifierName resourceName = CampaignBidModifierName.FromCustomerCampaignBidModifier("[CUSTOMER]", "[CAMPAIGN_BID_MODIFIER]");
            // Make the request
            CampaignBidModifier response = await campaignBidModifierServiceClient.GetCampaignBidModifierAsync(resourceName);

            // End snippet
        }