page_manage_adsformat_transformation_spec parameter to opt in to different types of format transformations and data sources used to build the formats. Each entry in the spec defines a target format and the data source used to assemble it. You must include an entry for each transformation you want to enable.format_transformation_spec in the creative spec results in the default system behavior."format_transformation_spec": [ { "format": "da_collection", "data_source": ["catalog"] } ]
"format_transformation_spec": [ { "format": "carousel", "data_source": ["catalog"] }, { "format": "sa_collection", "data_source": ["catalog"] }, { "format": "video_slideshow", "data_source": ["site_links"] } ]
data_source to none:"format_transformation_spec": [ { "format": "carousel", "data_source": ["catalog"] }, { "format": "sa_collection", "data_source": ["none"] } ]
data_source field empty to opt in to all available data sources for that transformation:"format_transformation_spec": [ { "format": "carousel", "data_source": [] } ]
| Data source | Description |
|---|---|
catalog | Uses product catalog data |
curl -X POST \
-F 'name="Ad Creative with Format Transformation Spec Sample"' \
-F 'object_story_spec={
"page_id": "<PAGE_ID>"
... // Fields to create an Advantage+ catalog ads carousel creative \
}' \
-F 'product_set_id=<PRODUCT_SET_ID>' \
-F 'asset_feed_spec= {
"ad_formats": [
"CAROUSEL",
"COLLECTION"
],
"optimization_type": "FORMAT_AUTOMATION"
}' \
-F 'format_transformation_spec=[{
"data_source": ["catalog"],
"format": "da_collection"
}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/adcreatives
| Data source | Description |
|---|---|
catalog | Uses product catalog data |
manual_uploads | Uses intro card |
curl -X POST \
-F 'name="Intro Card Ad Creative with Format Transformation Spec"' \
-F 'object_story_spec={
"page_id": "<PAGE_ID>"
... // Fields to create an Advantage+ catalog ads carousel creative with intro card \
}' \
-F 'product_set_id=<PRODUCT_SET_ID>' \
-F 'asset_feed_spec= {
"ad_formats": [
"CAROUSEL",
"COLLECTION"
],
"optimization_type": "FORMAT_AUTOMATION"
}' \
-F 'format_transformation_spec=[{
"format": "single_media",
"data_source": ["manual_uploads"]
},
{
"format": "da_collection",
"data_source": ["catalog", "manual_uploads"]
}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/adcreatives
| Data source | Description | Explicit opt-in guide |
|---|---|---|
catalog | Uses product media from your catalog | |
site_links | Uses media from your website | |
app_information | Uses app store media |
curl -X POST \
-F 'name="Single Media to Carousel with Format Transformation Spec"' \
-F 'object_story_spec={
"page_id": "<PAGE_ID>"
... // Fields according to explicit opt-in guide \
}' \
... // Other fields specific to your data source (see explicit opt-in guide) \
-F 'format_transformation_spec=[{
"format": "carousel",
"data_source": ["catalog"]
}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/adcreatives
| Data source | Description | Explicit opt-in guide |
|---|---|---|
catalog | Uses product media from your catalog | |
site_links | Uses media from your website |
curl -X POST \
-F 'name="Single Media to Collection with Format Transformation Spec"' \
-F 'object_story_spec={
"page_id": "<PAGE_ID>"
... // Fields according to explicit opt-in guide \
}' \
... // Other fields specific to your data source (see explicit opt-in guide) \
-F 'format_transformation_spec=[{
"format": "sa_collection",
"data_source": ["catalog"]
}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/adcreatives
| Data source | Description | Explicit opt-in guide |
|---|---|---|
app_information | Uses app store media | |
site_links | Uses media from your website |
curl -X POST \
-F 'name="Single Media to Video Slideshow with Format Transformation Spec"' \
-F 'object_story_spec={
"page_id": "<PAGE_ID>"
... // Fields according to explicit opt-in guide \
}' \
... // Other fields specific to your data source (see explicit opt-in guide) \
-F 'format_transformation_spec=[{
"format": "video_slideshow",
"data_source": ["app_information"]
}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/adcreatives
| Data source | Description |
|---|---|
manual_uploads | Uses cards from the carousel |
curl -X POST \
-F 'name="Carousel to Single Media with Format Transformation Spec"' \
-F 'object_story_spec={
"page_id": "<PAGE_ID>"
... // Fields to create a carousel creative \
}' \
-F 'format_transformation_spec=[{
"format": "single_media",
"data_source": ["manual_uploads"]
}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/adcreatives
| Data source | Description |
|---|---|
manual_uploads | Uses cards from the carousel |
curl -X POST \
-F 'name="Carousel to Collection with Format Transformation Spec"' \
-F 'object_story_spec={
"page_id": "<PAGE_ID>"
... // Fields to create a carousel creative \
}' \
-F 'format_transformation_spec=[{
"format": "sa_collection",
"data_source": ["manual_uploads"]
}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/adcreatives
| Data source | Description |
|---|---|
manual_uploads | Uses cards from the carousel |
curl -X POST \
-F 'name="Carousel to Video Slideshow with Format Transformation Spec"' \
-F 'object_story_spec={
"page_id": "<PAGE_ID>"
... // Fields to create a carousel creative \
}' \
-F 'format_transformation_spec=[{
"format": "video_slideshow",
"data_source": ["manual_uploads"]
}]' \
-F 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/adcreatives
| Name | Description |
|---|---|
format | Required.
Specifies the target format for the transformation.
Values:
|
data_source | Optional.
Specifies the data used to assemble the format.
Values:
Note: Not including the data_source field or leaving it empty indicates an opt-in to all available data sources. |
creative_sourcing_spec and degrees_of_freedom_spec as described in Product Extensions. To configure media from your website, see Add Site Links. To configure app store data, see Mobile App Ads.format_transformation_spec:curl -G \
-d 'fields=format_transformation_spec' \
-d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/<CREATIVE_ID>
{ "format_transformation_spec": [ { "data_source": ["catalog"], "format": "da_collection" } ], "id": "<AD_CREATIVE_ID>" }