Skip to content

Instantly share code, notes, and snippets.

@dmtrs
Created April 20, 2016 12:03
Show Gist options
  • Save dmtrs/acbfe6ffbf1ed8643bf732eb6038b726 to your computer and use it in GitHub Desktop.
Save dmtrs/acbfe6ffbf1ed8643bf732eb6038b726 to your computer and use it in GitHub Desktop.
Avocarrot Reporting API examples
#!/bin/bash
curl -L -s \
-H 'Accept: application/json; charset=utf-8' \
https://reporting.avocarrot.com/v1/publishers/7214\?access_token\=asdfgdf92bfd67b15195\&granularity\=day
{
"query": {
"filters": {
"publisher_id": [ "7214" ],
"app_id": [],
"placement_key": [],
"country": []
},
"granularity": "day",
"group": [ "publisher_id" ],
"timestamp": {
"from": "2016-04-12T00:00:00.000Z",
"to": "2016-04-12T13:00:00.000Z"
}
},
"data": [
{
"timestamp": "2016-04-12T00:00:00.000Z",
"dimensions": {
"app_id": null,
"country": null,
"placement_key": null,
"publisher_id": "7214"
},
"result": {
"ad_requests": 10000,
"clicks": 250,
"ctr": 0.10,
"earnings": 2.0,
"ecpm": 0.8,
"impressions": 2500
}
}
],
"meta": {
"currency": "USD"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment