/// <summary>Snippet for GetSmartCampaignSearchTermView</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetSmartCampaignSearchTermViewResourceNames() { // Create client SmartCampaignSearchTermViewServiceClient smartCampaignSearchTermViewServiceClient = SmartCampaignSearchTermViewServiceClient.Create(); // Initialize request argument(s) SmartCampaignSearchTermViewName resourceName = SmartCampaignSearchTermViewName.FromCustomerCampaignQuery("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[QUERY]"); // Make the request SmartCampaignSearchTermView response = smartCampaignSearchTermViewServiceClient.GetSmartCampaignSearchTermView(resourceName); }
/// <summary>Snippet for GetSmartCampaignSearchTermView</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetSmartCampaignSearchTermView() { // Create client SmartCampaignSearchTermViewServiceClient smartCampaignSearchTermViewServiceClient = SmartCampaignSearchTermViewServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/smartCampaignSearchTermViews/[CAMPAIGN_ID]~[QUERY]"; // Make the request SmartCampaignSearchTermView response = smartCampaignSearchTermViewServiceClient.GetSmartCampaignSearchTermView(resourceName); }
/// <summary>Snippet for GetSmartCampaignSearchTermViewAsync</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 GetSmartCampaignSearchTermViewRequestObjectAsync() { // Create client SmartCampaignSearchTermViewServiceClient smartCampaignSearchTermViewServiceClient = await SmartCampaignSearchTermViewServiceClient.CreateAsync(); // Initialize request argument(s) GetSmartCampaignSearchTermViewRequest request = new GetSmartCampaignSearchTermViewRequest { ResourceNameAsSmartCampaignSearchTermViewName = SmartCampaignSearchTermViewName.FromCustomerCampaignQuery("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[QUERY]"), }; // Make the request SmartCampaignSearchTermView response = await smartCampaignSearchTermViewServiceClient.GetSmartCampaignSearchTermViewAsync(request); }
/// <summary>Snippet for GetSmartCampaignSearchTermViewAsync</summary> public async Task GetSmartCampaignSearchTermViewAsync() { // Snippet: GetSmartCampaignSearchTermViewAsync(string, CallSettings) // Additional: GetSmartCampaignSearchTermViewAsync(string, CancellationToken) // Create client SmartCampaignSearchTermViewServiceClient smartCampaignSearchTermViewServiceClient = await SmartCampaignSearchTermViewServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/smartCampaignSearchTermViews/[CAMPAIGN_ID]~[QUERY]"; // Make the request SmartCampaignSearchTermView response = await smartCampaignSearchTermViewServiceClient.GetSmartCampaignSearchTermViewAsync(resourceName); // End snippet }
/// <summary>Snippet for GetSmartCampaignSearchTermView</summary> public void GetSmartCampaignSearchTermViewRequestObject() { // Snippet: GetSmartCampaignSearchTermView(GetSmartCampaignSearchTermViewRequest, CallSettings) // Create client SmartCampaignSearchTermViewServiceClient smartCampaignSearchTermViewServiceClient = SmartCampaignSearchTermViewServiceClient.Create(); // Initialize request argument(s) GetSmartCampaignSearchTermViewRequest request = new GetSmartCampaignSearchTermViewRequest { ResourceNameAsSmartCampaignSearchTermViewName = SmartCampaignSearchTermViewName.FromCustomerCampaignQuery("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[QUERY]"), }; // Make the request SmartCampaignSearchTermView response = smartCampaignSearchTermViewServiceClient.GetSmartCampaignSearchTermView(request); // End snippet }
/// <summary>Snippet for GetSmartCampaignSearchTermViewAsync</summary> public async Task GetSmartCampaignSearchTermViewResourceNamesAsync() { // Snippet: GetSmartCampaignSearchTermViewAsync(SmartCampaignSearchTermViewName, CallSettings) // Additional: GetSmartCampaignSearchTermViewAsync(SmartCampaignSearchTermViewName, CancellationToken) // Create client SmartCampaignSearchTermViewServiceClient smartCampaignSearchTermViewServiceClient = await SmartCampaignSearchTermViewServiceClient.CreateAsync(); // Initialize request argument(s) SmartCampaignSearchTermViewName resourceName = SmartCampaignSearchTermViewName.FromCustomerCampaignQuery("[CUSTOMER_ID]", "[CAMPAIGN_ID]", "[QUERY]"); // Make the request SmartCampaignSearchTermView response = await smartCampaignSearchTermViewServiceClient.GetSmartCampaignSearchTermViewAsync(resourceName); // End snippet }