Campaign metrics breakdown export (JSONL)
Streams the full country-level metrics dataset for a campaign as
newline-delimited JSON (JSONL). Every line is a complete, valid
JSON object conforming to the campaign_country_daily v1.0 schema
— identical to the rows returned by GET /metrics/breakdown but
without pagination or an envelope wrapper.
Designed for data pipeline consumers: load directly into BigQuery, Snowflake, or any JSONL-aware ingest tool without cursor logic.
Usage:
Date range: if you omit both dates, defaults to the last 90 days
ending today. Override with startDate / endDate. Responses are
capped at 90 days — a wider range returns 400 invalid_query_parameter.
Page longer histories in 90-day slices.
Mutability: rows for a given report_date can be revised for up
to 7 days after the date closes due to delayed events from Meta and
Spotify. Re-fetching and re-ingesting on the primary key is safe
(idempotent).
Requires the metrics:read scope. Accepts API key or OAuth Bearer.
Authorizations
Query Parameters
Response
JSONL stream. Each line is a campaign_country_daily v1.0 row.
Lines are sorted by (report_date asc, country_code).
One row of the campaign_country_daily v1.1 schema.
Primary key: (provider, account_id, report_date, campaign_id, country_code).
Rows are idempotent — re-ingesting on the primary key is safe.
Values for a given report_date may be revised for up to 7 days after
the date closes due to delayed events from Meta and Spotify.