Asset Customization für Platzierung

Verwende diese Lösung, um die Anzeigengestaltung in verschiedenen Anzeigenplatzierungen anzupassen. Behalte die Kontrolle über die Anzeigengestaltung, während du verschiedene Platzierungen verwendest.

Die Placement Asset Customization ist eine unserer drei APIs, die Asset Customization-Regeln verwenden. Erfahre hier mehr über die Asset Customization-Regeln.

Erste Schritte

Die Placement Asset Customization mit bestehenden Beiträgen wird über die API nicht mehr unterstützt. Diese Option ist nur im Werbeanzeigenmanager verfügbar.

Schritt 2: Anzeigengestaltung bereitstellen

Verwende asset_feed_spec, um deine Anzeigengestaltung bereitzustellen. Du kannst mehrere Anzeigengestaltungen für jeden Asset-Typ angeben, einschließlich Bilder, Videos, Carousels, Headlines und Überschriften und Haupttext. Stelle nur eine Link-Beschreibung bereit, da sie nicht pro Platzierung angepasst werden kann.

So wendest du die Personalisierung an:

  1. Lege asset_customization_rules in deiner asset_feed_spec fest.
  2. Füge für jede Regel customization_spec und Asset-Label hinzu.

Für die Placement Asset Customization muss jede asset_feed_spec über mehrere Customization-Regeln verfügen.

Siehe Asset Customization Rules.

Unterstützte Eigenschaften


Eigenschaftsname Beschreibung

customization_spec

Typ: Unterstützte Felder

Erforderlich.

Platzierungen, an denen die Assets angezeigt werden sollen.

image_label

Format: {"name": "{LABEL_NAME}"}

Erforderlich für SINGLE_IMAGE-Format.

Label für das Bild, das du anzeigen möchtest. Es wird an die Bild-Assets in asset_feed_spec angehängt.

video_label

Format: {"name": "{LABEL_NAME}"}

Für das SINGLE_VIDEO-Format erforderlich.

Label für das Video, das du anzeigen möchtest. Es wird an die Video-Assets in asset_feed_spec angehängt.

carousel_label
-Format: {"name": "{LABEL_NAME}"}

Erforderlich für CAROUSELS-Format.

Label des Carousels, das du anzeigen möchtest. Es wird an die Carousel-Assets in asset_feed_spec angehängt.

Hinweis: Wenn Carousels über Asset Customization für Platzierungen bereitgestellt werden, müssen alle untergeordneten Anhänge mit der Asset-Feed-Spezifikation definiert und über „adlabels“ referenziert werden. Untergeordnete Anhänge können nicht inline definiert werden. Unter Optionen für Asset-Feed-Spezifikationen findest du weitere Details zum carousels-Format.

Unterstützte Felder in customization_spec


Eigenschaftsname Beschreibung

publisher_platforms

Dieser Parameter ist erforderlich.

Mögliche Platzierungen für deine Werbeanzeige. Verfügbare Optionen: facebook, instagram, messenger, audience_network und threads.

facebook_positions

Optional, aber erforderlich, wenn Facebook in publisher_platforms ausgewählt wurde.

Facebook-spezifische Platzierung. Die Optionen sind feed, right_hand_column, marketplace, video_feeds, search, story und notification.

instagram_positions

Optional, aber erforderlich, wenn Instagram in publisher_platforms ausgewählt wurde.

Instagram-spezifische Platzierungen. Optionen sind: stream, story, explore, explore_home, profile_feed und ig_search.

Hinweis: Die explore_home Platzierung unterstützt nur das SINGLE_IMAGE-Format.

messenger_positions

Optional, aber erforderlich, wenn Messenger in publisher_platforms ausgewählt wurde.

Messenger-spezifische Platzierungen. Optionen sind: sponsored_messages und story.

audience_network_positions

Optional, aber erforderlich, wenn Audience Network in publisher_platforms ausgewählt wurde.

Audience Network-spezifische Platzierung. Verfügbare Optionen: classic, instream_video und rewarded_video.

threads_positions

Optional, aber erforderlich, wenn Threads in publisher_platforms ausgewählt wurde.

Threads-spezifische Platzierung: threads_stream

Hinweis:publisher_platform: instagram und instagram_positions: stream sind erforderlich, um threads_positions: threads_stream auswählen zu können.

Erfahre mehr über unsere verfügbaren Platzierungsoptionen.

Beispiel – Feed-Setup

curl -X POST \ -F 'object_story_spec={ "page_id": "<PAGE_ID>", "instagram_user_id": "<IG_USER_ID>", }' \ -F 'asset_feed_spec={ "videos": [{ "adlabels": [{"name": "labelfb"}], "video_id": "<VIDEO_ID>" }, { "adlabels": [{"name": "labelig"}], "video_id": "<VIDEO_ID>" }], "bodies": [{"text": "Begin Your Adventure"}], "link_urls": [{ "website_url": "<WEBSITE_URL>", "display_url": "<DISPLAY_URL>" }], "titles": [{"text": "Level Up"}], "ad_formats": ["SINGLE_VIDEO"], "call_to_action_types": ["WATCH_MORE"], "descriptions": [{"text": "Description"}], "asset_customization_rules": [{ "customization_spec": { "publisher_platforms": ["facebook"], "facebook_positions": ["feed","instream_video"] }, "video_label": { "name": "labelfb" } }, { "customization_spec": { "publisher_platforms": ["instagram"], "instagram_positions": ["stream"] }, "video_label": { "name": "labelig" } }] }' \ -F 'access_token=<ACCESS_TOKEN>' \ https://graph.facebook.com/v24.0/act_<AD_ACCOUNT_ID>/adcreatives

Beispiel — Instagram Explore-Home Asset Customization

curl -X POST \ -F 'object_story_spec={ "page_id": "<PAG_-ID>", "instagram_user_id": "<INSTAGRAM_ID>", }' \ -F 'asset_feed_spec={ "ad_formats": ["SINGLE_IMAGE"], "asset_customization_rules": [{ "image_label": { "name": "<IMAGE_LABEL>" }, "customization_spec": { "publisher_platforms": ["instagram"], "instagram_positions": ["explore_home"] } }], "bodies": [{ "text": "", "adlabels": [{ "name": "adlabel1" }, { "name": "adlabel2" }] }], "call_to_action_types": ["LEARN_MORE"], "images": [{ "hash": "<IMAGE_HASH>", "adlabels": [{"name": "adlabel1"}] }, { "hash": "<IMAGE_HASH>", "image_crops": { "100x100": [ [ 604, 0 ], [ 1659, 1055 ] ] }, "adlabels": [{"name": "adlabel2"}] }], "link_urls": [{ "website_url": "<WEBSITE_URL>", "display_url": "<DISPLAY_URL>", "deeplink_url": "<DEEPLINK_URL>", "adlabels": [ { "name": "adlabel1" }, { "name": "adlabel2" } ] }], "optimization_type": "PLACEMENT", "titles": [{ "text": "<TEXT>", "adlabels": [ { "name": "adlabel1" }, { "name": "adlabel2" } ] }] }' \ -F 'access_token=<ACCESS_TOKEN>' \ https://graph.facebook.com/v24.0/act_<AD_ACCOUNT_ID>/adcreatives

Beispiel - Instagram-Suchergebnisse Asset-Customization

curl -X POST \ -F 'object_story_spec={ "page_id": "<PAGE_ID>", "instagram_user_id": "<INSTAGRAM_ID>", }' \ -F 'asset_feed_spec={ "ad_formats": ["SINGLE_IMAGE"], "asset_customization_rules": [{ "image_label": { "name": "placement_asset_f1048d832ecd558_1661539731099" }, "customization_spec": { "publisher_platforms": ["instagram"], "instagram_positions": ["ig_search"] } }], "bodies": [{ "text": "<TEXT>", "adlabels": [ { "name": "adlabel1" }, { "name": "adlabel2" } ] }], "call_to_action_types": ["LEARN_MORE"], "images": [{ "hash": "9ffd7307eae1f9c6e5250fc8760d285f", "adlabels": [{"name": "adlabel1"}] }, { "hash": "9ffd7307eae1f9c6e5250fc8760d285f", "image_crops": { "100x100": [ [ 604, 0 ], [ 1659, 1055 ] ] }, "adlabels": [{"name": "adlabel2"}] }], "link_urls": [{ "website_url": "<WEBSITE_URL>", "display_url": "<DISPLAY_URL>", "deeplink_url": "<DEEPLINK_URL>", "adlabels": [ { "name": "adlabel1" }, { "name": "adlabel2" } ] }], "optimization_type": "PLACEMENT", "titles": [{ "text": "", "adlabels": [ { "name": "adlabel1" }, { "name": "adlabel2" } ] }] }' \ -F 'access_token=<ACCESS_TOKEN>' \ https://graph.facebook.com/v24.0/act_<AD_ACCOUNT_ID>/adcreatives

Beispiel – Threads-Feed-Setup

curl -X POST \ -F 'object_story_spec={ "page_id": "<PAGE_ID>", "instagram_user_id": "<IG_USER_ID>", "threads_user_id" : "<THREADS_USER_ID>", }' \ -F 'asset_feed_spec={ "videos": [{ "adlabels": [{"name": "labelfb"}], "video_id": "<VIDEO_ID>" }, { "adlabels": [{"name": "labelig"}], "video_id": "<VIDEO_ID>" }, { "adlabels": [{"name": "labelthreads"}], "video_id": "<VIDEO_ID>" }], "bodies": [{"text": "Begin Your Adventure"}], "link_urls": [{ "website_url": "<WEBSITE_URL>", "display_url": "<DISPLAY_URL>" }], "titles": [{"text": "Level Up"}], "ad_formats": ["SINGLE_VIDEO"], "call_to_action_types": ["WATCH_MORE"], "descriptions": [{"text": "Description"}], "asset_customization_rules": [{ "customization_spec": { "publisher_platforms": ["instagram"], "instagram_positions": ["stream"] }, "video_label": { "name": "labelig" } }, { "customization_spec": { "publisher_platforms": ["threads"], "threads_positions": ["threads_stream"] }, "video_label": { "name": "labelthreads" } }, { "customization_spec": {}, "video_label": { "name": "labelfb" } }], "optimization_type": "PLACEMENT" }' \ -F 'access_token=<ACCESS_TOKEN>' \ https://graph.facebook.com/v23.0/act_<AD_ACCOUNT_ID>/adcreatives

Hier findest du alle verfügbaren Optionen für die Asset-Feed-Spezifikation.

Optionaler Schritt 5: Inhalt der Werbeanzeige lesen

Für Platzierungs-Asset Customization-Werbung sollten Felder der Anzeigengestaltung für Instagram über act_<AD_ACCOUNT_ID>/ads abgefragt werden. Zum Beispiel:

https://graph.facebook.com/v24.0/act_<AD_ACCOUNT_ID>/ads?fields=creative{effective_instagram_media_id,instagram_permalink_url}