/// <summary>Snippet for GetSmartCampaignSetting</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetSmartCampaignSettingResourceNames()
 {
     // Create client
     SmartCampaignSettingServiceClient smartCampaignSettingServiceClient = SmartCampaignSettingServiceClient.Create();
     // Initialize request argument(s)
     SmartCampaignSettingName resourceName = SmartCampaignSettingName.FromCustomerCampaign("[CUSTOMER_ID]", "[CAMPAIGN_ID]");
     // Make the request
     SmartCampaignSetting response = smartCampaignSettingServiceClient.GetSmartCampaignSetting(resourceName);
 }
        /// <summary>Snippet for GetSmartCampaignSettingAsync</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 GetSmartCampaignSettingRequestObjectAsync()
        {
            // Create client
            SmartCampaignSettingServiceClient smartCampaignSettingServiceClient = await SmartCampaignSettingServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetSmartCampaignSettingRequest request = new GetSmartCampaignSettingRequest
            {
                ResourceNameAsSmartCampaignSettingName = SmartCampaignSettingName.FromCustomerCampaign("[CUSTOMER_ID]", "[CAMPAIGN_ID]"),
            };
            // Make the request
            SmartCampaignSetting response = await smartCampaignSettingServiceClient.GetSmartCampaignSettingAsync(request);
        }
コード例 #3
0
 /// <summary>Snippet for GetSmartCampaignSetting</summary>
 public void GetSmartCampaignSettingRequestObject()
 {
     // Snippet: GetSmartCampaignSetting(GetSmartCampaignSettingRequest, CallSettings)
     // Create client
     SmartCampaignSettingServiceClient smartCampaignSettingServiceClient = SmartCampaignSettingServiceClient.Create();
     // Initialize request argument(s)
     GetSmartCampaignSettingRequest request = new GetSmartCampaignSettingRequest
     {
         ResourceNameAsSmartCampaignSettingName = SmartCampaignSettingName.FromCustomerCampaign("[CUSTOMER_ID]", "[CAMPAIGN_ID]"),
     };
     // Make the request
     SmartCampaignSetting response = smartCampaignSettingServiceClient.GetSmartCampaignSetting(request);
     // End snippet
 }
コード例 #4
0
        /// <summary>Snippet for GetSmartCampaignSettingAsync</summary>
        public async Task GetSmartCampaignSettingResourceNamesAsync()
        {
            // Snippet: GetSmartCampaignSettingAsync(SmartCampaignSettingName, CallSettings)
            // Additional: GetSmartCampaignSettingAsync(SmartCampaignSettingName, CancellationToken)
            // Create client
            SmartCampaignSettingServiceClient smartCampaignSettingServiceClient = await SmartCampaignSettingServiceClient.CreateAsync();

            // Initialize request argument(s)
            SmartCampaignSettingName resourceName = SmartCampaignSettingName.FromCustomerCampaign("[CUSTOMER_ID]", "[CAMPAIGN_ID]");
            // Make the request
            SmartCampaignSetting response = await smartCampaignSettingServiceClient.GetSmartCampaignSettingAsync(resourceName);

            // End snippet
        }