在特定版位刊登廣告,例如僅在桌面版動態消息刊登或在流動版動態消息刊登並加上 Audience Network 獎勵式影片。您可以根據您的宣傳活動目標,從而選用特定版位選項。詳情請參閱宣傳活動、目標和版位。
可用的平台和位置為 device_platforms、publisher_platforms、facebook_positions、audience_network_positions、instagram_positions、threads_positions 和 messenger_positions。詳情請參閱裝置、發佈商和位置部分。
curl -X POST \
-F 'name="My AdSet"' \
-F 'optimization_goal="REACH"' \
-F 'billing_event="IMPRESSIONS"' \
-F 'bid_amount=2' \
-F 'daily_budget=1000' \
-F 'campaign_id="<AD_CAMPAIGN_ID>"' \
-F 'targeting={
"geo_locations": {
"countries": [
"US"
]
},
"publisher_platforms": [
"facebook"
],
"facebook_positions": [
"feed"
]
}' \
-F 'promoted_object={
"page_id": "<PAGE_ID>"
}' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v24.0/act_<AD_ACCOUNT_ID>/adsets
如果您沒有為特定版位欄位指定任何內容,Facebook 可能會在該欄位使用所有可能的預設版位。例如,如果您將 publisher_platforms 設為 facebook,但未為 facebook_positions 選擇任何內容,Facebook 可能會使用所有預設 Facebook 位置,如 feed 和 right_hand_column 等。或者,如果您沒有選擇 publisher_platforms,Facebook 可能會使用所有預設publisher_platforms。如有可用的新位置或新平台,Facebook 也可能會自動使用這些選項。
在 Audience Network 上,您可以限制讓哪些發佈商展示您的廣告。您可以按類別排除發佈商,或者建立自訂名單,列出要排除的應用程式商店網址或網域網址。
您不能僅使用 right_hand_column 作為影片、焦點系列或全螢幕展示廣告的版位。
廣告顯示位置篩選工具有助您控制廣告是否顯示在不同類型內容的相鄰位置,包括內容廣告(Facebook 插播影片、Facebook Reels 廣告和 Instagram Reels 廣告)、Audience Network 廣告和動態消息廣告(Facebook 動態消息、Instagram 動態消息、Facebook Reels 動態消息和 Instagram Reels 動態消息)。如需進一步了解內容分類,請查看廣告幫助中心:廣告顯示位置篩選工具。您可為內容廣告、Audience Network 廣告和動態消息廣告選擇不同的值。選項包括:Expanded、Moderate 和 Limited。如需了解詳情,請查看下方的 brand_safety_content_filter_levels:
| 名稱 | 說明 |
|---|---|
陣列 <string> | 內容廣告(Facebook 插播廣告和 Facebook Reels 廣告)允許的值如下:
Audience Network 允許的值如下:
動態消息廣告(Facebook 動態消息、Instagram 動態消息、Facebook Reels 動態消息和 Instagram Reels 動態消息)允許的值如下:
範例: 備註:如在廣告帳戶級別套用了篩選條件,宣傳活動級別提供的選項只會更受限。舉例來說,如果帳戶已設為 |
陣列 <string> | 包括: |
陣列 <numeric strings> | 每個字串都是待排除的清單編號。在廣告管理員或推廣 API,發佈商剔除名單中建立自訂名單。 範例: |
例如,使用 brand_safety_content_filter_levels:
curl \
-F 'name=My AdSet' \
-F 'optimization_goal=REACH' \
-F 'billing_event=IMPRESSIONS' \
-F 'bid_amount=2' \
-F 'daily_budget=1000' \
-F 'campaign_id=CAMPAIGN_ID' \
-F 'targeting= { "geo_locations":{"countries":["US"]}, "brand_safety_content_filter_levels":["FACEBOOK_STRICT","AN_STANDARD"]}' \
-F 'status=ACTIVE' \
-F 'access_token=ACCESS_TOKEN' \
https://graph.facebook.com/VERSION/AD_ACCOUNT_ID/adsets在 Audience Network 和插播影片廣告,您也可以按類別排除發佈商:
| 名稱 | 說明 |
|---|---|
陣列 <string> | 包括:
範例: |
| 名稱:選項 | 說明 |
|---|---|
| 此為選用項目。 |
| 此為選用項目。 備註:
|
| 此為選用項目。 備註:
|
| 此為選用項目。 |
| 此為選用項目。 |
| 此為選用項目。 |
| 此為選用項目。 備註:
|
OR。publisher_platforms=['facebook','instagram'] 是指在 Facebook 或 Instagram 上刊登廣告。 AND。publisher_platforms=['facebook']&device_platforms=['mobile'] 是指僅向流動版 Facebook 刊登這些廣告。 publisher_platforms=['instagram']& device_platforms=['desktop']),將會顯示錯誤。publisher_platforms: audience_network 本身。 VIDEO_VIEWS 目標的 audience_network 版位必須與 THRUPLAYS 優化目標一併使用。facebook_positions 選擇 story 本身。如果您為 facebook_positions 選擇 story,則必須同時選擇 Facebook feed 或 Instagram story。messenger_positions 選擇 story 本身。如果您為 messenger_positions 選擇 story,必須同時選擇 Facebook feed 或 Instagram story。facebook_positions 選擇 notification 本身。如果您為 facebook_positions 選擇 notification,則必須同時選擇 Facebook feed。stream 版位,系統會檢查這類廣告是否符合資格同時在桌面版或流動版網頁動態消息中刊登。相容目標為 BRAND_AWARENESS、REACH、LINK_CLICKS、POST_ENGAGEMENT、VIDEO_VIEWS 和 CONVERSIONS。threads_positions 選擇 threads_stream 本身。如果您為 threads_positions 選擇 threads_stream,則必須同時選擇 Instagram stream。當您使用版位控制選項來為自家廣告組合排除特定版位時,您可以允許我們在有可能提升廣告成效時,在每個被排除的版位上分配最多 5% 的花費。
如要停用花費有限的版位,請在建立或更新廣告組合時,透過 placement_soft_opt_out 欄位傳遞所需版位位置。
可用位置為 facebook_positions、audience_network_positions、instagram_positions、threads_positions 和 messenger_positions。
"placement_soft_opt_out": { "facebook_positions": [ "marketplace", "profile_feed" ], "audience_network_positions": [ "classic", "rewarded_video" ] }
如要查看哪些版位設有花費限制,請查詢廣告組合的 placement_soft_opt_out 欄位。
curl -G \ -d "access_token=<ACCESS_TOKEN>" \ "https://graph.facebook.com/v24.0<AD_SET_ID>?fields=placement_soft_opt_out"
使用 Facebook 限時動態作為您的版位:
curl \
-F 'name=My Ad Set'
-F 'optimization_goal=CONVERSIONS'
-F 'billing_event=IMPRESSIONS'
-F 'bid_amount=2'
-F 'daily_budget=1000'
-F 'campaign_id=<AD_CAMPAIGN_ID>'
-F 'targeting={"geo_locations":{"countries":["US"]}, "publisher_platforms":["messenger", "facebook"], "facebook_positions":["story"], "messenger_positions":["story"]}'
-F 'status=ACTIVE'
-F 'access_token=<ACCESS_TOKEN>'
https://graph.facebook.com/API_VERSION/act_AD_ACCOUNT_ID/adsets建立只選用 instream_video 版位的廣告組合,並將其目標受眾設定為以上所列的支援國家/地區:
curl \
-F 'name=My AdSet' \
-F 'optimization_goal=REACH' \
-F 'billing_event=IMPRESSIONS' \
-F 'bid_amount=2' \
-F 'daily_budget=1000' \
-F 'campaign_id=CAMPAIGN_ID' \
-F 'targeting={"geo_locations":{"countries":["US"]},"publisher_platforms":["facebook"], "facebook_positions":["instream_video"]}' \
-F 'status=ACTIVE' \
-F 'access_token=ACCESS_TOKEN' \
https://graph.facebook.com/API_VERSION/act_AD_ACCOUNT_ID/adsets設定 Audience Network 獎勵式影片廣告版位目標:
curl \
-F 'name=My Ad Set' \
-F 'optimization_goal=OFFSITE_CONVERSIONS' \
-F 'billing_event=IMPRESSIONS' \
-F 'is_autobid=true' \
-F 'daily_budget=40000' \
-F 'campaign_id=<AD_CAMPAIGN_ID>' \
-F 'targeting={"app_install_state": "not_installed","geo_locations":{"countries":["US"]},"facebook_positions":["feed"],"device_platforms": ["mobile"],"audience_network_positions": ["classic","rewarded_video"],"user_device": ["Android_Smartphone","Android_Tablet"],"user_os": ["Android_ver_4.4_and_above"]}' \
-F 'promoted_object={"application_id": "<APPLICATION_ID>","custom_event_type": "PURCHASE","object_store_url": "<OBJECT_STORE_URL>"}' \
-F 'status=ACTIVE' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/<APIVERSION>/<AD_ACCOUNT_ID>/adsets這會傳回以下內容:
{
"targeting": {
"audience_network_positions": [
"classic",
"rewarded_video"
],
"effective_audience_network_positions": [
"classic",
"rewarded_video"
]
},
"id": "<AD_SET_ID>"
}使用 Facebook Reels 作為您的版位:
curl \
-F 'name=My AdSet' \
-F 'optimization_goal=REACH' \
-F 'billing_event=IMPRESSIONS' \
-F 'bid_amount=2' \
-F 'daily_budget=1000' \
-F 'campaign_id=CAMPAIGN_ID' \
-F 'targeting={"geo_locations":{"countries":["US"]},"publisher_platforms":["facebook"], "facebook_positions":["facebook_reels"]}' \
-F 'status=ACTIVE' \
-F 'access_token=ACCESS_TOKEN' \
https://graph.facebook.com/API_VERSION/act_AD_ACCOUNT_ID/adsets建立以 explore_home 為版位的廣告組合,並將其目標受眾設定為支援國家/地區的用戶(例如「US」):
curl -X POST \
-F 'name="My AdSet"' \
-F 'optimization_goal="LINK_CLICKS"' \
-F 'billing_event="IMPRESSIONS"' \
-F 'bid_amount=2' \
-F 'daily_budget=1000' \
-F 'campaign_id="<AD_CAMPAIGN_ID>"' \
-F 'targeting={
"geo_locations": {
"countries": [
"US"
]
},
"publisher_platforms": [
"instagram"
],
"instagram_positions": [
"stream",
"explore",
"explore_home"
],
}' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v24.0/act_<AD_ACCOUNT_ID>/adsets
建立以 ig_search 為版位的廣告組合,並將其目標受眾設定為支援國家/地區的用戶(例如「US」):
curl -X POST \
-F 'name="My AdSet"' \
-F 'optimization_goal="LINK_CLICKS"' \
-F 'billing_event="IMPRESSIONS"' \
-F 'bid_amount=2' \
-F 'daily_budget=1000' \
-F 'campaign_id="<AD_CAMPAIGN_ID>"' \
-F 'targeting={
"geo_locations": {
"countries": [
"US"
]
},
"publisher_platforms": [
"instagram"
],
"instagram_positions": [
"stream",
"ig_search"
],
}' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v24.0/act_<AD_ACCOUNT_ID>/adsets
curl \ -F 'name=Threads Adset' \ -F 'optimization_goal=LINK_CLICKS' \ -F 'billing_event=IMPRESSIONS' \ -F 'bid_amount=2' \ -F 'daily_budget=1000' \ -F 'campaign_id=<CAMPAIGN_ID>' \ -F 'targeting={ "geo_locations": {"countries":["US"]}, "publisher_platforms": ["instagram", "threads"], "instagram_positions": ["stream"], "threads_positions": ["threads_stream"], "user_os": ["iOS"] }' \ -F 'access_token=<ACCESS_TOKEN>' \ https://graph.facebook.com/v24.0/act_<AD_ACCOUNT_ID>/adsets
您根據目標設定規格建立帶有版位的廣告組合,但您其實並不了解 Facebook 有否將您的廣告刊登在指定版位,這是因為您所選的版位可能不適用於您所選的廣告目標。以有效版位 API 來鎖定目標受眾後,您可以根據目標受眾設定選項來決定您廣告的刊登位置,並且接收驗證訊息來了解部分版位被篩走的原因。如果您沒有提供受眾目標設定,仍可以根據廣告組合和廣告宣傳活動設定來決定有效的版位。
如要讀取根據您目標受眾設定而得出的有效版位,請將 effective_ 放在版位欄位名稱之前。例如:
curl -G \
-d "fields=targeting{effective_publisher_platforms,effective_facebook_positions,effective_device_platforms,effective_audience_network_positions,effective_instagram_positions}" \
-d "access_token=<access_token>" \
https://graph.facebook.com/<VERSION>/<AD_SET_ID>如需了解部分版位被篩走的原因,請使用 recommendation 欄位:
curl -G \ -d "fields=recommendations" \ -d "access_token=<access_token>" \ https://graph.facebook.com/<VERSION>/23842573364570019
有了有效的版位,您便可以根據廣告組合的 billing_event、optimization_goal 和 promoted_object,以及根據廣告宣傳活動的 buying_type 和 objective,來決定在哪些版位刊登廣告。/ad_campaign_placement 的所有參數包括:
account_id 及存取憑證billing_event,例如 IMPRESSIONSAUCTIONPOST_ENGAGEMENTPOST_ENGAGEMENTPIXEL_ID您需要提供所有參數(promoted_object 和 optimization_goal 除外)。如果您有提供目標指定,則可使用推廣 API,以根據設定所允許的廣告版位,確定有效的廣告版位;詳情請查看含有指定目標的有效廣告版位。例如:
curl -G \ -d 'account_id=<ACCOUNT_ID>' \ -d 'billing_event=IMPRESSIONS' \ -d 'buying_type=AUCTION' \ -d 'objective=PAGE_LIKES' \ -d 'optimization_goal=IMPRESSIONS' \ https://graph.facebook.com/<VERSION>/ad_campaign_placement?access_token=<TOKEN>
此呼叫將傳回:
{
"effective_device_platforms": [
"mobile",
"desktop"
],
"effective_facebook_positions": [
"feed",
"right_hand_column"
],
"effective_publisher_platforms": [
"facebook"
],
"recommendations": [
{
"title": "Placement Not Supported By Objective",
"message": "Ads with PAGE_LIKES objective do not support facebook.instream_video, facebook.suggested_video, facebook.marketplace, audience_network.classic, audience_network.instream_video, audience_network.rewarded_video, instagram.stream, instagram.story",
"code": 1815609,
"importance": "LOW",
"confidence": "HIGH",
"blame_field": "targeting"
},
{
"title": "Device Platform Not Supported By Objective",
"message": "Ads with PAGE_LIKES objective do not support connected_tv.",
"code": 1815610,
"importance": "LOW",
"confidence": "HIGH",
"blame_field": "targeting"
}
],
}
}您可以使用此結果中的 code 欄位,然後向 /ad-recommendation 發出呼叫,以查看詳細原因。例如,您可以獲得以下資訊:
[{“code”: 1815610, “summary”: “Device Platform Not Supported By Objective”},]詳情請查看廣告推薦做法:參考資料及在有效版位鎖定目標受眾的文章。