API Reference
List the ad's leads
/v27.0/{ad_id}/leadshttps://meta-ads.mimicr.dev · provider: https://graph.facebook.comLeads that came from the ad. Requires leads_retrieval plus pages_manage_ads or ads_management (Page or user token).
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
ID of the ad.
"120200539998049721"Query parameters
Comma-separated fields to return, with Graph field expansion: a,b{c,d},e.limit(5). Without it, only id (and a few default fields on some nodes) is returned. An unknown field returns (#100) Tried accessing nonexisting field.
Maximum items per page (default 25).
Cursor of paging.cursors.after: the page after.
Cursor of paging.cursors.before: the page before.
JSON [{"field":"time_created","operator":"GREATER_THAN","value":<unix>}]; operators GREATER_THAN, LESS_THAN, GREATER_THAN_OR_EQUAL.
Responses
200OK.
Show child attributes
ID of the object.
Time the lead was submitted, ISO 8601 in UTC (+0000).
ID of the form the lead submitted.
Answers of the form: [{name, values}].
ID of the ad.
Name of the ad.
ID of the ad set.
Name of the ad set.
ID of the campaign.
Name of the campaign.
Whether the lead came organically (no ad). Test leads are organic.
Where the lead came from: fb or ig.
Answers to custom disclaimer checkboxes.
Name of the CRM partner, if any.
Cursor-based paging. next is absent on the last page and repeats every query param of the request, access_token included.
Show child attributes
Show child attributes
Cursor of the first item of the page.
Cursor of the last item of the page.
URL of the next page.
URL of the previous page.
400Error in the Graph envelope.
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"