制作需求开发广告组

需求开发广告组可为其中的广告提供精准的出价和投放控制。这是在 AdGroup 资源中通过出价策略、广告资源设置和定位条件进行配置的。

广告组具有名为“广告”的子资源,这些子资源是赢得竞价后投放的已配置广告素材。

选择配置

在制作需求开发广告组之前,请考虑以下可选设置,以便进一步控制广告投放:

  • bidStrategy 可配置为 DemandGenBiddingStrategy,以便在使用“目标每次转化费用”“目标每次点击费用”或“目标广告支出回报率”出价策略时,为广告组设置与父订单项不同的目标值。
  • adGroupInventoryControl 可用于选择广告组将出价竞争的广告资源以及广告将投放的广告资源。
  • targetingExpansion 可让您为使用受众群体定位的广告组启用优化型定位。 优化型定位可将广告投放范围扩展到您设置的受众特征定位范围之外。您可以排除受众特征扩展功能,从而限制此功能。

创建需求开发广告组时,您还必须将 adGroupFormat 字段设置为 AD_GROUP_FORMAT_DEMAND_GEN

创建广告组

以下示例展示了如何创建采用以下设置的需求开发广告组:

  • 一种出价策略,可将每次转化的平均费用优化为 12 美元,并从父订单项继承“目标每次转化费用”出价策略。
  • 仅针对 YouTube 插播广告和 Shorts 广告资源出价。

Python

# Provide the ID of the parent advertiser.
advertiser_id = advertiser-id

# Provide the ID of the parent line item.
line_item_id = line-item-id

# Provide the display name of the ad group.
display_name = display-name

# Create an ad group object with example values.
ad_group_obj = {
    "lineItemId": line_item_id,
    "displayName": display_name,
    "entityStatus": "ENTITY_STATUS_PAUSED",
    "adGroupFormat": "AD_GROUP_FORMAT_DEMAND_GEN",
    "bidStrategy": {
        "demandGenBid": {
            "value": "12000000"
        }
    },
    "adGroupInventoryControl": {
        "selectedInventories": {
            "allowYoutubeStream": True,
            "allowYoutubeShorts": True,
        },
    },

}

# Build and execute request.
response = (
    service.advertisers()
    .adGroups()
    .create(advertiserId=advertiser_id, body=ad_group_obj)
    .execute()
)

# Display the new ad group.
print(f"Demand Gen ad group {response['name']} was created.")