API Reference
Create a campaign
/v27.0/act_{ad_account_id}/campaignshttps://meta-ads.mimicr.dev · provider: https://graph.facebook.comCreates a campaign. Without a campaign budget, is_adset_budget_sharing_enabled is required (v24.0+). Requires ads_management and a role on the ad account. Disabled or closed accounts (status 2, 101) answer (#200) The ad account is disabled.
This endpoint changed in v25.0: after v24.0 expires (2026-11-10 by the sandbox clock), v24.0 calls to it answer 2635 instead of being upgraded.
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 campaign (emoji allowed).
"Gás em casa"Campaign objective. Legacy objectives (LINK_CLICKS, MESSAGES, CONVERSIONS, …) return (#100) Objective <X> is invalid.
OUTCOME_APP_PROMOTIONOUTCOME_AWARENESSOUTCOME_ENGAGEMENTOUTCOME_LEADSOUTCOME_SALESOUTCOME_TRAFFICACTIVE or PAUSED.
ACTIVEPAUSEDSpecial ad categories; [] when none. Required on create.
CREDITEMPLOYMENTFINANCIAL_PRODUCTS_SERVICESHOUSINGISSUES_ELECTIONS_POLITICSNONEONLINE_GAMBLING_AND_GAMINGAUCTION (default). RESERVED is not simulated (501).
Campaign daily budget in the minor unit. Setting a budget at both campaign and ad set level returns 1885621.
Campaign lifetime budget in the minor unit.
Bid strategy of a campaign with budget.
COST_CAPLOWEST_COST_WITHOUT_CAPLOWEST_COST_WITH_BID_CAPLOWEST_COST_WITH_MIN_ROASRequired (true or false) when the campaign has no campaign budget; otherwise 100/4834011.
Spend cap in the minor unit; 922337203685478 removes it.
["validate_only"] runs every validation and returns {"success":true} without writing.
validate_onlyResponses
200OK.
ID of the new object.
400Error in the Graph envelope: 100 invalid parameter (legacy objective, missing special_ad_categories, 4834011 budget sharing not specified, 1885621 two budgets), 200 disabled account, 2635 deprecated version, 613/17/80004 rate limits.
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"