简体   繁体   中英

Facebook API carousel ads previews

I am trying to create a preview of a carousel facebook ad before the ad is created itself. This is possible for other types of ads, but I am unsure if it can be done for carousel ads,

The below line from documentation would suggest not, unless there is a way to do this without the "object_story_id". Perhaps someone knows of a different method?

https://developers.facebook.com/docs/marketing-api/generatepreview/v2.5

"Create an multi-product ad preview using object_story_id. To get an object_story_id, you must first create a Multi-Product Ad"

I don't think you can preview a carousel ad without object_story_id . You can create a carousel ad page post in the same call with the ad creative API as documented here . Once you have this, you can make a call to creative_id?fields=object_story_id to retrieve the post ID. Then you can preview what the post will look like by going to facebook.com/post-id .

If I am not mistaken, I think this will only create an unpublished post which serves as an ad creative and does not actually create an ad. If you want to create an ad out of it then you can use the creative_id in act_<AD_ACCOUNT_ID>/ads endpoint as documented here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM