Skip to main content

Analytics API

Use these endpoints for impressions, clicks, CTR, and revenue broken down by website, campaign, placement, ad, and date.

All routes require a dashboard session and an organization scope (X-Organization-Id).

MethodPathPurpose
GET/v1/analytics/overviewDaily time series + totals
GET/v1/analytics/totalsSingle aggregate totals
GET/v1/analytics/reportDimensioned report rows
GET/v1/analytics/auctionOpenRTB win/loss report
GET/v1/reports/exportPDF/CSV of the same report

WordPress tokens can call project-scoped totals and overview under /v1/integrations/wp/projects/{projectId}/analytics/*.

Shared query parameters​

Time range​

ParamDescription
range1d, 7d (default), 30d, or custom
fromYYYY-MM-DD (with to, for custom windows)
toYYYY-MM-DD

Filters​

ParamDescription
projectId / projectIdsWebsite UUID(s)
campaignId / campaignIdsCampaign UUID(s)
placementId / placementIdsPlacement UUID(s)
adId / adUnitIdsAd-unit UUID(s)

Filters apply first; breakdowns then group the remaining rows.

Breakdown​

ParamDescription
breakdownComma-separated levels, max 3
groupBySingle level (legacy; used when breakdown is absent)

Allowed levels: date, website, campaign, placement, ad.

Examples​

GET /v1/analytics/report?breakdown=campaign,placement&range=7d
X-Organization-Id: <org-uuid>
Cookie: <session>

Per website:

GET /v1/analytics/report?breakdown=website&range=7d

One campaign by placement and date:

GET /v1/analytics/report?campaignId=<uuid>&breakdown=placement,date&range=custom&from=2026-08-01&to=2026-08-10

Overview response​

GET /v1/analytics/overview?range=7d

{
"impressions": 12000,
"clicks": 340,
"ctr": 0.0283,
"series": [
{
"date": "2026-08-01",
"impressions": 1500,
"invalid_impressions": 12,
"clicks": 40,
"revenue": 18.5
}
]
}

Report rows​

GET /v1/analytics/report returns an array. dimensions[i] aligns with breakdown[i]. IDs are UUIDs (or dates). Dashboard PDF/CSV export resolves IDs to labels.

Marketing reports​

Saved report packs:

MethodPath
GET/v1/organizations/:orgId/marketing-reports
POST/v1/organizations/:orgId/marketing-reports
GET/v1/organizations/:orgId/marketing-reports/:id
GET/v1/organizations/:orgId/marketing-reports/:id/export
DELETE/v1/organizations/:orgId/marketing-reports/:id

breakdown on a saved report uses the same levels as analytics (max 3).

Metrics​

MetricNotes
ImpressionsValid, unique-session serves
Invalid impressionsFlagged as invalid traffic
ClicksUnique clicks tied to impressions
RevenueSum of recorded revenue
CTRclicks / impressions

These routes do not exist; use analytics query params instead:

  • /ads/:id/impressions
  • /placements/:id/clicks
  • /campaigns/:id/stats