示例#1
0
        /// <summary>Snippet for GetUserLocationViewAsync</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 GetUserLocationViewAsync()
        {
            // Create client
            UserLocationViewServiceClient userLocationViewServiceClient = await UserLocationViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/userLocationViews/[USER_LOCATION_VIEW]";
            // Make the request
            UserLocationView response = await userLocationViewServiceClient.GetUserLocationViewAsync(resourceName);
        }
示例#2
0
        /// <summary>Snippet for GetUserLocationViewAsync</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 GetUserLocationViewResourceNamesAsync()
        {
            // Create client
            UserLocationViewServiceClient userLocationViewServiceClient = await UserLocationViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            UserLocationViewName resourceName = UserLocationViewName.FromCustomerCountryCriterionIsTargetingLocation("[CUSTOMER_ID]", "[COUNTRY_CRITERION_ID]", "[IS_TARGETING_LOCATION]");
            // Make the request
            UserLocationView response = await userLocationViewServiceClient.GetUserLocationViewAsync(resourceName);
        }
        /// <summary>Snippet for GetUserLocationViewAsync</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 GetUserLocationViewAsync()
        {
            // Create client
            UserLocationViewServiceClient userLocationViewServiceClient = await UserLocationViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/userLocationViews/[COUNTRY_CRITERION_ID]~[IS_TARGETING_LOCATION]";
            // Make the request
            UserLocationView response = await userLocationViewServiceClient.GetUserLocationViewAsync(resourceName);
        }
示例#4
0
        /// <summary>Snippet for GetUserLocationViewAsync</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 GetUserLocationViewRequestObjectAsync()
        {
            // Create client
            UserLocationViewServiceClient userLocationViewServiceClient = await UserLocationViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetUserLocationViewRequest request = new GetUserLocationViewRequest
            {
                ResourceNameAsUserLocationViewName = UserLocationViewName.FromCustomerUserLocationView("[CUSTOMER]", "[USER_LOCATION_VIEW]"),
            };
            // Make the request
            UserLocationView response = await userLocationViewServiceClient.GetUserLocationViewAsync(request);
        }
        /// <summary>Snippet for GetUserLocationViewAsync</summary>
        public async Task GetUserLocationViewAsync()
        {
            // Snippet: GetUserLocationViewAsync(string, CallSettings)
            // Additional: GetUserLocationViewAsync(string, CancellationToken)
            // Create client
            UserLocationViewServiceClient userLocationViewServiceClient = await UserLocationViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/userLocationViews/[COUNTRY_CRITERION_ID]~[IS_TARGETING_LOCATION]";
            // Make the request
            UserLocationView response = await userLocationViewServiceClient.GetUserLocationViewAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetUserLocationViewAsync</summary>
        public async Task GetUserLocationViewResourceNamesAsync()
        {
            // Snippet: GetUserLocationViewAsync(UserLocationViewName, CallSettings)
            // Additional: GetUserLocationViewAsync(UserLocationViewName, CancellationToken)
            // Create client
            UserLocationViewServiceClient userLocationViewServiceClient = await UserLocationViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            UserLocationViewName resourceName = UserLocationViewName.FromCustomerUserLocationView("[CUSTOMER]", "[USER_LOCATION_VIEW]");
            // Make the request
            UserLocationView response = await userLocationViewServiceClient.GetUserLocationViewAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetUserLocationViewAsync</summary>
        public async Task GetUserLocationViewRequestObjectAsync()
        {
            // Snippet: GetUserLocationViewAsync(GetUserLocationViewRequest, CallSettings)
            // Additional: GetUserLocationViewAsync(GetUserLocationViewRequest, CancellationToken)
            // Create client
            UserLocationViewServiceClient userLocationViewServiceClient = await UserLocationViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetUserLocationViewRequest request = new GetUserLocationViewRequest
            {
                ResourceNameAsUserLocationViewName = UserLocationViewName.FromCustomerCountryCriterionIsTargetingLocation("[CUSTOMER_ID]", "[COUNTRY_CRITERION_ID]", "[IS_TARGETING_LOCATION]"),
            };
            // Make the request
            UserLocationView response = await userLocationViewServiceClient.GetUserLocationViewAsync(request);

            // End snippet
        }