/// <summary>Snippet for MutateSmartCampaignSettingsAsync</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 MutateSmartCampaignSettingsAsync()
        {
            // Create client
            SmartCampaignSettingServiceClient smartCampaignSettingServiceClient = await SmartCampaignSettingServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <SmartCampaignSettingOperation> operations = new SmartCampaignSettingOperation[]
            {
                new SmartCampaignSettingOperation(),
            };
            // Make the request
            MutateSmartCampaignSettingsResponse response = await smartCampaignSettingServiceClient.MutateSmartCampaignSettingsAsync(customerId, operations);
        }
Example #2
0
        /// <summary>Snippet for MutateSmartCampaignSettingsAsync</summary>
        public async Task MutateSmartCampaignSettingsAsync()
        {
            // Snippet: MutateSmartCampaignSettingsAsync(string, IEnumerable<SmartCampaignSettingOperation>, CallSettings)
            // Additional: MutateSmartCampaignSettingsAsync(string, IEnumerable<SmartCampaignSettingOperation>, CancellationToken)
            // Create client
            SmartCampaignSettingServiceClient smartCampaignSettingServiceClient = await SmartCampaignSettingServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <SmartCampaignSettingOperation> operations = new SmartCampaignSettingOperation[]
            {
                new SmartCampaignSettingOperation(),
            };
            // Make the request
            MutateSmartCampaignSettingsResponse response = await smartCampaignSettingServiceClient.MutateSmartCampaignSettingsAsync(customerId, operations);

            // End snippet
        }
Example #3
0
        /// <summary>Snippet for MutateSmartCampaignSettingsAsync</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 MutateSmartCampaignSettingsRequestObjectAsync()
        {
            // Create client
            SmartCampaignSettingServiceClient smartCampaignSettingServiceClient = await SmartCampaignSettingServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateSmartCampaignSettingsRequest request = new MutateSmartCampaignSettingsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new SmartCampaignSettingOperation(),
                },
                PartialFailure      = false,
                ValidateOnly        = false,
                ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified,
            };
            // Make the request
            MutateSmartCampaignSettingsResponse response = await smartCampaignSettingServiceClient.MutateSmartCampaignSettingsAsync(request);
        }