You can use the following options in your asset_feed_spec
. See Ad Asset Feed Spec for more reference information.
Property Name | Description |
---|---|
type: array of list | Required for Array of eligible images. Images provided in this array should be included in the ad account's image library. Provide this field as an array of list containing |
type: array of list | Required for Array of Provide this field as an array of list containing |
| Optional. Provide |
type: array of list | Optional. Array of bodies. The primary message or copy of the ad. Provide this field as an array of list of |
type: array of list | Required for all objectives, except Array of call-to-action-type values. Provide this field as an array of list of |
type: array of list | Optional. Array of titles. A title is a short headline in the ad, generally shown next to a link, image or video. Provide this field as an array of list of |
type: array of list | Optional. Array of secondary description text, displayed less prominently than bodies or titles. Generally appears next to a link, image or video. If not specified, Facebook scrapes the link you provided to generate it. Use an empty string with single space for blank description, if you do not want to use the scraped text. Provide this field as an array of list of |
type: array of list | Required. Array of link URLs. Provide this field as an array of list of |
type: array of strings | Required. Array of Facebook ad formats we should create the ads in. Supported formats are: Provide this field as an array of strings |
type: string | Optional. Optimization type used in asset feed. Possible values are |
type: array of strings | Optional. Possible value: |
| Required for Shops Ads. Valid for Static Ads; {"storefront_shop_id": "<SHOP_STOREFRONT_ID>"} or {"shop_collection_product_set_id": "<PRODUCT_SET_ID>" or {"details_page_product_id": "<PRODUCT_ID>"} |
| Required for Shops Ads. Valid for Advantage+ Catalog Ads. |
| Required for Shops Ads. Valid for Advantage+ Catalog Ads. |
Ad Formats
ad_formats
: SINGLE_IMAGE
, CAROUSEL
, SINGLE_VIDEO
, and AUTOMATIC_FORMAT
. ad_format
is allowed per asset feed.ad_format
counts as one asset in an asset feed. Number of Assets:
images
, 5 bodies
, 5 titles
, 5 description
, 1 ad_format
, 1 link_url
, and 1 call_to_action_types
.Image requirements:
CAROUSEL_IMAGE
format, you must provide at least 2 images.Text requirements:
CAROUSEL_IMAGE
, titles are optional.url_tags
are optional and only available for images
, videos
, bodies
, descriptions
, and titles
. Facebook appends url_tags
to the link URL as parameters for each asset in an ad.
For example, a valid asset feed combination setup for SINGLE_IMAGE
format is:
images
bodies
titles
descriptions
SINGLE_IMAGE
link_urls
"link_urls=[{'website_url':'<WEBSITE_URL>'}, {'website_url':'<WEBSITE_URL>'}]"
You can use deeplinks in asset feed specs for campaigns with the following objectives:
APP_INSTALLS
CONVERSIONS
LINK_CLICKS
Add deeplink_url
in link_urls
when you create your asset_feed_spec
.
curl \
-F 'object_story_spec={
"page_id": "<PAGE_ID>"
"instagram_actor_id" : "<INSTAGRAM_ACTOR_ID>",
}' \
-F "asset_feed_spec={'images': [{'hash':'image_hash'}], 'bodies': [{'text':'Body 1'}, {'text':'Body 2'}], 'titles': [{'text':'Title 1'}, {'text':'Title 2'}], 'descriptions': [{'text':' '}], 'ad_formats': ['SINGLE_IMAGE'], 'link_urls': [{'website_url':'App's object store URL','deeplink_url':'deeplink URL'}]}" \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v21.0
/act_<AD_ACCOUNT_ID>/adcreatives
You can create ads that send people to your website with a WhatsApp button appearing at the bottom of the screen, so they can contact you instantly. This will help people connect with you on WhatsApp while visiting your website.
Add message_extensions
when you create your asset_feed_spec
.
curl \
-F 'object_story_spec={
"page_id": "<PAGE_ID>"
"instagram_actor_id" : "<INSTAGRAM_ACTOR_ID>",
}' \
-F 'asset_feed_spec={"images": [{"hash":"image_hash"}], "bodies": [{"text":"Body 1"}, {"text":"Body 2"}],"titles": [{"text":"Title 1"}, {"text":"Title 2"}], "descriptions": [{"text":" "}], "ad_formats": ["SINGLE_IMAGE"], "link_urls": [{"website_url":"business URL"}], "message_extensions": [{"type": "whatsapp"}]}' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v21.0
/act_<AD_ACCOUNT_ID>/adcreatives