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

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/customAudiences/[CUSTOM_AUDIENCE_ID]";
            // Make the request
            CustomAudience response = await customAudienceServiceClient.GetCustomAudienceAsync(resourceName);
        }
Beispiel #2
0
        /// <summary>Snippet for GetCustomAudienceAsync</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 GetCustomAudienceResourceNamesAsync()
        {
            // Create client
            CustomAudienceServiceClient customAudienceServiceClient = await CustomAudienceServiceClient.CreateAsync();

            // Initialize request argument(s)
            CustomAudienceName resourceName = CustomAudienceName.FromCustomerCustomAudience("[CUSTOMER_ID]", "[CUSTOM_AUDIENCE_ID]");
            // Make the request
            CustomAudience response = await customAudienceServiceClient.GetCustomAudienceAsync(resourceName);
        }
Beispiel #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 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);
        }
Beispiel #4
0
        /// <summary>Snippet for GetCustomAudienceAsync</summary>
        public async Task GetCustomAudienceAsync()
        {
            // Snippet: GetCustomAudienceAsync(string, CallSettings)
            // Additional: GetCustomAudienceAsync(string, CancellationToken)
            // Create client
            CustomAudienceServiceClient customAudienceServiceClient = await CustomAudienceServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/customAudiences/[CUSTOM_AUDIENCE_ID]";
            // Make the request
            CustomAudience response = await customAudienceServiceClient.GetCustomAudienceAsync(resourceName);

            // End snippet
        }
Beispiel #5
0
        /// <summary>Snippet for GetCustomAudienceAsync</summary>
        public async Task GetCustomAudienceResourceNamesAsync()
        {
            // Snippet: GetCustomAudienceAsync(CustomAudienceName, CallSettings)
            // Additional: GetCustomAudienceAsync(CustomAudienceName, CancellationToken)
            // Create client
            CustomAudienceServiceClient customAudienceServiceClient = await CustomAudienceServiceClient.CreateAsync();

            // Initialize request argument(s)
            CustomAudienceName resourceName = CustomAudienceName.FromCustomerCustomAudience("[CUSTOMER_ID]", "[CUSTOM_AUDIENCE_ID]");
            // Make the request
            CustomAudience response = await customAudienceServiceClient.GetCustomAudienceAsync(resourceName);

            // End snippet
        }
Beispiel #6
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);
        }
Beispiel #7
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
        }
Beispiel #8
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
        }