Example #1
0
        /// <summary>Snippet for MutateCustomAudiencesAsync</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 MutateCustomAudiencesAsync()
        {
            // Create client
            CustomAudienceServiceClient customAudienceServiceClient = await CustomAudienceServiceClient.CreateAsync();

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

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <CustomAudienceOperation> operations = new CustomAudienceOperation[]
            {
                new CustomAudienceOperation(),
            };
            // Make the request
            MutateCustomAudiencesResponse response = await customAudienceServiceClient.MutateCustomAudiencesAsync(customerId, operations);

            // End snippet
        }
Example #3
0
        /// <summary>Snippet for MutateCustomAudiencesAsync</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 MutateCustomAudiencesRequestObjectAsync()
        {
            // Create client
            CustomAudienceServiceClient customAudienceServiceClient = await CustomAudienceServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateCustomAudiencesRequest request = new MutateCustomAudiencesRequest
            {
                CustomerId = "",
                Operations =
                {
                    new CustomAudienceOperation(),
                },
                ValidateOnly = false,
            };
            // Make the request
            MutateCustomAudiencesResponse response = await customAudienceServiceClient.MutateCustomAudiencesAsync(request);
        }
Example #4
0
        /// <summary>Snippet for MutateCustomAudiencesAsync</summary>
        public async Task MutateCustomAudiencesRequestObjectAsync()
        {
            // Snippet: MutateCustomAudiencesAsync(MutateCustomAudiencesRequest, CallSettings)
            // Additional: MutateCustomAudiencesAsync(MutateCustomAudiencesRequest, CancellationToken)
            // Create client
            CustomAudienceServiceClient customAudienceServiceClient = await CustomAudienceServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateCustomAudiencesRequest request = new MutateCustomAudiencesRequest
            {
                CustomerId = "",
                Operations =
                {
                    new CustomAudienceOperation(),
                },
                ValidateOnly = false,
            };
            // Make the request
            MutateCustomAudiencesResponse response = await customAudienceServiceClient.MutateCustomAudiencesAsync(request);

            // End snippet
        }