API Reference
Facebook LoginGETLogin dialog
Campaigns

Create a campaign

POST/v27.0/act_{ad_account_id}/campaigns
Base URL: https://meta-ads.mimicr.dev · provider: https://graph.facebook.com

Creates 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

ad_account_idstringrequired

ID of the ad account (the path is act_{ad_account_id}).

Example: "100539998049706"

Body

application/x-www-form-urlencoded
namestringrequired

Name of the campaign (emoji allowed).

Example: "Gás em casa"
objectivestringrequired

Campaign objective. Legacy objectives (LINK_CLICKS, MESSAGES, CONVERSIONS, …) return (#100) Objective <X> is invalid.

OUTCOME_APP_PROMOTIONOUTCOME_AWARENESSOUTCOME_ENGAGEMENTOUTCOME_LEADSOUTCOME_SALESOUTCOME_TRAFFIC
statusstring

ACTIVE or PAUSED.

ACTIVEPAUSED
special_ad_categoriesstring[]required

Special ad categories; [] when none. Required on create.

CREDITEMPLOYMENTFINANCIAL_PRODUCTS_SERVICESHOUSINGISSUES_ELECTIONS_POLITICSNONEONLINE_GAMBLING_AND_GAMING
buying_typestring

AUCTION (default). RESERVED is not simulated (501).

daily_budgetinteger

Campaign daily budget in the minor unit. Setting a budget at both campaign and ad set level returns 1885621.

lifetime_budgetinteger

Campaign lifetime budget in the minor unit.

bid_strategystring

Bid strategy of a campaign with budget.

COST_CAPLOWEST_COST_WITHOUT_CAPLOWEST_COST_WITH_BID_CAPLOWEST_COST_WITH_MIN_ROAS
is_adset_budget_sharing_enabledboolean

Required (true or false) when the campaign has no campaign budget; otherwise 100/4834011.

spend_capinteger

Spend cap in the minor unit; 922337203685478 removes it.

execution_optionsstring[]

["validate_only"] runs every validation and returns {"success":true} without writing.

validate_only

Responses

200OK.
idstringrequired

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.
errorobjectrequired
Show child attributes
messagestringrequired

Description of the error.

Example: "(#100) The parameter special_ad_categories is required"
typestringrequired

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.

Example: "OAuthException"
codeintegerrequired

Error code (100 invalid parameter, 190 invalid token, 200 permission, 2635 deprecated version, 613/17/80004 rate limits, …).

Example: 100
error_subcodeinteger

Error subcode with more detail (1885272 budget too low, 463 token expired, …).

Example: 1885272
is_transientboolean

Whether retrying the same request may succeed. Present on every Marketing API error; true for codes 1 and 2.

error_user_titlestring

Title of the error, to show to people.

error_user_msgstring

Message of the error, to show to people.

error_dataobject

Extra data. blame_field_specs lists the params that caused a validation error.

Show child attributes
blame_field_specsstring[][]
fbtrace_idstringrequired

Internal support identifier of the request.

Example: "AbCdEf12345"