ad_format, you have:| Format | Description |
|---|---|
INSTAGRAM_EXPLORE_CONTEXTUAL | Instagram Explore Feed format. Learn more about ads in Instagram Explore. |
INSTAGRAM_EXPLORE_IMMERSIVE | Instagram Explore Video format. Learn more about ads in Instagram Explore. |
INSTAGRAM_REELS | Instagram Reels placement. |
INSTAGRAM_STANDARD | Instagram feed post format. |
INSTAGRAM_STORY | Instagram story format. |
THREADS_STREAM | Threads feed post format. |
curl -G \
-d 'ad_format=INSTAGRAM_STANDARD' \
-d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/<AD_ID>/previews
curl -G \
-d 'ad_format=THREADS_STREAM \
-d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/<AD_ID>/previews
object_story_spec in the preview’s creative parameter. You must provide instagram_user_id and page_id for both Instagram-only placement and mixed placement ads:curl -G \
--data-urlencode 'creative={
"object_story_spec": {
"instagram_user_id": "<INSTAGRAM_USER_ID>",
"link_data": {
"call_to_action": {"type":"LEARN_MORE","value":{"link":"<URL>"}},
"caption": "www.example.com",
"image_hash": "<IMAGE_HASH>",
"link": "<URL>",
"message": "Ad Message"
},
"page_id": "<PAGE_ID>"
}
}' \
-d 'ad_format=INSTAGRAM_STANDARD' \
-d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/generatepreviews
object_story_spec in the preview’s creative parameter. You must provide threads_user_id and page_id for both Threads with Instagram placements:curl -G \
--data-urlencode 'creative={
"object_story_spec": {
"instagram_user_id": "<INSTAGRAM_USER_ID>",
"threads_user_id" : "<THREAD_USER_ID>"
"link_data": {
"call_to_action": {"type":"LEARN_MORE","value":{"link":"<URL>"}},
"caption": "www.example.com",
"image_hash": "<IMAGE_HASH>",
"link": "<URL>",
"message": "Ad Message"
},
"page_id": "<PAGE_ID>"
}
}' \
-d 'ad_format=THREADS_STREAM \
-d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/act_<AD_ACCOUNT_ID>/generatepreviews
template_data in object_story_spec. This URL is also unavailable for ad creatives for ads in Instagram stories.curl -X GET \
-d 'fields="instagram_permalink_url"' \
-d 'access_token=<ACCESS_TOKEN>' \
https://graph.facebook.com/v25.0/<CREATIVE_ID>/
{ "instagram_permalink_url": "<INSTAGRAM_POST_URL>", "id": "<AD_CREATIVE_ID>" }