FORMAT_AUTOMATION as an optimization_type inside your asset_feed_spec. Your API call must contain the following fields:product_set_idtemplate_dataobject_story_spec, the template_data object allows you to build your template.template_data has the following required fields:| Name | Description |
|---|---|
multi_share_end_card | Whether an advertiser wants to use the end card in the carousel ad format. Set to true if you are using the card; otherwise, set to false. |
name | Optional. One template tag to be used as the product’s name. See supported template tags. |
link | Link for the offsite landing page. A user will be directed to this link if they click your call-to-action button. |
message | Optional. Copy for your ad. |
call_to_action | A call to action for the user seeing your ad. Use any call to action type compatible with Advantage+ catalog ads. |
asset_feed_specasset_feed_spec gives you the specifications for an asset feed.asset_feed_spec can include:| Name | Description |
|---|---|
optimization_type | Required. Type of optimization being used. Set to FORMAT_AUTOMATION. |
ad_formats | Required. List of ad formats. Set to ["CAROUSEL", "COLLECTION"]. |
descriptions | Optional. Specify one description option. The text is used for ads served in the carousel format. You can use supported template tags or a free-form message. |
images | Optional. Use this field to set a custom image as cover media for a collection ad. Example of an API call using this field. |
videos | Optional. Use this field to set a custom video as cover media for a collection ad. Example of an API call using this field. |
creative_features_speccreative_features_spec and using fields supported by Advantage+ for catalog.creative_features_spec can include:| Name | Description |
|---|---|
adapt_to_placement | Optional. Opt-in if you want 9:16 images in your catalog to be displayed in supported placements (Instagram Stories/Instagram Reels/Facebook Stories/Facebook Reels). |
media_type_automation | Optional. Opt-in if you want videos from your catalog to be displayed (along with images) in supported placements. See Dynamic Media for more information. |
dynamic_partner_content | Optional. Opt-in if you want your active partnership ads from other campaigns to appear in a collection with items from your catalog. This will not affect the other ad campaigns. The enroll_status field can be set to OPT_IN or OPT_OUT.Note: This feature is labeled Dynamic partnership ads in Ads Manager. |
add_text_overlay | Optional. This feature is labeled ‘Add Dynamic Overlays’ in Ads Manager.Opt-in if you want to add information from catalog items as visually-unique overlays The enroll_status field can be set to OPT_IN or OPT_OUT.If you want to have manual control on how the overlay is rendered, see the Ad Creative Link Data Image Layer Spec reference documentation for more details. |
curl \
-F 'name=Advantage+ creative for catalog test' \
-F 'adset_id=<AD_SET_ID>' \
-F 'creative={
"name": "Creative for Advantage+ creative for catalog test",
"product_set_id": "<PRODUCT_SET_ID>",
"object_type": "SHARE",
"object_story_spec": {
"page_id": "<PAGE_ID>",
"template_data": {
"multi_share_end_card": "true",
"name": "{{product.name}}",
"link": "<OFFSITE_LANDING_PAGE>",
"message": "<AD_COPY>",
"call_to_action": {"type": "SHOP_NOW"},
}},
"asset_feed_spec":{
"optimization_type":"FORMAT_AUTOMATION",
"ad_formats": ["CAROUSEL", "COLLECTION"]},
"descriptions": [{"text": "{{product.brand}}", "From {{product.current_price}}", ...]}
}' \
-F 'url_tags=<URL_TAGS>' \
-F 'tracking_specs=[{"action.type":"offsite_conversion","fb_pixel":<PIXEL_ID>}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v<API_VERSION>/act_<AD_ACCOUNT>/ads
curl \
-F 'name=Advantage+ creative for catalog test - custom image' \
-F 'adset_id=<AD_SET_ID>' \
-F 'creative={
"name": "Creative For Advantage+ creative for catalog test - custom image",
"product_set_id": "<PRODUCT_SET_ID>",
"object_type": "SHARE",
"object_story_spec": {
"page_id": "<PAGE_ID>",
"template_data": {
"multi_share_end_card": "true",
"name": "{{product.name}}",
"link": "<OFFSITE_LANDING_PAGE>",
"message": "<AD_COPY>",
"call_to_action": {"type": "SHOP_NOW"},
}
},
"asset_feed_spec":{
"optimization_type":"FORMAT_AUTOMATION",
"ad_formats": ["CAROUSEL", "COLLECTION"],
"images": [{"hash": "<customized_image_hash>"}],
"descriptions": [{"text": "{{product.description}}", "From {{product.current_price}}", ...]
}
}' \
-F 'url_tags=<URL_TAGS>' \
-F 'tracking_specs=[{"action.type":"offsite_conversion","fb_pixel":<PIXEL_ID>}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v<API_VERSION>/act_<AD_ACCOUNT>/ads
curl \
-F 'name=Advantage+ creative for catalog test - custom video' \
-F 'adset_id=<AD_SET_ID>' \
-F 'creative={
"name": "Creative For Advantage+ creative for catalog test - custom video",
"product_set_id": "<PRODUCT_SET_ID>",
"object_type": "SHARE",
"object_story_spec": {
"page_id": "<PAGE_ID>",
"template_data": {
"multi_share_end_card": "true",
"link": "<LINK>",
"message": "<AD_COPY>",
"call_to_action": {"type": "SHOP_NOW"},
}
},
"asset_feed_spec":{
"optimization_type":"FORMAT_AUTOMATION",
"ad_formats": ["CAROUSEL", "COLLECTION"],
"videos": [{"video_id": "<VIDEO_ID>"}]},
"descriptions": [{"text": "{{product.description}}", "From {{product.current_price}}", ...]}
}' \
-F 'tracking_specs=[{"action.type":"offsite_conversion","fb_pixel":<PIXEL_ID>}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v<API_VERSION>/act_<AD_ACCOUNT>/ads
NONE instead of AUTO for the showcase_card_display customization parameter value.curl \
-F 'name=Advantage+ creative for catalog test - active 9:16' \
-F 'adset_id=<AD_SET_ID>' \
-F 'creative={
"name": "Creative For Advantage+ creative for catalog test - active 9:16",
"product_set_id": "<PRODUCT_SET_ID>",
"object_type": "SHARE",
"object_story_spec": {
"page_id": "<PAGE_ID>",
"template_data": {
"multi_share_end_card": "true",
"link": "<LINK>",
"message": "<AD_COPY>",
"call_to_action": {"type": "SHOP_NOW"},
}
},
"asset_feed_spec":{
"optimization_type":"FORMAT_AUTOMATION",
"ad_formats": ["CAROUSEL", "COLLECTION"],
"descriptions": [{"text": "{{product.description}}", "From {{product.current_price}}", ...]
},
"degrees_of_freedom_spec" : {
"creative_features_spec": {
"adapt_to_placement": {
"enroll_status": "OPT_IN",
"customizations": {
"showcase_card_display": "AUTO"
}
}
}
}
}' \
-F 'tracking_specs=[{"action.type":"offsite_conversion","fb_pixel":<PIXEL_ID>}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT>/ads
curl \
-F 'name=Advantage+ creative for catalog test - dynamic media' \
-F 'adset_id=<AD_SET_ID>' \
-F 'creative={
"name": "Creative For Advantage+ creative for catalog test - dynamic media",
"product_set_id": "<PRODUCT_SET_ID>",
"object_type": "SHARE",
"object_story_spec": {
"page_id": "<PAGE_ID>",
"template_data": {
"multi_share_end_card": "true",
"link": "<LINK>",
"message": "<AD_COPY>",
"call_to_action": {"type": "SHOP_NOW"},
}
},
"asset_feed_spec":{
"optimization_type":"FORMAT_AUTOMATION",
"ad_formats": ["CAROUSEL", "COLLECTION"],
"descriptions": [{"text": "{{product.description}}", "From {{product.current_price}}", ...]
},
"degrees_of_freedom_spec" : {
"creative_features_spec": {
"media_type_automation": {
"enroll_status": "OPT_IN"
}
}
}
}' \
-F 'tracking_specs=[{"action.type":"offsite_conversion","fb_pixel":<PIXEL_ID>}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT>/ads
| Format | Creative Variations |
|---|---|
Cover media can be:
You must pick one option. | |
Description can be:
Both can be used at the same time. |
descriptions parameter under asset_feed_spec. Add all your description options under descriptions and list the first one under description.{{product.price}}{{product.current_price}}{{product.description}}{{product.short_description}}{{product.brand}}{{product.name}}{{hotel.base_price}}{{hotel.sale_price}}{{hotel.total_price}}{{hotel.brand}}{{hotel.name}}{{hotel.description}}{{flight.price}}{{flight.description}}{{destination.price}}{{destination.name}}{{destination.description}}{{home_listing.price}}{{home_listing.name}}{{home_listing.description}}{{vehicle.price}}{{vehicle.sale_price}}{{vehicle.description}}{{vehicle_offer.amount}}{{vehicle_offer.price}}{{vehicle_offer.description}}{{automotive_model.price}}{{automotive_model.description}}{{product.price}} and {{product.current_price}}{{product.description}} and {{product.short_description}}{{hotel.base_price}} and {{hotel.sale_price}} and {{hotel.total_price}}{{vehicle.price}} and {{vehicle.sale_price}}{{vehicle_offer.amount}} and {{vehicle_offer.price}}