本指南针对每种效果最大化广告系列业务目标提供了一份概念和任务清单,可帮助您制作广告系列。首先,请选择一个业务目标:
以提高线上销售额或发掘潜在客户为目标的效果最大化广告系列(标准)
借助效果最大化广告系列,广告客户只需制作一个统一的广告系列,即可利用所有 Google Ads 渠道和广告资源。制作标准效果最大化广告系列的步骤如下。点击各部分中的链接可了解详情。
效果最大化广告系列概念
广告客户最常见的一个目标是鼓励客户执行特定操作,以实现创收或发掘潜在客户等目标。 在 Google Ads API 中,以提高线上销售额或发掘潜在客户为目标的效果最大化广告系列通常称为标准效果最大化广告系列。
制作效果最大化广告系列时,您可以使用批量更改请求,通过单个请求创建构成有效且可投放的广告系列所需的资源。并非所有资源都必须在单个批量变异请求中创建。若要制作有效的、可投放的效果最大化广告系列,您需要提供以下资源。如需了解详情,请参阅结构化请求指南。
CampaignBudgetCampaignCampaignAssets(仅适用于启用了品牌规范的广告系列)AssetGroupsAssetGroupAssets
广告系列和广告系列预算
代码示例
Java
/** Creates a MutateOperation that creates a new CampaignBudget. */ private MutateOperation createCampaignBudgetOperation(long customerId) { CampaignBudget campaignBudget = CampaignBudget.newBuilder() .setName("Performance Max campaign budget #" + getPrintableDateTime()) // The budget period already defaults to DAILY. .setAmountMicros(50_000_000) .setDeliveryMethod(BudgetDeliveryMethod.STANDARD) // A Performance Max campaign cannot use a shared campaign budget. .setExplicitlyShared(false) // Set a temporary ID in the budget's resource name, so it can be referenced // by the campaign in later steps. .setResourceName(ResourceNames.campaignBudget(customerId, BUDGET_TEMPORARY_ID)) .build(); return MutateOperation.newBuilder() .setCampaignBudgetOperation( CampaignBudgetOperation.newBuilder().setCreate(campaignBudget).build()) .build(); }
C#
/// <summary> /// Creates a MutateOperation that creates a new CampaignBudget. /// /// A temporary ID will be assigned to this campaign budget so that it can be /// referenced by other objects being created in the same Mutate request. /// </summary> /// <param name="budgetResourceName">The temporary resource name of the budget to /// create.</param> /// <returns>A MutateOperation that creates a CampaignBudget.</returns> private MutateOperation CreateCampaignBudgetOperation(string budgetResourceName) { MutateOperation operation = new MutateOperation { CampaignBudgetOperation = new CampaignBudgetOperation { Create = new CampaignBudget { Name = "Performance Max campaign budget #" + ExampleUtilities.GetRandomString(), // The budget period already defaults to DAILY. AmountMicros = 50000000, // A Performance Max campaign cannot use a shared campaign budget. ExplicitlyShared = false, // Set a temporary ID in the budget's resource name so it can be referenced // by the campaign in later steps. ResourceName = budgetResourceName } } }; return operation; }
PHP
private static function createCampaignBudgetOperation(int $customerId): MutateOperation { // Creates a mutate operation that creates a campaign budget operation. return new MutateOperation([ 'campaign_budget_operation' => new CampaignBudgetOperation([ 'create' => new CampaignBudget([ // Sets a temporary ID in the budget's resource name so it can be referenced // by the campaign in later steps. 'resource_name' => ResourceNames::forCampaignBudget( $customerId, self::BUDGET_TEMPORARY_ID ), 'name' => 'Performance Max campaign budget #' . Helper::getPrintableDatetime(), // The budget period already defaults to DAILY. 'amount_micros' => 50000000, 'delivery_method' => BudgetDeliveryMethod::STANDARD, // A Performance Max campaign cannot use a shared campaign budget. 'explicitly_shared' => false ]) ]) ]); }