Ad Metric Query
Query aggregated ad metrics with the SmartSight metric query endpoint.
Use this endpoint for ad trend graphs, dimension breakdowns, comparison views, and KPI tiles.
Endpoint
GET /mm-apis/metricquery/{customerId}
Path parameters
customerId
integer
Yes
Numeric tenant identifier from your SmartSight profile
Query parameters
period
string
Yes
—
start=<epoch>,end=<epoch>
Time range in Unix epoch seconds
metrics
string
Yes
—
metric1,metric2,...
Comma-separated ad metric field names
aggby
string
No
—
<dimension>, timestamp, or sessionid
Group by dimension, time, or session for session-level ad rows
sessiontype
string
No
ended
ended or started
Session completion status
allstatus
integer
No
0
0 or 1
1 includes RUNNING and LOADED sessions
granularity
string
No
auto
auto, minute, 5minute, 10minute, hour, day
Time bucket size. Requires aggby=timestamp
filter
string
No
—
[dimension=value]
Dimension-level filters
qoefilter
string
No
—
metric>value AND ...
Session-level metric filters
orderby
string
No
—
metric or dimension
Sort column
order
string
No
desc
asc or desc
Sort direction
limit
integer
No
1000
integer
Max records per page
offset
integer
No
0
integer
Pagination offset
businesserror
boolean
No
false
true or false
Include business exception errors in error metrics where applicable
Ad ID
adid
Unique ad creative identifier
Ad server name
adserver
Ad server that delivered the ad
Ad break placement
adposition
Pre, Mid, or Post
Ad break position index
adpodindex
Numeric index of the ad break
Ad position in pod
adpodposition
Position within the ad pod
Pod length
adpodlength
Total ad pod duration in seconds
Example requests
Trend graph — Ad playtime over time
Dimension breakdown — Ad startup time by ad server (P95)
Completion funnel — Ad completion by placement
Click-through rate by country
Example response
Last updated