report/dashboard
GET
/report/dashboardFetch dashboard summary and chart data for the requested time range. Requires the reports:read permission.
Request
cURL
curl -X GET "https://provisioning.cloudx.io/api/v1/report/dashboard?start_time=1712448000&end_time=1712534399" \
-H "Authorization: Bearer $CLOUDX_API_KEY"Query parameters
| Name | Type | Description |
|---|---|---|
start_timerequired | integer<int64> | Start of the time range as a Unix timestamp in seconds. The requested range must not exceed 31 days and must not start before 2020-01-01 UTC. |
end_timerequired | integer<int64> | End of the time range as a Unix timestamp in seconds. The requested range must not exceed 31 days and must not end before 2020-01-01 UTC. |
test_mode | string | Traffic mode to include. Defaults to production traffic. |
country | string | ISO 3166-1 alpha-2 country code filter. |
device_os | string | Device operating system filter. |
source | string | Reporting source filter. Use cloudx, a mediation source such as applovin, a comma-separated list such as cloudx,admob, or all. |
granularity | string | Reporting bucket size. Defaults to daily. |
Responses
Dashboard data.
{
"summary": {
"total_requests": 123,
"total_impressions": 123,
"revenue": 12.34,
"fill_rate": 12.34,
"ecpm": 12.34,
"total_clicks": 123,
"ctr": 12.34,
"total_users": 123
},
"chart_data": [
{
"bucket_start": "<string>",
"date": "<string>",
"requests": 123,
"impressions": 123,
"revenue": 12.34,
"clicks": 123
}
],
"source_breakdown": [
{
"source": "<string>",
"requests": 123,
"impressions": 123,
"revenue": 12.34,
"fill_rate": 12.34,
"ecpm": 12.34,
"clicks": 123,
"revenue_share": 12.34
}
]
}200 Dashboard data.
| Field | Type | Description |
|---|---|---|
summaryrequired | object | |
chart_datarequired | array of object | |
source_breakdown | array of object |
400 Invalid request parameters.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
401 Unauthorized.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
403 Forbidden.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
500 Internal server error.
| Field | Type | Description |
|---|---|---|
errorrequired | string |