Skip to main content
Facebook ReportingVersion: v3

Get reporting data

GET/ad-publishing/facebook/reporting

Retrieve aggregated Facebook ad reporting metrics for a location. grouped holds one row per groupBy period, or a single row covering the whole range when groupBy is omitted, and totals aggregates across them. Both objects only carry the metrics named in fields. Be aware that ratio metrics (cpm, ctr, frequency) are summed rather than weighted in totals, and that cost_per_conversion and cost_per_result are placeholders that always read 0 — their real values live under costPerConversion and costPerResult.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:adPublishing.readonly
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Query Parameters

locationIdstringrequired

Location identifier

Example:fRMewNQIxSyZ5R4nQyit
fieldsstring[]required

Reporting fields. Pass as comma-separated values on the wire (e.g. ?fields=impressions,clicks).

Available optionsimpressionsclicksspendcpccost_per_conversionconversionsresultscost_per_resultcpmreachfrequencyctr
Example:["impressions","clicks","spend"]
groupBystring

Time grouping interval

Available optionsdayweekmonth
Example:month
startDatestringrequired

Report start date (YYYY-MM-DD)

Example:2022-01-11
endDatestringrequired

Report end date (YYYY-MM-DD)

Example:2022-01-31
typestringrequired

Integration source type

Available optionsAD_MANAGERINTEGRATION
Example:INTEGRATION

Response

Per-period rows and their aggregate totals

groupedobject[]required

One row per period when groupBy is given, otherwise a single row covering the whole range.

totalsobjectrequired

Aggregates across every row in grouped