API Reference
Get an ad
/v27.0/{ad_id}https://meta-ads.mimicr.dev · provider: https://graph.facebook.comReads an ad. Ask for effective_status and ad_review_feedback to follow the review. 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.
"120200539998049721"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.
Responses
200OK.
ID of the object.
ID of the ad account, without the act_ prefix.
ID of the ad set.
ID of the campaign.
The parent ad set (id).
Show child attributes
ID of the object.
ID of the ad account, without the act_ prefix.
ID of the campaign.
The parent campaign (id).
Show child attributes
ID of the object.
ID of the ad account, without the act_ prefix.
Name of the object.
Campaign objective: OUTCOME_APP_PROMOTION, OUTCOME_AWARENESS, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES or OUTCOME_TRAFFIC.
OUTCOME_APP_PROMOTIONOUTCOME_AWARENESSOUTCOME_ENGAGEMENTOUTCOME_LEADSOUTCOME_SALESOUTCOME_TRAFFICStatus set by the advertiser: ACTIVE, PAUSED, DELETED or ARCHIVED.
ACTIVEARCHIVEDDELETEDPAUSEDSame as status.
ACTIVEARCHIVEDDELETEDPAUSEDEffective status, derived from the object's own status and its parents'. DELETED and ARCHIVED objects are hidden from edges unless the effective_status filter includes them.
ACTIVEARCHIVEDDELETEDIN_PROCESSPAUSEDWITH_ISSUESBuying type: AUCTION (default). RESERVED (reach and frequency) is not simulated.
Special ad categories of the campaign: NONE, EMPLOYMENT, HOUSING, CREDIT, ISSUES_ELECTIONS_POLITICS, ONLINE_GAMBLING_AND_GAMING or FINANCIAL_PRODUCTS_SERVICES.
The first special ad category, or NONE.
Daily budget in the minor unit of the account currency (cents for BRL). Written as an integer, read back as a numeric string.
Lifetime budget in the minor unit of the account currency. Requires end_time on ad sets.
Remaining budget (today's for a daily budget), in the minor unit, as a numeric string.
Bid strategy: LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP or LOWEST_COST_WITH_MIN_ROAS.
COST_CAPLOWEST_COST_WITHOUT_CAPLOWEST_COST_WITH_BID_CAPLOWEST_COST_WITH_MIN_ROASWhether ad sets may share up to 20% of their budget. Required when the campaign has no campaign budget (v24.0+).
Spend cap in the minor unit. 922337203685478 removes it.
Time the object was created, ISO 8601 in the ad account time zone (2026-11-05T14:25:17-0300).
Time the object was last updated, ISO 8601 in the ad account time zone.
Read-only: the earliest start time of the campaign's ad sets.
Read-only: the latest end time of the campaign's ad sets, when all have one.
Issues that keep the object from delivering (error_code, error_summary, error_message, level).
Smart promotion type of the campaign.
ID of the campaign this one was copied from, or 0.
Name of the object.
Status set by the advertiser: ACTIVE, PAUSED, DELETED or ARCHIVED.
ACTIVEARCHIVEDDELETEDPAUSEDSame as status.
ACTIVEARCHIVEDDELETEDPAUSEDEffective status: the ad set's own status, or CAMPAIGN_PAUSED when its campaign is paused.
ACTIVEARCHIVEDCAMPAIGN_PAUSEDDELETEDIN_PROCESSPAUSEDWITH_ISSUESDaily budget in the minor unit of the account currency (cents for BRL). Written as an integer, read back as a numeric string.
Lifetime budget in the minor unit of the account currency. Requires end_time on ad sets.
Remaining budget (today's for a daily budget), in the minor unit, as a numeric string.
What the ad set is charged for. Click-to-WhatsApp requires IMPRESSIONS.
APP_INSTALLSCLICKSIMPRESSIONSLINK_CLICKSLISTING_INTERACTIONNONEOFFER_CLAIMSPAGE_LIKESPOST_ENGAGEMENTPURCHASETHRUPLAYWhat the ad set optimizes delivery for. It must be compatible with the campaign objective.
33 values
ADVERTISER_SILOED_VALUEAD_RECALL_LIFTAPP_INSTALLSAPP_INSTALLS_AND_OFFSITE_CONVERSIONSAUTOMATIC_OBJECTIVECONVERSATIONSDERIVED_EVENTSENGAGED_PAGE_VIEWSENGAGED_USERSEVENT_RESPONSESIMPRESSIONSIN_APP_VALUELANDING_PAGE_VIEWSLEAD_GENERATIONLINK_CLICKSMEANINGFUL_CALL_ATTEMPTMESSAGING_APPOINTMENT_CONVERSIONMESSAGING_DEEP_CONVERSATION_AND_FOLLOWMESSAGING_PURCHASE_CONVERSIONNONEOFFSITE_CONVERSIONSPAGE_LIKESPOST_ENGAGEMENTPROFILE_AND_PAGE_ENGAGEMENTPROFILE_VISITQUALITY_CALLQUALITY_LEADREACHREMINDERS_SETSUBSCRIBERSTHRUPLAYVALUEVISIT_INSTAGRAM_PROFILEBid strategy: LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP or LOWEST_COST_WITH_MIN_ROAS.
COST_CAPLOWEST_COST_WITHOUT_CAPLOWEST_COST_WITH_BID_CAPLOWEST_COST_WITH_MIN_ROASBid cap or target cost in the minor unit. Required with LOWEST_COST_WITH_BID_CAP and COST_CAP.
The audience of the ad set. See Targeting.
Show child attributes
Locations to target. Required.
Show child attributes
ISO-2 country codes.
Regions as {key}.
Cities as {key, radius, distance_unit}; radius 10–50 mi or 17–80 km.
Points with a radius: {latitude, longitude, radius, distance_unit} or {address_string, radius}; radius 1–80 km or 0.63–50 mi; up to 200 items.
Show child attributes
Latitude of the point.
Longitude of the point.
Radius around the point.
kilometer or mile (default).
Address, instead of coordinates.
home and/or recent.
Minimum age, 13 or more (default 18). With Advantage+ audience only 18 to 25.
Maximum age, up to 65.
[1] men, [2] women. Omit for all.
Advantage+ audience settings.
Show child attributes
1 lets Meta expand the audience (Advantage+ audience), 0 keeps it. Must be set explicitly on create when the audience is constrained.
Per-dimension automation settings (age, gender, device).
Platforms: facebook, instagram, messenger, audience_network.
Facebook placements.
Instagram placements.
Messenger placements. story is dropped since v26.0.
mobile and/or desktop.
connected_tvdesktopmobileDetailed targeting. In Mimicr it is stored, not resolved.
Excluded detailed targeting. Stored, not resolved.
Custom audiences. Custom audiences are not simulated (501).
Interests. Stored, not resolved.
The object the ad set promotes (Page, WhatsApp number, pixel…).
Show child attributes
ID of the Page. Required for WhatsApp and lead generation ad sets.
WhatsApp number (digits) the ads open a chat with. Must be the Page's number.
Phone number ID of the WhatsApp Business account.
ID of the dataset (pixel) for conversion optimization.
Conversion event to optimize for (PURCHASE, LEAD, …).
29 values
ACHIEVEMENT_UNLOCKEDADD_PAYMENT_INFOADD_TO_CARTADD_TO_WISHLISTAD_IMPRESSIONCOMPLETE_REGISTRATIONCONTACTCONTENT_VIEWCUSTOMIZE_PRODUCTD2_RETENTIOND7_RETENTIONDONATEFIND_LOCATIONINITIATED_CHECKOUTLEADLEVEL_ACHIEVEDLISTING_INTERACTIONMESSAGING_CONVERSATION_STARTED_7DOTHERPURCHASERATESCHEDULESEARCHSERVICE_BOOKING_REQUESTSPENT_CREDITSSTART_TRIALSUBMIT_APPLICATIONSUBSCRIBETUTORIAL_COMPLETIONID of the app for app promotion.
Where people go after clicking: WEBSITE, APP, MESSENGER, WHATSAPP, INSTAGRAM_DIRECT, ON_AD, …
Start time of the ad set. Defaults to now. It can't change after the ad set started.
End time of the ad set. Required with a lifetime budget; 0 or empty means ongoing with a daily budget.
["standard"] (default) or ["day_parting"] with adset_schedule.
Delivery schedule (day parting). Only with lifetime budgets; minutes on the hour, at least one hour apart.
Show child attributes
Start minute of the day (0–1439), on the hour.
End minute of the day; 1440 is the end of the day.
Days of the week, 0 (Sunday) to 6.
USER or ADVERTISER.
Whether ad sets may share up to 20% of their budget. Required when the campaign has no campaign budget (v24.0+).
Daily minimum spend target in the minor unit (stored).
Conversion attribution windows (event_type, window_days).
Time the object was created, ISO 8601 in the ad account time zone (2026-11-05T14:25:17-0300).
Time the object was last updated, ISO 8601 in the ad account time zone.
Review feedback of the ad set.
Issues that keep the object from delivering (error_code, error_summary, error_message, level).
Learning phase of the ad set.
The parent campaign (id).
Show child attributes
ID of the object.
ID of the ad account, without the act_ prefix.
Name of the object.
Campaign objective: OUTCOME_APP_PROMOTION, OUTCOME_AWARENESS, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES or OUTCOME_TRAFFIC.
OUTCOME_APP_PROMOTIONOUTCOME_AWARENESSOUTCOME_ENGAGEMENTOUTCOME_LEADSOUTCOME_SALESOUTCOME_TRAFFICStatus set by the advertiser: ACTIVE, PAUSED, DELETED or ARCHIVED.
ACTIVEARCHIVEDDELETEDPAUSEDSame as status.
ACTIVEARCHIVEDDELETEDPAUSEDEffective status, derived from the object's own status and its parents'. DELETED and ARCHIVED objects are hidden from edges unless the effective_status filter includes them.
ACTIVEARCHIVEDDELETEDIN_PROCESSPAUSEDWITH_ISSUESBuying type: AUCTION (default). RESERVED (reach and frequency) is not simulated.
Special ad categories of the campaign: NONE, EMPLOYMENT, HOUSING, CREDIT, ISSUES_ELECTIONS_POLITICS, ONLINE_GAMBLING_AND_GAMING or FINANCIAL_PRODUCTS_SERVICES.
The first special ad category, or NONE.
Daily budget in the minor unit of the account currency (cents for BRL). Written as an integer, read back as a numeric string.
Lifetime budget in the minor unit of the account currency. Requires end_time on ad sets.
Remaining budget (today's for a daily budget), in the minor unit, as a numeric string.
Bid strategy: LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP or LOWEST_COST_WITH_MIN_ROAS.
COST_CAPLOWEST_COST_WITHOUT_CAPLOWEST_COST_WITH_BID_CAPLOWEST_COST_WITH_MIN_ROASWhether ad sets may share up to 20% of their budget. Required when the campaign has no campaign budget (v24.0+).
Spend cap in the minor unit. 922337203685478 removes it.
Time the object was created, ISO 8601 in the ad account time zone (2026-11-05T14:25:17-0300).
Time the object was last updated, ISO 8601 in the ad account time zone.
Read-only: the earliest start time of the campaign's ad sets.
Read-only: the latest end time of the campaign's ad sets, when all have one.
Issues that keep the object from delivering (error_code, error_summary, error_message, level).
Smart promotion type of the campaign.
ID of the campaign this one was copied from, or 0.
Name of the object.
Status set by the advertiser: ACTIVE, PAUSED, DELETED or ARCHIVED.
ACTIVEARCHIVEDDELETEDPAUSEDSame as status.
ACTIVEARCHIVEDDELETEDPAUSEDEffective status of the ad, in priority order DELETED > ARCHIVED > DISAPPROVED > WITH_ISSUES > PENDING_REVIEW > IN_PROCESS > CAMPAIGN_PAUSED > ADSET_PAUSED > PAUSED > PENDING_BILLING_INFO > ACTIVE.
ACTIVEADSET_PAUSEDARCHIVEDCAMPAIGN_PAUSEDDELETEDDISAPPROVEDIN_PROCESSPAUSEDPENDING_BILLING_INFOPENDING_REVIEWPREAPPROVEDWITH_ISSUESThe ad creative. On writes, {"creative_id":"<id>"}.
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).
Review feedback of a rejected ad: global maps the policy name to the explanation; placement_specific does the same per placement.
Show child attributes
Policy name → explanation, for every placement.
Policy feedback per placement.
Issues that keep the object from delivering (error_code, error_summary, error_message, level).
Tracking specs of the ad.
Domain where conversions happen.
Time the object was created, ISO 8601 in the ad account time zone (2026-11-05T14:25:17-0300).
Time the object was last updated, ISO 8601 in the ad account time zone.
Shareable link to preview the ad.
Bid cap or target cost in the minor unit. Required with LOWEST_COST_WITH_BID_CAP and COST_CAP.
ID of the ad this one was copied from, or 0.
400Error in the Graph envelope: 100/33 unknown object, 100 nonexisting field.
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"