Reports
Create a Report
post
/reports
Request Body (JSON)
| date_from string, required |
The start date in the format YYYY-MM-DD. |
| date_until string, required |
The end date in the format YYYY-MM-DD. |
| dimensions object, required |
An object containing one or more dimensions for which you wish to retrieve the data. See here below. Example: ["day","campaign_id"] |
List of dimensions
The following dimensions are supported:- year
- month
- day
- hour
- weekday
- hour
- campaign_id
- creative_id
- zone_id
- ad_format
- ad_size
- landing_url
- tier
- country
- region
- city
- language
- domain
- device
- browser
cURL
curl "https://{yourname}.api.adglare.app/v2/reports"
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
-d '{
"date_from": "2024-01-01",
"date_until": "2024-01-02",
"dimensions": ["day"]
}'
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
-d '{
"date_from": "2024-01-01",
"date_until": "2024-01-02",
"dimensions": ["day"]
}'
Example Response