Troubleshooting Notes
- You are required to pass either the
days parameter or the start and end parameters.
- Unlike other real-time reporting endpoints, the
/network endpoint will NOT return data without query parameters. You must specify a time period within the past 90 days. There is no lifetime network reporting data.
- If
days and start/end are both present in a request (not recommended) start/end will take precedence.
Parameters
days
- Type: int32
- Description: Returns data for the number of days since the current day. You can request a maximum of 90 days of data and a minimum of 0.
days=0 returns data for the current day.
start
- Type: string
- Description: In the format of YYYY-MM-DD. Returns data starting from the date specified. Must be within the past 90 days. If no
end is included, this will return data up to the current day.
end
- Type: string
- Description: In the format of YYYY-MM-DD. Returns data ending at the date specified. Must be within the past 90 days.
Response Example
{
"network": {
"12345": {
"2017-09-12": {
"impressions": 100,
"revenue": 10,
"clicks": 6,
"passbacks": 0,
"conversions": 0
},
"total": {
"impressions": 100,
"revenue": 10,
"clicks": 6,
"passbacks": 0,
"conversions": 0
}
}
}
}
Example cURL Requests
- With Days
curl -X GET -H 'X-Adzerk-ApiKey:<API-KEY>' 'https://api.kevel.co/v1/instantcounts/network?days=42'
- With Start/End
curl -X GET -H 'X-Adzerk-ApiKey:<API-KEY>' 'https://api.kevel.co/v1/instantcounts/network?start=2017-04-18&end=2017-04-20'