Metrics that describe the path from a matched bid opportunity (biddable) to a delivered impression (win) for private marketplace deals. The data is stored in UTC timezone and is available by hour.
NOTE: this dataset requires the use of filter organization_id with exactly 1 value, and deal_id with at least 1 value.
| Field | Time Windows | Rollups |
|---|---|---|
| Dimensions | ||
agg_timestamp | current_day, last_X_hours, last_X_days, yesterday, month_to_date | by_hour, by_day, by_week, by_month |
deal_external_id | Any | Any |
deal_group_id | Any | Any |
deal_group_name | Any | Any |
deal_id | Any | Any |
deal_name | Any | Any |
deal_price_type | Any | Any |
deal_publisher_idDeal Publisher ID | Any | Any |
exchange_id | Any | Any |
exchange_name | Any | Any |
| Metrics | ||
bid_rate | Any | Any |
biddables | Any | Any |
bids | Any | Any |
matches | Any | Any |
win_rate | Any | Any |
wins | Any | Any |
Yes
current_day, last_X_hours, last_X_days, yesterday, month_to_date
all, by_hour, by_day, by_week, by_month
1 year
Security
Auth0(Required scopes: offline_access)
One of:
Maximum number of results to return. Only applicable for streaming responses. No limit if absent or null.
- Live Serverhttps://api.mediamath.com/reporting/v2/deals
curl -i -X POST \
https://api.mediamath.com/reporting/v2/deals \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"fields": [
"campaign_id",
"impressions"
],
"filters": [
{
"field": "organization_id",
"op": "=",
"value": 123456
},
{
"field": "agency_id",
"value": [
123456,
789012
]
},
{
"field": "advertiser_id",
"value": 123456
},
{
"field": "campaign_name",
"op": "=~",
"value": "Test Campaign"
}
],
"order": [
{
"desc": false,
"field": "agg_timestamp",
"nulls_last": true
}
],
"pagination": {
"page_index": 0,
"page_size": 100
},
"rollup": "by_hour",
"time_window": "current_day"
}'Response
{ "meta": { "items_count": 3, "page_index": 0, "status": "OK", "total_items_count": 3, "total_pages": 1 }, "results": [ { … }, { … }, { … } ] }