/// <summary>Snippet for GetCampaignBudget</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCampaignBudgetResourceNames() { // Create client CampaignBudgetServiceClient campaignBudgetServiceClient = CampaignBudgetServiceClient.Create(); // Initialize request argument(s) CampaignBudgetName resourceName = CampaignBudgetName.FromCustomerCampaignBudget("[CUSTOMER]", "[CAMPAIGN_BUDGET]"); // Make the request CampaignBudget response = campaignBudgetServiceClient.GetCampaignBudget(resourceName); }
/// <summary>Snippet for GetCampaignBudgetAsync</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 GetCampaignBudgetResourceNamesAsync() { // Create client CampaignBudgetServiceClient campaignBudgetServiceClient = await CampaignBudgetServiceClient.CreateAsync(); // Initialize request argument(s) CampaignBudgetName resourceName = CampaignBudgetName.FromCustomerCampaignBudget("[CUSTOMER_ID]", "[CAMPAIGN_BUDGET_ID]"); // Make the request CampaignBudget response = await campaignBudgetServiceClient.GetCampaignBudgetAsync(resourceName); }
/// <summary>Snippet for GetCampaignBudget</summary> public void GetCampaignBudgetResourceNames() { // Snippet: GetCampaignBudget(CampaignBudgetName, CallSettings) // Create client CampaignBudgetServiceClient campaignBudgetServiceClient = CampaignBudgetServiceClient.Create(); // Initialize request argument(s) CampaignBudgetName resourceName = CampaignBudgetName.FromCustomerCampaignBudget("[CUSTOMER_ID]", "[CAMPAIGN_BUDGET_ID]"); // Make the request CampaignBudget response = campaignBudgetServiceClient.GetCampaignBudget(resourceName); // End snippet }
/// <summary>Snippet for GetCampaignBudget</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetCampaignBudgetRequestObject() { // Create client CampaignBudgetServiceClient campaignBudgetServiceClient = CampaignBudgetServiceClient.Create(); // Initialize request argument(s) GetCampaignBudgetRequest request = new GetCampaignBudgetRequest { ResourceNameAsCampaignBudgetName = CampaignBudgetName.FromCustomerCampaignBudget("[CUSTOMER_ID]", "[CAMPAIGN_BUDGET_ID]"), }; // Make the request CampaignBudget response = campaignBudgetServiceClient.GetCampaignBudget(request); }
/// <summary>Snippet for GetCampaignBudgetAsync</summary> public async Task GetCampaignBudgetResourceNamesAsync() { // Snippet: GetCampaignBudgetAsync(CampaignBudgetName, CallSettings) // Additional: GetCampaignBudgetAsync(CampaignBudgetName, CancellationToken) // Create client CampaignBudgetServiceClient campaignBudgetServiceClient = await CampaignBudgetServiceClient.CreateAsync(); // Initialize request argument(s) CampaignBudgetName resourceName = CampaignBudgetName.FromCustomerCampaignBudget("[CUSTOMER_ID]", "[CAMPAIGN_BUDGET_ID]"); // Make the request CampaignBudget response = await campaignBudgetServiceClient.GetCampaignBudgetAsync(resourceName); // End snippet }