Пример #1
0
        /// <summary>Snippet for GetDetailedDemographicAsync</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 GetDetailedDemographicAsync()
        {
            // Create client
            DetailedDemographicServiceClient detailedDemographicServiceClient = await DetailedDemographicServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/detailedDemographics/[DETAILED_DEMOGRAPHIC_ID]";
            // Make the request
            DetailedDemographic response = await detailedDemographicServiceClient.GetDetailedDemographicAsync(resourceName);
        }
Пример #2
0
        /// <summary>Snippet for GetDetailedDemographicAsync</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 GetDetailedDemographicResourceNamesAsync()
        {
            // Create client
            DetailedDemographicServiceClient detailedDemographicServiceClient = await DetailedDemographicServiceClient.CreateAsync();

            // Initialize request argument(s)
            DetailedDemographicName resourceName = DetailedDemographicName.FromCustomerDetailedDemographic("[CUSTOMER_ID]", "[DETAILED_DEMOGRAPHIC_ID]");
            // Make the request
            DetailedDemographic response = await detailedDemographicServiceClient.GetDetailedDemographicAsync(resourceName);
        }
        /// <summary>Snippet for GetDetailedDemographicAsync</summary>
        public async Task GetDetailedDemographicAsync()
        {
            // Snippet: GetDetailedDemographicAsync(string, CallSettings)
            // Additional: GetDetailedDemographicAsync(string, CancellationToken)
            // Create client
            DetailedDemographicServiceClient detailedDemographicServiceClient = await DetailedDemographicServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/detailedDemographics/[DETAILED_DEMOGRAPHIC_ID]";
            // Make the request
            DetailedDemographic response = await detailedDemographicServiceClient.GetDetailedDemographicAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetDetailedDemographicAsync</summary>
        public async Task GetDetailedDemographicResourceNamesAsync()
        {
            // Snippet: GetDetailedDemographicAsync(DetailedDemographicName, CallSettings)
            // Additional: GetDetailedDemographicAsync(DetailedDemographicName, CancellationToken)
            // Create client
            DetailedDemographicServiceClient detailedDemographicServiceClient = await DetailedDemographicServiceClient.CreateAsync();

            // Initialize request argument(s)
            DetailedDemographicName resourceName = DetailedDemographicName.FromCustomerDetailedDemographic("[CUSTOMER_ID]", "[DETAILED_DEMOGRAPHIC_ID]");
            // Make the request
            DetailedDemographic response = await detailedDemographicServiceClient.GetDetailedDemographicAsync(resourceName);

            // End snippet
        }