API Reference
Facebook LoginGETLogin dialog
Insights

Get the rows of an async report

GET/v27.0/{report_run_id}/insights
Base URL: https://meta-ads.mimicr.dev · provider: https://graph.facebook.com

Rows of a completed run, in the shape of the synchronous Insights call, with cursor paging. Before completion returns (#100) Report is not ready yet.

Authorization

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

Path parameters

report_run_idstringrequired

ID of the async report run.

Example: "100539998049734"

Query parameters

limitinteger

Maximum items per page (default 25).

afterstring

Cursor of paging.cursors.after: the page after.

beforestring

Cursor of paging.cursors.before: the page before.

Responses

200OK.
dataobject[]
Show child attributes
account_idstring

ID of the ad account, without the act_ prefix.

account_namestring

Name of the ad account.

account_currencystring

Currency of the ad account.

campaign_idstring

ID of the campaign.

campaign_namestring

Name of the campaign.

adset_idstring

ID of the ad set.

adset_namestring

Name of the ad set.

ad_idstring

ID of the ad.

ad_namestring

Name of the ad.

objectivestring

Objective of the campaign.

optimization_goalstring

What the ad set optimizes delivery for. It must be compatible with the campaign objective.

impressionsstring

Number of times the ads were on screen.

reachstring

Number of people who saw the ads at least once (estimated).

frequencystring

Average number of times each person saw the ads (impressions / reach).

spendstring

Amount spent, in major units of the account currency, as a decimal string ("13.11").

clicksstring

Number of clicks on the ads.

unique_clicksstring

Number of people who clicked.

inline_link_clicksstring

Clicks on links that lead to destinations on or off Meta.

ctrstring

Click-through rate, clicks / impressions × 100.

cpcstring

Average cost per click.

cpmstring

Average cost per 1,000 impressions.

cppstring

Average cost to reach 1,000 people.

actionsobject[]

Actions attributed to the ads, as {action_type, value}. CTWA conversations are onsite_conversion.messaging_conversation_started_7d.

Show child attributes
action_typestring

Kind of action (link_click, lead, purchase, onsite_conversion.messaging_conversation_started_7d, …).

valuestring

Value of the metric, as a string.

7d_clickstring

Value in the 7-day click attribution window.

1d_viewstring

Value in the 1-day view attribution window.

action_valuesobject[]

Total value of the conversions attributed to the ads, in major units.

Show child attributes
action_typestring

Kind of action (link_click, lead, purchase, onsite_conversion.messaging_conversation_started_7d, …).

valuestring

Value of the metric, as a string.

7d_clickstring

Value in the 7-day click attribution window.

1d_viewstring

Value in the 1-day view attribution window.

cost_per_action_typeobject[]

Average cost of each action type.

Show child attributes
action_typestring

Kind of action (link_click, lead, purchase, onsite_conversion.messaging_conversation_started_7d, …).

valuestring

Value of the metric, as a string.

7d_clickstring

Value in the 7-day click attribution window.

1d_viewstring

Value in the 1-day view attribution window.

conversionsobject[]

Conversions attributed to the ads.

Show child attributes
action_typestring

Kind of action (link_click, lead, purchase, onsite_conversion.messaging_conversation_started_7d, …).

valuestring

Value of the metric, as a string.

7d_clickstring

Value in the 7-day click attribution window.

1d_viewstring

Value in the 1-day view attribution window.

date_startstring

First day of the row, YYYY-MM-DD in the ad account time zone.

date_stopstring

Last day of the row, YYYY-MM-DD in the ad account time zone.

agestring

Breakdown age: age range (18-24, 25-34, …).

genderstring

Breakdown gender: male, female or unknown.

publisher_platformstring

Breakdown publisher_platform: facebook, instagram, messenger, audience_network.

platform_positionstring

Breakdown platform_position: feed, story, reels, …

device_platformstring

Breakdown device_platform: mobile_app, mobile_web, desktop.

regionstring

Breakdown region: state or region name.

countrystring

Breakdown country: ISO-2 country code.

pagingobject

Cursor-based paging. next is absent on the last page and repeats every query param of the request, access_token included.

Show child attributes
cursorsobject
Show child attributes
beforestring

Cursor of the first item of the page.

afterstring

Cursor of the last item of the page.

nextstring

URL of the next page.

previousstring

URL of the previous page.

400Error in the Graph envelope: 100 report not ready.
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"