API Reference
Facebook LoginGETLogin dialog
Businesses, ad accounts and Pages

Create an ad account

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

Creates an ad account in the Business Manager. Requires business_management and ads_management. The new account has no payment method.

In Mimicr, the business allows maxAdAccounts (default 5) accounts; a name containing [limite-contas] also returns 3979.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

business_idstringrequired

ID of the Business Manager.

Example: "842989790016191"

Body

application/x-www-form-urlencoded
namestringrequired

Name of the account.

currencystringrequired

ISO 4217 currency (BRL). Invalid → 2607.

timezone_idintegerrequired

Time zone ID (25 America/Sao_Paulo).

end_advertiserstringrequired

NONE, UNFOUND or an ID.

media_agencystringrequired

NONE, UNFOUND or an ID.

partnerstringrequired

NONE, UNFOUND or an ID.

funding_idstring

Payment method (stored).

invoiceboolean

Stored.

po_numberstring

Stored.

Responses

200The account.
idstring

act_{id}.

account_idstring
business_idstring
end_advertiser_idstring
media_agency_idstring
partner_idstring
400Error in the Graph envelope: 3979 too many ad accounts for the business, 3980 an account in bad standing (sandbox toggle strictAccountCreation), 2607 invalid currency, 100 invalid parameter.
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"