API Reference
Create an ad
/v27.0/act_{ad_account_id}/adshttps://meta-ads.mimicr.dev · provider: https://graph.facebook.comCreates an ad from an ad set and a creative. New ads are reviewed before they run, whatever their status: effective_status goes IN_PROCESS → PENDING_REVIEW → the outcome (ACTIVE/PAUSED, DISAPPROVED with ad_review_feedback, or WITH_ISSUES). Requires ads_management and a role on the ad account. Disabled or closed accounts (status 2, 101) answer (#200) The ad account is disabled.
In Mimicr, IN_PROCESS lasts about 5 s and the decision comes reviewDelayMinutes (default 10) sandbox minutes later; triggers in the ad name or creative text change it ([reprovar], [com-problemas], [revisao-manual]), and the control actions ad.approve/ad.reject decide at once.
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"Body
application/x-www-form-urlencodedName of the ad. Review triggers in Mimicr: [reprovar], [com-problemas], [revisao-manual], [falha-simulada].
ID of the ad set; it can't change later.
{"creative_id":"<id>"}. An inline {object_story_spec} is accepted too. A new creative puts the ad back into review.
Show child attributes
ID of a creative of this account.
ACTIVE or PAUSED. The ad is reviewed either way.
ACTIVEPAUSEDTracking specs (stored).
Conversion domain (stored).
["validate_only"] runs every validation and returns {"success":true} without writing.
validate_onlyResponses
200The ad.
ID of the new object.
400Error in the Graph envelope: 100/33 unknown ad set, 100/1885128 invalid creative, 200, 613, 2635.
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"500Transient error: code 2 with is_transient: true. Retry later.
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"