API Reference
Facebook LoginGETLogin dialog
Conversions API

Create a dataset (pixel)

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

Creates a dataset. 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, with onePixelPerAccount (default on) a second dataset returns 6200 (6202 when more than one exists), and a name containing [limite-pixel] returns 6200.

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 dataset.

Responses

200OK.
idstringrequired

ID of the new object.

400Error in the Graph envelope: 6200 a pixel already exists for this account, 6202 more than one pixel exists.
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"