Retrieve campaign mileage data grouped by ad group

Transit ad groups only. summaryBin: LIFETIME, DAY, WEEK, MONTH, HOUR, DOW. Date range must fall within campaign flight bounds: use activeFrom/activeTo from GET /campaigns/{id}.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
number

The ID of the market

number
required

Start of the query window as Unix seconds. Must be >= the earliest flight activeFrom for the campaign (same value as campaign.activeFrom from GET /campaigns/{id}). Do not use calendar-date midnight in an arbitrary timezone — that often falls before flight bounds and returns 400 "Requested start date is before the range of the flights".

number
required

End of the query window as Unix seconds. Must be <= the latest flight activeTo for the campaign (same value as campaign.activeTo from GET /campaigns/{id}). Prefer those campaign fields over reconstructing dates from labels or calendars.

number
required

The ID of the campaign

string
enum
required

Summary bin: LIFETIME, DAY, WEEK, MONTH, HOUR, DOW.

Allowed:
string

Timezone for date calculations

string
enum

Distance units for the response. Overrides account preference when set. Default: account metadata, else miles (mi).

Allowed:
Responses

204

No mileage found

400

Bad request (e.g. startDate/endDate outside flight activeFrom–activeTo, invalid campaignId, invalid units)

401

Unauthorized

Language
LoadingLoading…
Response
Choose an example:
application/json