/// <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);
 }
 /// <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 GetPaidOrganicSearchTermView()
 {
     // Create client
     PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = PaidOrganicSearchTermViewServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER]/paidOrganicSearchTermViews/[PAID_ORGANIC_SEARCH_TERM_VIEW]";
     // Make the request
     PaidOrganicSearchTermView response = paidOrganicSearchTermViewServiceClient.GetPaidOrganicSearchTermView(resourceName);
 }
示例#3
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);
 }
示例#4
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 GetPaidOrganicSearchTermView()
 {
     // Create client
     PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = PaidOrganicSearchTermViewServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER_ID]/paidOrganicSearchTermViews/[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);
        }
示例#6
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);
        }
示例#7
0
        /// <summary>Snippet for GetPaidOrganicSearchTermViewAsync</summary>
        public async Task GetPaidOrganicSearchTermViewAsync()
        {
            // Snippet: GetPaidOrganicSearchTermViewAsync(string, CallSettings)
            // Additional: GetPaidOrganicSearchTermViewAsync(string, CancellationToken)
            // Create client
            PaidOrganicSearchTermViewServiceClient paidOrganicSearchTermViewServiceClient = await PaidOrganicSearchTermViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/paidOrganicSearchTermViews/[CAMPAIGN_ID]~[AD_GROUP_ID]~[BASE64_SEARCH_TERM]";
            // Make the request
            PaidOrganicSearchTermView response = await paidOrganicSearchTermViewServiceClient.GetPaidOrganicSearchTermViewAsync(resourceName);

            // End snippet
        }
示例#8
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
 }
示例#9
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
        }
示例#10
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
 }
示例#11
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
        }
示例#12
0
        public void GetPaidOrganicSearchTermView2()
        {
            Mock <PaidOrganicSearchTermViewService.PaidOrganicSearchTermViewServiceClient> mockGrpcClient = new Mock <PaidOrganicSearchTermViewService.PaidOrganicSearchTermViewServiceClient>(MockBehavior.Strict);
            GetPaidOrganicSearchTermViewRequest request = new GetPaidOrganicSearchTermViewRequest
            {
                ResourceName = new PaidOrganicSearchTermViewName("[CUSTOMER]", "[PAID_ORGANIC_SEARCH_TERM_VIEW]").ToString(),
            };
            PaidOrganicSearchTermView expectedResponse = new PaidOrganicSearchTermView
            {
                ResourceName = "resourceName2625949903",
            };

            mockGrpcClient.Setup(x => x.GetPaidOrganicSearchTermView(request, It.IsAny <CallOptions>()))
            .Returns(expectedResponse);
            PaidOrganicSearchTermViewServiceClient client = new PaidOrganicSearchTermViewServiceClientImpl(mockGrpcClient.Object, null);
            PaidOrganicSearchTermView response            = client.GetPaidOrganicSearchTermView(request);

            Assert.AreEqual(expectedResponse, response);
            mockGrpcClient.VerifyAll();
        }
示例#13
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();
        }