/// <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 GetCampaignBudget() { // Create client CampaignBudgetServiceClient campaignBudgetServiceClient = CampaignBudgetServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/campaignBudgets/[CAMPAIGN_BUDGET_ID]"; // Make the request CampaignBudget response = campaignBudgetServiceClient.GetCampaignBudget(resourceName); }
/// <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 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> public void GetCampaignBudget() { // Snippet: GetCampaignBudget(string, CallSettings) // Create client CampaignBudgetServiceClient campaignBudgetServiceClient = CampaignBudgetServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/campaignBudgets/[CAMPAIGN_BUDGET]"; // 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 MutateCampaignBudgets</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateCampaignBudgets() { // Create client CampaignBudgetServiceClient campaignBudgetServiceClient = CampaignBudgetServiceClient.Create(); // Initialize request argument(s) string customerId = ""; IEnumerable <CampaignBudgetOperation> operations = new CampaignBudgetOperation[] { new CampaignBudgetOperation(), }; // Make the request MutateCampaignBudgetsResponse response = campaignBudgetServiceClient.MutateCampaignBudgets(customerId, operations); }
/// <summary>Snippet for MutateCampaignBudgets</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateCampaignBudgetsRequestObject() { // Create client CampaignBudgetServiceClient campaignBudgetServiceClient = CampaignBudgetServiceClient.Create(); // Initialize request argument(s) MutateCampaignBudgetsRequest request = new MutateCampaignBudgetsRequest { CustomerId = "", Operations = { new CampaignBudgetOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateCampaignBudgetsResponse response = campaignBudgetServiceClient.MutateCampaignBudgets(request); }
/// <summary>Snippet for MutateCampaignBudgets</summary> public void MutateCampaignBudgetsRequestObject() { // Snippet: MutateCampaignBudgets(MutateCampaignBudgetsRequest, CallSettings) // Create client CampaignBudgetServiceClient campaignBudgetServiceClient = CampaignBudgetServiceClient.Create(); // Initialize request argument(s) MutateCampaignBudgetsRequest request = new MutateCampaignBudgetsRequest { CustomerId = "", Operations = { new CampaignBudgetOperation(), }, PartialFailure = false, ValidateOnly = false, ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified, }; // Make the request MutateCampaignBudgetsResponse response = campaignBudgetServiceClient.MutateCampaignBudgets(request); // End snippet }