Get Ad Counts

Troubleshooting Notes

  1. If no query parameters are included, the endpoint returns the lifetime of data for the Id.

  2. If days and start/ end are both present in a request (not recommended) start/ end will take precedence.

Parameters

AdID

days

start

end

Response Example

200

{
  "ads": {
    "123": {
      "impressions": 123,
      "conversions": 0,
      "revenue": 0.117,
      "clicks": 0
    }
  }
}

Example cURL Commands

Basic Request

curl -X GET -H 'X-Adzerk-ApiKey:<API-KEY>' 'https://api.kevel.co/v1/instantcounts/ad/123'

Using Days

curl -X GET -H 'X-Adzerk-ApiKey:<API-KEY>' 'https://api.kevel.co/v1/instantcounts/ad/123?days=42'

Using Start/End

curl -X GET -H 'X-Adzerk-ApiKey:<API-KEY>' 'https://api.kevel.co/v1/instantcounts/ad/123?start=2017-04-18&end=2017-04-20'