Exemple #1
0
        /// <summary>Snippet for GetGenderViewAsync</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 GetGenderViewResourceNamesAsync()
        {
            // Create client
            GenderViewServiceClient genderViewServiceClient = await GenderViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GenderViewName resourceName = GenderViewName.FromCustomerGenderView("[CUSTOMER]", "[GENDER_VIEW]");
            // Make the request
            GenderView response = await genderViewServiceClient.GetGenderViewAsync(resourceName);
        }
Exemple #2
0
        /// <summary>Snippet for GetGenderViewAsync</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 GetGenderViewResourceNamesAsync()
        {
            // Create client
            GenderViewServiceClient genderViewServiceClient = await GenderViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GenderViewName resourceName = GenderViewName.FromCustomerAdGroupCriterion("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
            // Make the request
            GenderView response = await genderViewServiceClient.GetGenderViewAsync(resourceName);
        }
Exemple #3
0
        /// <summary>Snippet for GetGenderViewAsync</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 GetGenderViewAsync()
        {
            // Create client
            GenderViewServiceClient genderViewServiceClient = await GenderViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/genderViews/[AD_GROUP_ID]~[CRITERION_ID]";
            // Make the request
            GenderView response = await genderViewServiceClient.GetGenderViewAsync(resourceName);
        }
        /// <summary>Snippet for GetGenderViewAsync</summary>
        public async Task GetGenderViewAsync()
        {
            // Snippet: GetGenderViewAsync(string, CallSettings)
            // Additional: GetGenderViewAsync(string, CancellationToken)
            // Create client
            GenderViewServiceClient genderViewServiceClient = await GenderViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/genderViews/[AD_GROUP_ID]~[CRITERION_ID]";
            // Make the request
            GenderView response = await genderViewServiceClient.GetGenderViewAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetGenderViewAsync</summary>
        public async Task GetGenderViewResourceNamesAsync()
        {
            // Snippet: GetGenderViewAsync(GenderViewName, CallSettings)
            // Additional: GetGenderViewAsync(GenderViewName, CancellationToken)
            // Create client
            GenderViewServiceClient genderViewServiceClient = await GenderViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GenderViewName resourceName = GenderViewName.FromCustomerAdGroupCriterion("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
            // Make the request
            GenderView response = await genderViewServiceClient.GetGenderViewAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetGenderViewAsync</summary>
        public async Task GetGenderViewRequestObjectAsync()
        {
            // Snippet: GetGenderViewAsync(GetGenderViewRequest, CallSettings)
            // Additional: GetGenderViewAsync(GetGenderViewRequest, CancellationToken)
            // Create client
            GenderViewServiceClient genderViewServiceClient = await GenderViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetGenderViewRequest request = new GetGenderViewRequest
            {
                ResourceNameAsGenderViewName = GenderViewName.FromCustomerGenderView("[CUSTOMER]", "[GENDER_VIEW]"),
            };
            // Make the request
            GenderView response = await genderViewServiceClient.GetGenderViewAsync(request);

            // End snippet
        }