/// <summary>Snippet for GetCustomInterestAsync</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 GetCustomInterestResourceNamesAsync()
        {
            // Create client
            CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync();

            // Initialize request argument(s)
            CustomInterestName resourceName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER_ID]", "[CUSTOM_INTEREST_ID]");
            // Make the request
            CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName);
        }
コード例 #2
0
        /// <summary>Snippet for GetCustomInterestAsync</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 GetCustomInterestAsync()
        {
            // Create client
            CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/customInterests/[CUSTOM_INTEREST]";
            // Make the request
            CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName);
        }
        /// <summary>Snippet for GetCustomInterestAsync</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 GetCustomInterestRequestObjectAsync()
        {
            // Create client
            CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCustomInterestRequest request = new GetCustomInterestRequest
            {
                ResourceNameAsCustomInterestName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER]", "[CUSTOM_INTEREST]"),
            };
            // Make the request
            CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(request);
        }
        /// <summary>Snippet for GetCustomInterestAsync</summary>
        public async Task GetCustomInterestAsync()
        {
            // Snippet: GetCustomInterestAsync(string, CallSettings)
            // Additional: GetCustomInterestAsync(string, CancellationToken)
            // Create client
            CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/customInterests/[CUSTOM_INTEREST]";
            // Make the request
            CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetCustomInterestAsync</summary>
        public async Task GetCustomInterestResourceNamesAsync()
        {
            // Snippet: GetCustomInterestAsync(CustomInterestName, CallSettings)
            // Additional: GetCustomInterestAsync(CustomInterestName, CancellationToken)
            // Create client
            CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync();

            // Initialize request argument(s)
            CustomInterestName resourceName = CustomInterestName.FromCustomerCustomInterest("[CUSTOMER]", "[CUSTOM_INTEREST]");
            // Make the request
            CustomInterest response = await customInterestServiceClient.GetCustomInterestAsync(resourceName);

            // End snippet
        }
コード例 #6
0
        /// <summary>Snippet for MutateCustomInterestsAsync</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 MutateCustomInterestsAsync()
        {
            // Create client
            CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <CustomInterestOperation> operations = new CustomInterestOperation[]
            {
                new CustomInterestOperation(),
            };
            // Make the request
            MutateCustomInterestsResponse response = await customInterestServiceClient.MutateCustomInterestsAsync(customerId, operations);
        }
        /// <summary>Snippet for MutateCustomInterestsAsync</summary>
        public async Task MutateCustomInterestsAsync()
        {
            // Snippet: MutateCustomInterestsAsync(string, IEnumerable<CustomInterestOperation>, CallSettings)
            // Additional: MutateCustomInterestsAsync(string, IEnumerable<CustomInterestOperation>, CancellationToken)
            // Create client
            CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <CustomInterestOperation> operations = new CustomInterestOperation[]
            {
                new CustomInterestOperation(),
            };
            // Make the request
            MutateCustomInterestsResponse response = await customInterestServiceClient.MutateCustomInterestsAsync(customerId, operations);

            // End snippet
        }
        /// <summary>Snippet for MutateCustomInterestsAsync</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 MutateCustomInterestsRequestObjectAsync()
        {
            // Create client
            CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateCustomInterestsRequest request = new MutateCustomInterestsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new CustomInterestOperation(),
                },
                ValidateOnly = false,
            };
            // Make the request
            MutateCustomInterestsResponse response = await customInterestServiceClient.MutateCustomInterestsAsync(request);
        }
        /// <summary>Snippet for MutateCustomInterestsAsync</summary>
        public async Task MutateCustomInterestsRequestObjectAsync()
        {
            // Snippet: MutateCustomInterestsAsync(MutateCustomInterestsRequest, CallSettings)
            // Additional: MutateCustomInterestsAsync(MutateCustomInterestsRequest, CancellationToken)
            // Create client
            CustomInterestServiceClient customInterestServiceClient = await CustomInterestServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateCustomInterestsRequest request = new MutateCustomInterestsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new CustomInterestOperation(),
                },
                ValidateOnly = false,
            };
            // Make the request
            MutateCustomInterestsResponse response = await customInterestServiceClient.MutateCustomInterestsAsync(request);

            // End snippet
        }