API Reference
List ad creatives
/v27.0/act_{ad_account_id}/adcreativeshttps://meta-ads.mimicr.dev · provider: https://graph.facebook.comCreatives of the account (deleted ones hidden). Requires ads_read or ads_management and a role on the ad account.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
ID of the ad account (the path is act_{ad_account_id}).
"100539998049706"Query parameters
Comma-separated fields to return, with Graph field expansion: a,b{c,d},e.limit(5). Without it, only id (and a few default fields on some nodes) is returned. An unknown field returns (#100) Tried accessing nonexisting field.
Maximum items per page (default 25).
Cursor of paging.cursors.after: the page after.
Cursor of paging.cursors.before: the page before.
Responses
200OK.
Show child attributes
ID of the object.
ID of the ad account, without the act_ prefix.
Name of the object.
Status set by the advertiser: ACTIVE, PAUSED, DELETED or ARCHIVED.
ACTIVEDELETEDIN_PROCESSWITH_ISSUESThe Page post the ad shows: page_id plus link_data or video_data.
Show child attributes
ID of the Page the post is published as. Required; the user must be able to advertise on it.
A link post (image ad).
Show child attributes
Destination URL. https://api.whatsapp.com/send for click-to-WhatsApp; http://fb.me/ for lead ads.
Primary text of the ad.
Headline.
Link description.
URL of the image. Must be http(s). In Mimicr a URL containing nao-baixa can't be downloaded (3858258).
Hash of an image in the account library. Accepted as an opaque string (the image library is not simulated).
The call-to-action button: {type, value}.
Show child attributes
Type of the button: WHATSAPP_MESSAGE, LEARN_MORE, ORDER_NOW, SIGN_UP, APPLY_NOW, …
105 values
ADD_TO_CARTAPPLY_NOWASK_ABOUT_SERVICESASK_A_QUESTIONASK_FOR_MORE_INFOASK_USAUDIO_CALLBOOK_A_CONSULTATIONBOOK_NOWBOOK_TRAVELBROWSE_SHOPBUYBUY_ACTIVITY_TICKETSBUY_NOWBUY_TICKETSBUY_VIA_MESSAGECALLCALL_MECALL_NOWCHAT_NOWCHAT_WITH_USCONFIRMCONTACTCONTACT_USDONATEDONATE_NOWDOWNLOADEVENT_RSVPFIND_A_GROUPFIND_OUT_MOREFIND_YOUR_GROUPSFOLLOW_NEWS_STORYLINEFOLLOW_PAGEFOLLOW_USERGET_A_QUOTEGET_DETAILSGET_DIRECTIONSGET_IN_TOUCHGET_OFFERGET_OFFER_VIEWGET_PROMOTIONSGET_QUOTEGET_SHOWTIMESGET_STARTEDINQUIRE_NOWINSTALL_APPINSTALL_MOBILE_APPJOIN_CHANNELJOIN_LIVE_VIDEOLEARN_MORELIKE_PAGELISTEN_MUSICLISTEN_NOWMAKE_AN_APPOINTMENTMESSAGE_PAGEMOBILE_DOWNLOADNO_BUTTONOPEN_INSTANT_APPOPEN_LINKORDER_NOWPAY_TO_ACCESSPLAY_GAMEPLAY_GAME_ON_FACEBOOKPURCHASE_GIFT_CARDSRAISE_MONEYRECORD_NOWREFER_FRIENDSREQUEST_TIMESAY_THANKSSEE_MORESEE_SHOPSELL_NOWSEND_A_GIFTSEND_GIFT_MONEYSEND_UPDATESSHARESHOP_NOWSHOP_WITH_AISIGN_UPSOTTO_SUBSCRIBESTART_A_CHATSTART_ORDERSTREAM_NOWSUBSCRIBESWIPE_UP_PRODUCTSWIPE_UP_SHOPTRY_DEMOTRY_ON_WITH_AIUPDATE_APPUSE_APPUSE_MOBILE_APPVIDEO_ANNOTATIONVIDEO_CALLVIEW_CARTVIEW_CHANNELVIEW_IN_CARTVIEW_PRODUCTVISIT_PAGES_FEEDVISIT_WEBSITEWATCH_LIVE_VIDEOWATCH_MOREWATCH_NOWWATCH_VIDEOWHATSAPP_MESSAGEWOODHENGE_SUPPORTButton target: {app_destination: "WHATSAPP"}, {link} or {lead_gen_form_id}.
Show child attributes
WHATSAPP for click-to-WhatsApp ads.
Destination URL of the button.
ID of the lead form of a lead ad. The form must belong to the creative's Page.
Greeting of click-to-WhatsApp ads (VISUAL_EDITOR JSON). Its text becomes referral.welcome_message.text.
Carousel cards.
A video post.
Show child attributes
ID of a video of the account in ready state.
Primary text of the ad.
Headline of the video ad.
Thumbnail URL. A thumbnail (image_url or image_hash) is required.
Hash of an image in the account library. Accepted as an opaque string (the image library is not simulated).
The call-to-action button: {type, value}.
Show child attributes
Type of the button: WHATSAPP_MESSAGE, LEARN_MORE, ORDER_NOW, SIGN_UP, APPLY_NOW, …
105 values
ADD_TO_CARTAPPLY_NOWASK_ABOUT_SERVICESASK_A_QUESTIONASK_FOR_MORE_INFOASK_USAUDIO_CALLBOOK_A_CONSULTATIONBOOK_NOWBOOK_TRAVELBROWSE_SHOPBUYBUY_ACTIVITY_TICKETSBUY_NOWBUY_TICKETSBUY_VIA_MESSAGECALLCALL_MECALL_NOWCHAT_NOWCHAT_WITH_USCONFIRMCONTACTCONTACT_USDONATEDONATE_NOWDOWNLOADEVENT_RSVPFIND_A_GROUPFIND_OUT_MOREFIND_YOUR_GROUPSFOLLOW_NEWS_STORYLINEFOLLOW_PAGEFOLLOW_USERGET_A_QUOTEGET_DETAILSGET_DIRECTIONSGET_IN_TOUCHGET_OFFERGET_OFFER_VIEWGET_PROMOTIONSGET_QUOTEGET_SHOWTIMESGET_STARTEDINQUIRE_NOWINSTALL_APPINSTALL_MOBILE_APPJOIN_CHANNELJOIN_LIVE_VIDEOLEARN_MORELIKE_PAGELISTEN_MUSICLISTEN_NOWMAKE_AN_APPOINTMENTMESSAGE_PAGEMOBILE_DOWNLOADNO_BUTTONOPEN_INSTANT_APPOPEN_LINKORDER_NOWPAY_TO_ACCESSPLAY_GAMEPLAY_GAME_ON_FACEBOOKPURCHASE_GIFT_CARDSRAISE_MONEYRECORD_NOWREFER_FRIENDSREQUEST_TIMESAY_THANKSSEE_MORESEE_SHOPSELL_NOWSEND_A_GIFTSEND_GIFT_MONEYSEND_UPDATESSHARESHOP_NOWSHOP_WITH_AISIGN_UPSOTTO_SUBSCRIBESTART_A_CHATSTART_ORDERSTREAM_NOWSUBSCRIBESWIPE_UP_PRODUCTSWIPE_UP_SHOPTRY_DEMOTRY_ON_WITH_AIUPDATE_APPUSE_APPUSE_MOBILE_APPVIDEO_ANNOTATIONVIDEO_CALLVIEW_CARTVIEW_CHANNELVIEW_IN_CARTVIEW_PRODUCTVISIT_PAGES_FEEDVISIT_WEBSITEWATCH_LIVE_VIDEOWATCH_MOREWATCH_NOWWATCH_VIDEOWHATSAPP_MESSAGEWOODHENGE_SUPPORTButton target: {app_destination: "WHATSAPP"}, {link} or {lead_gen_form_id}.
Show child attributes
WHATSAPP for click-to-WhatsApp ads.
Destination URL of the button.
ID of the lead form of a lead ad. The form must belong to the creative's Page.
A photo post.
A text post.
Instagram account the ad runs as.
ID of the Page post the creative created, {page_id}_{post_id}.
Type of the creative: SHARE (link), VIDEO or STATUS.
13 values
APPLICATIONDOMAINEVENTINVALIDOFFERPAGEPHOTOPOST_DELETEDPRIVACY_CHECK_FAILSHARESTATUSSTORE_ITEMVIDEOType of the call-to-action button.
105 values
ADD_TO_CARTAPPLY_NOWASK_ABOUT_SERVICESASK_A_QUESTIONASK_FOR_MORE_INFOASK_USAUDIO_CALLBOOK_A_CONSULTATIONBOOK_NOWBOOK_TRAVELBROWSE_SHOPBUYBUY_ACTIVITY_TICKETSBUY_NOWBUY_TICKETSBUY_VIA_MESSAGECALLCALL_MECALL_NOWCHAT_NOWCHAT_WITH_USCONFIRMCONTACTCONTACT_USDONATEDONATE_NOWDOWNLOADEVENT_RSVPFIND_A_GROUPFIND_OUT_MOREFIND_YOUR_GROUPSFOLLOW_NEWS_STORYLINEFOLLOW_PAGEFOLLOW_USERGET_A_QUOTEGET_DETAILSGET_DIRECTIONSGET_IN_TOUCHGET_OFFERGET_OFFER_VIEWGET_PROMOTIONSGET_QUOTEGET_SHOWTIMESGET_STARTEDINQUIRE_NOWINSTALL_APPINSTALL_MOBILE_APPJOIN_CHANNELJOIN_LIVE_VIDEOLEARN_MORELIKE_PAGELISTEN_MUSICLISTEN_NOWMAKE_AN_APPOINTMENTMESSAGE_PAGEMOBILE_DOWNLOADNO_BUTTONOPEN_INSTANT_APPOPEN_LINKORDER_NOWPAY_TO_ACCESSPLAY_GAMEPLAY_GAME_ON_FACEBOOKPURCHASE_GIFT_CARDSRAISE_MONEYRECORD_NOWREFER_FRIENDSREQUEST_TIMESAY_THANKSSEE_MORESEE_SHOPSELL_NOWSEND_A_GIFTSEND_GIFT_MONEYSEND_UPDATESSHARESHOP_NOWSHOP_WITH_AISIGN_UPSOTTO_SUBSCRIBESTART_A_CHATSTART_ORDERSTREAM_NOWSUBSCRIBESWIPE_UP_PRODUCTSWIPE_UP_SHOPTRY_DEMOTRY_ON_WITH_AIUPDATE_APPUSE_APPUSE_MOBILE_APPVIDEO_ANNOTATIONVIDEO_CALLVIEW_CARTVIEW_CHANNELVIEW_IN_CARTVIEW_PRODUCTVISIT_PAGES_FEEDVISIT_WEBSITEWATCH_LIVE_VIDEOWATCH_MOREWATCH_NOWWATCH_VIDEOWHATSAPP_MESSAGEWOODHENGE_SUPPORTURL of a 64×64 thumbnail of the creative.
URL of the creative image.
ID of the video of the creative.
Title (headline) of the creative.
Primary text of the creative.
Destination URL of the creative.
Query string appended to the destination URL.
Creative enhancements (stored, not processed).
Cursor-based paging. next is absent on the last page and repeats every query param of the request, access_token included.
Show child attributes
Show child attributes
Cursor of the first item of the page.
Cursor of the last item of the page.
URL of the next page.
URL of the previous page.
400Error in the Graph envelope.
Show child attributes
Description of the error.
"(#100) The parameter special_ad_categories is required"OAuthException for most codes (the Marketing API uses it for validation too), GraphMethodException for unknown objects, FacebookApiException for transient errors. In Mimicr, routes outside the integration core answer MimicrNotSimulated with HTTP 501.
"OAuthException"Error code (100 invalid parameter, 190 invalid token, 200 permission, 2635 deprecated version, 613/17/80004 rate limits, …).
100Error subcode with more detail (1885272 budget too low, 463 token expired, …).
1885272Whether retrying the same request may succeed. Present on every Marketing API error; true for codes 1 and 2.
Title of the error, to show to people.
Message of the error, to show to people.
Extra data. blame_field_specs lists the params that caused a validation error.
Show child attributes
Internal support identifier of the request.
"AbCdEf12345"