/// <summary>Snippet for GetWebpageView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetWebpageViewResourceNames()
 {
     // Create client
     WebpageViewServiceClient webpageViewServiceClient = WebpageViewServiceClient.Create();
     // Initialize request argument(s)
     WebpageViewName resourceName = WebpageViewName.FromCustomerAdGroupCriterion("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
     // Make the request
     WebpageView response = webpageViewServiceClient.GetWebpageView(resourceName);
 }
        /// <summary>Snippet for GetWebpageViewAsync</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 GetWebpageViewRequestObjectAsync()
        {
            // Create client
            WebpageViewServiceClient webpageViewServiceClient = await WebpageViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetWebpageViewRequest request = new GetWebpageViewRequest
            {
                ResourceNameAsWebpageViewName = WebpageViewName.FromCustomerAdGroupCriterion("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]"),
            };
            // Make the request
            WebpageView response = await webpageViewServiceClient.GetWebpageViewAsync(request);
        }
Esempio n. 3
0
 /// <summary>Snippet for GetWebpageView</summary>
 public void GetWebpageViewRequestObject()
 {
     // Snippet: GetWebpageView(GetWebpageViewRequest, CallSettings)
     // Create client
     WebpageViewServiceClient webpageViewServiceClient = WebpageViewServiceClient.Create();
     // Initialize request argument(s)
     GetWebpageViewRequest request = new GetWebpageViewRequest
     {
         ResourceNameAsWebpageViewName = WebpageViewName.FromCustomerAdGroupCriterion("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]"),
     };
     // Make the request
     WebpageView response = webpageViewServiceClient.GetWebpageView(request);
     // End snippet
 }
Esempio n. 4
0
        /// <summary>Snippet for GetWebpageViewAsync</summary>
        public async Task GetWebpageViewResourceNamesAsync()
        {
            // Snippet: GetWebpageViewAsync(WebpageViewName, CallSettings)
            // Additional: GetWebpageViewAsync(WebpageViewName, CancellationToken)
            // Create client
            WebpageViewServiceClient webpageViewServiceClient = await WebpageViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            WebpageViewName resourceName = WebpageViewName.FromCustomerAdGroupCriterion("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]");
            // Make the request
            WebpageView response = await webpageViewServiceClient.GetWebpageViewAsync(resourceName);

            // End snippet
        }