建立需求開發廣告群組

需求開發廣告群組可精確控管廣告的出價和放送方式。這項設定位於 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.")