POST /xml/v1/reports
Run an XML report
Needs dpop
Runs the feed-funnel report. Counted against
the reports limit (30/min). Can return 400 invalid_argument (a
bad request shape, dates or paging), plus the shared
authentication and rate-limit errors. A filter's lists are not
served yet, and refused.
The storage tier is picked from how far back dateFrom reaches:
ranges starting within ~7 days read minute-grain data
(bi_minute), within ~30 days hourly (bi_hour), older daily
(bi_day). The reason dim exists only on the minute tier — on
longer ranges it degrades into unsupportedDims rather than
failing the report. errors (failed feed fetches) is only
populated on reports grouped by dspConnection.
sortBy accepts a metric (requests, bids, impressions,
clicks, lateImps, lateClicks, spend, revenue, margin,
estSpend, estRevenue, estMargin, profit (alias of
margin), fillRate, winRate, ipMatchPct, errorRate) or
the name of a grouped dimension; anything else falls back to
revenue.
Recipe 1 — feed funnel by supply connection (flat)
{"dateFrom": "2026-08-01", "dateTo": "2026-08-03",
"groupBy": ["sspConnection"], "sortBy": "revenue", "sortDir": "desc"}
Rows carry the supply-connection UUID in dims.sspConnection and
its display name in dimLabels.sspConnection.
Recipe 2 — day × demand feed, filtered to one country (filtered)
{"dateFrom": "2026-08-01", "dateTo": "2026-08-03",
"groupBy": ["date", "dspConnection"],
"filters": [{"dimension": "country", "op": "is", "values": ["US"]}],
"sortBy": "margin", "sortDir": "desc", "pageSize": 100}
Because dspConnection is grouped, each row also carries errors
(failed feed fetches for that feed).
Recipe 3 — drill-down (tree mode)
Render level 1 with groupBy: ["sspConnection", "domain"] and
depth: 1; expand one connection by asking for its children:
{"dateFrom": "2026-08-01", "dateTo": "2026-08-03",
"groupBy": ["sspConnection", "domain"], "depth": 2,
"parentPath": [{"dimension": "sspConnection",
"value": "5f0c9a52-6a5e-4b9e-a8fd-2f6f8f4f1c11"}]}
parentPath values use the dims value of the parent row — the
UUID for entity dims, the display value otherwise.
Request body required
application/json · XMLReportRequest
Example: Feed funnel by supply connection
{
"dateFrom": "2026-08-01",
"dateTo": "2026-08-03",
"groupBy": [
"sspConnection"
],
"sortBy": "revenue",
"sortDir": "desc"
}
Responses
200
The report page.
application/json · object
| Property | Type | Description |
|---|---|---|
data required | XMLReportResponse |
Example: One row per supply connection
{
"data": {
"rows": [
{
"dims": {
"sspConnection": "5f0c9a52-6a5e-4b9e-a8fd-2f6f8f4f1c11"
},
"dimLabels": {
"sspConnection": "PropellerX pop"
},
"requests": 1250433,
"bids": 981210,
"impressions": 402113,
"clicks": 15834,
"lateImps": 0,
"lateClicks": 0,
"spend": 311.24,
"revenue": 402.51,
"margin": 91.27,
"estSpend": 305.11,
"estRevenue": 398.02,
"estMargin": 92.91,
"ipMatchPct": 0.97
}
],
"appliedGroupBy": [
"sspConnection"
],
"unsupportedDims": [],
"total": 1,
"totals": {
"dims": {},
"requests": 1250433,
"bids": 981210,
"impressions": 402113,
"clicks": 15834,
"lateImps": 0,
"lateClicks": 0,
"spend": 311.24,
"revenue": 402.51,
"margin": 91.27,
"estSpend": 305.11,
"estRevenue": 398.02,
"estMargin": 92.91
},
"tier": "bi_minute"
}
}
400
Invalid input: a field the operation refuses
(invalid_argument, errors naming it), a malformed query or
body (invalid_request), or a write without an
Idempotency-Key (idempotency_key_required).
application/problem+json · Problem
Example: badStatus
{
"type": "about:blank",
"title": "Bad Request",
"status": 400,
"code": "invalid_argument",
"detail": "The input is invalid.",
"request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
"errors": [
{
"field": "status",
"reason": "invalid status filter \"maybe\" — use true, false, 1 or 0"
}
]
}
401
A missing, malformed, expired or revoked token, or a proof that does not hold.
application/problem+json · Problem
Example: invalidToken
{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"code": "invalid_token"
}
403
The key lacks the scope, or your account does not have the XML API.
application/problem+json · Problem
Example: forbidden
{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"code": "permission_denied"
}
429
Over the per-key rate of the endpoint's class. Back off until
Retry-After.
application/problem+json · Problem
Example: limited
{
"type": "about:blank",
"title": "Too Many Requests",
"status": 429,
"code": "rate_limited",
"detail": "Too many requests."
}
500
Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.
application/problem+json · Problem
Example: internal
{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"code": "internal"
}
503
A backing service is momentarily unavailable: the reporting
backend, the sign-in's checks (auth_unavailable) or the rate
limiter (with Retry-After: 5). Retry with backoff.
application/problem+json · Problem
Example: unavailable
{
"type": "about:blank",
"title": "Service Unavailable",
"status": 503,
"code": "unavailable"
}