Endpointget /v2/reports
Parameters
group_by array |
The dimension you want to group the report by. |
filter object |
The IDs of the campaigns, creatives or zones you want to filter for. |
events object |
An array of event names. These events will be included in the reports for all dimensions. |
Response
creative_id int |
The ID of the creative. |
data int, required |
The content of the creative (used for building the ad). |
event_counts object |
Real-time data about event counts for this creative. |
is_active boolean |
Whether the creative is active or not. |
name string |
The name of the creative. |
timestamp string |
The timestamp when the creative was created. |
|
cURL
curl "https://{yourname}.api.adflight.io/v2/reports"
-H "X-ApiKey: TCm2Hd_rT4pRNvSZ2cGYCJ6... (example)"
Example Response
{
"creative_id": 770775699,
"data": [],
"event_counts": {
"clicks": 2190,
"impressions": 170129 },
"is_active": true,
"name": "My creative",
"timestamp": "2022-08-19 14:19:43" }
|
format_quoteThese plug & play ad serving APIs have cut down developement cost tremendously. Absolutely a huge time saver for anyone who wants to build a custom ad server in a short time.
Hayden Elson
starstarstarstarstar
Developer at Galactic Media