/// <summary>Snippet for GetPaidOrganicSearchTermView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetPaidOrganicSearchTermViewResourceNames()
 {
     // Create client
     PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = PaidOrganicSearchTermViewServiceClient.Create();
     // Initialize request argument(s)
     PaidOrganicSearchTermViewName resourceName = PaidOrganicSearchTermViewName.FromCustomerPaidOrganicSearchTermView("[CUSTOMER]", "[PAID_ORGANIC_SEARCH_TERM_VIEW]");
     // Make the request
     PaidOrganicSearchTermView response = paidOrganicSearchTermViewServiceClient.GetPaidOrganicSearchTermView(resourceName);
 }
Ejemplo n.º 2
0
 /// <summary>Snippet for GetPaidOrganicSearchTermView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetPaidOrganicSearchTermViewResourceNames()
 {
     // Create client
     PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = PaidOrganicSearchTermViewServiceClient.Create();
     // Initialize request argument(s)
     PaidOrganicSearchTermViewName resourceName = PaidOrganicSearchTermViewName.FromCustomerCampaignAdGroupBase64SearchTerm("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[AD_GROUP_ID]", "[BASE64_SEARCH_TERM]");
     // Make the request
     PaidOrganicSearchTermView response = paidOrganicSearchTermViewServiceClient.GetPaidOrganicSearchTermView(resourceName);
 }
        /// <summary>Snippet for GetPaidOrganicSearchTermViewAsync</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 GetPaidOrganicSearchTermViewRequestObjectAsync()
        {
            // Create client
            PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = await PaidOrganicSearchTermViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetPaidOrganicSearchTermViewRequest request = new GetPaidOrganicSearchTermViewRequest
            {
                ResourceNameAsPaidOrganicSearchTermViewName = PaidOrganicSearchTermViewName.FromCustomerCampaignAdGroupBase64SearchTerm("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[AD_GROUP_ID]", "[BASE64_SEARCH_TERM]"),
            };
            // Make the request
            PaidOrganicSearchTermView response = await paidOrganicSearchTermViewServiceClient.GetPaidOrganicSearchTermViewAsync(request);
        }
Ejemplo n.º 4
0
        /// <summary>Snippet for GetPaidOrganicSearchTermViewAsync</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 GetPaidOrganicSearchTermViewRequestObjectAsync()
        {
            // Create client
            PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = await PaidOrganicSearchTermViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetPaidOrganicSearchTermViewRequest request = new GetPaidOrganicSearchTermViewRequest
            {
                ResourceNameAsPaidOrganicSearchTermViewName = PaidOrganicSearchTermViewName.FromCustomerPaidOrganicSearchTermView("[CUSTOMER]", "[PAID_ORGANIC_SEARCH_TERM_VIEW]"),
            };
            // Make the request
            PaidOrganicSearchTermView response = await paidOrganicSearchTermViewServiceClient.GetPaidOrganicSearchTermViewAsync(request);
        }
Ejemplo n.º 5
0
 /// <summary>Snippet for GetPaidOrganicSearchTermView</summary>
 public void GetPaidOrganicSearchTermViewRequestObject()
 {
     // Snippet: GetPaidOrganicSearchTermView(GetPaidOrganicSearchTermViewRequest, CallSettings)
     // Create client
     PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = PaidOrganicSearchTermViewServiceClient.Create();
     // Initialize request argument(s)
     GetPaidOrganicSearchTermViewRequest request = new GetPaidOrganicSearchTermViewRequest
     {
         ResourceNameAsPaidOrganicSearchTermViewName = PaidOrganicSearchTermViewName.FromCustomerCampaignAdGroupBase64SearchTerm("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[AD_GROUP_ID]", "[BASE64_SEARCH_TERM]"),
     };
     // Make the request
     PaidOrganicSearchTermView response = paidOrganicSearchTermViewServiceClient.GetPaidOrganicSearchTermView(request);
     // End snippet
 }
Ejemplo n.º 6
0
        /// <summary>Snippet for GetPaidOrganicSearchTermViewAsync</summary>
        public async Task GetPaidOrganicSearchTermViewResourceNamesAsync()
        {
            // Snippet: GetPaidOrganicSearchTermViewAsync(PaidOrganicSearchTermViewName, CallSettings)
            // Additional: GetPaidOrganicSearchTermViewAsync(PaidOrganicSearchTermViewName, CancellationToken)
            // Create client
            PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = await PaidOrganicSearchTermViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            PaidOrganicSearchTermViewName resourceName = PaidOrganicSearchTermViewName.FromCustomerCampaignAdGroupBase64SearchTerm("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[AD_GROUP_ID]", "[BASE64_SEARCH_TERM]");
            // Make the request
            PaidOrganicSearchTermView response = await paidOrganicSearchTermViewServiceClient.GetPaidOrganicSearchTermViewAsync(resourceName);

            // End snippet
        }
Ejemplo n.º 7
0
 /// <summary>Snippet for GetPaidOrganicSearchTermView</summary>
 public void GetPaidOrganicSearchTermViewRequestObject()
 {
     // Snippet: GetPaidOrganicSearchTermView(GetPaidOrganicSearchTermViewRequest, CallSettings)
     // Create client
     PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = PaidOrganicSearchTermViewServiceClient.Create();
     // Initialize request argument(s)
     GetPaidOrganicSearchTermViewRequest request = new GetPaidOrganicSearchTermViewRequest
     {
         ResourceNameAsPaidOrganicSearchTermViewName = PaidOrganicSearchTermViewName.FromCustomerPaidOrganicSearchTermView("[CUSTOMER]", "[PAID_ORGANIC_SEARCH_TERM_VIEW]"),
     };
     // Make the request
     PaidOrganicSearchTermView response = paidOrganicSearchTermViewServiceClient.GetPaidOrganicSearchTermView(request);
     // End snippet
 }
Ejemplo n.º 8
0
        /// <summary>Snippet for GetPaidOrganicSearchTermViewAsync</summary>
        public async Task GetPaidOrganicSearchTermViewResourceNamesAsync()
        {
            // Snippet: GetPaidOrganicSearchTermViewAsync(PaidOrganicSearchTermViewName, CallSettings)
            // Additional: GetPaidOrganicSearchTermViewAsync(PaidOrganicSearchTermViewName, CancellationToken)
            // Create client
            PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = await PaidOrganicSearchTermViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            PaidOrganicSearchTermViewName resourceName = PaidOrganicSearchTermViewName.FromCustomerPaidOrganicSearchTermView("[CUSTOMER]", "[PAID_ORGANIC_SEARCH_TERM_VIEW]");
            // Make the request
            PaidOrganicSearchTermView response = await paidOrganicSearchTermViewServiceClient.GetPaidOrganicSearchTermViewAsync(resourceName);

            // End snippet
        }
Ejemplo n.º 9
0
        public async Task GetPaidOrganicSearchTermViewAsync()
        {
            Mock <PaidOrganicSearchTermViewService.PaidOrganicSearchTermViewServiceClient> mockGrpcClient = new Mock <PaidOrganicSearchTermViewService.PaidOrganicSearchTermViewServiceClient>(MockBehavior.Strict);
            GetPaidOrganicSearchTermViewRequest expectedRequest = new GetPaidOrganicSearchTermViewRequest
            {
                ResourceName = new PaidOrganicSearchTermViewName("[CUSTOMER]", "[PAID_ORGANIC_SEARCH_TERM_VIEW]").ToString(),
            };
            PaidOrganicSearchTermView expectedResponse = new PaidOrganicSearchTermView
            {
                ResourceName = "resourceName2625949903",
            };

            mockGrpcClient.Setup(x => x.GetPaidOrganicSearchTermViewAsync(expectedRequest, It.IsAny <CallOptions>()))
            .Returns(new Grpc.Core.AsyncUnaryCall <PaidOrganicSearchTermView>(Task.FromResult(expectedResponse), null, null, null, null));
            PaidOrganicSearchTermViewServiceClient client = new PaidOrganicSearchTermViewServiceClientImpl(mockGrpcClient.Object, null);
            string formattedResourceName       = new PaidOrganicSearchTermViewName("[CUSTOMER]", "[PAID_ORGANIC_SEARCH_TERM_VIEW]").ToString();
            PaidOrganicSearchTermView response = await client.GetPaidOrganicSearchTermViewAsync(formattedResourceName);

            Assert.AreEqual(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }