Endpointget /v2/reports/campaigns
Parameters
from string, required |
The start date of the result set in YYYY-MM-DD. |
until string, required |
The end date of the result set in YYYY-MM-DD. |
cID int |
Filter for this cID (campaign ID). |
include_dataset boolean |
Indicates if financial data should be included in the result. |
|
cURL
curl "https://{yourname}.adglare.net/api/v2/reports/campaigns"
-H "Authorization: Basic {api_key}"
Example Response
{
"success": "1",
"data": [{
"cID": 232376497,
"campaign_name": "My Campaign",
"summary": {
"impressions": 7434324,
"clicks": 118949,
"conversions": 654,
"finance": {
"pricing_model": "-",
"costs": 0,
"eCPM": 0,
"eCPC": 0 } },
"dataset": {
"impressions": {
"adsize": {
"225x225": 1,
"300x250": 7434323 },
"adtype": {
"Inline Media Ad": 7434324 },
"browser": {
"Chrome": 7434324 },
"cIDs": {
"232376497": 7434324 },
"country": {
"USA": 7434324 },
"crIDs": {
"561719638": 1,
"824527143": 1,
"683828157": 7434322 },
"day": {
"2024-03-01": 2738383,
"2024-03-02": 4695941 },
"dayhour": {
"2024-03-01 10": 2738383,
"2024-03-02 15": 4695941 },
"device": {
"Desktop": 7434303,
"Mobile": 20,
"Tablet": 1 },
"domain": {
"exampledomain.com": 7434316,
"anotherdomain.com": 8 },
"isbot": {
"no": 7434022,
"yes": 302 },
"language": {
"en": 7434324 },
"os": {
"Windows": 7434324 },
"ssl": {
"yes": 7434323,
"no": 1 },
"weekday": {
"Sun": 2738383,
"Mon": 4695941 },
"zIDs": {
"492837463": 7434324 } },
"clicks": {
"adsize": [],
"adtype": [],
"browser": [],
"cIDs": [],
"country": [],
"crIDs": [],
"day": [],
"dayhour": [],
"device": [],
"domain": [],
"isbot": [],
"language": [],
"os": [],
"ssl": [],
"weekday": [],
"zIDs": [] },
"conversions": { } } }, {
"cID": 501658124,
"campaign_name": "Another Campaign",
"summary": {
"impressions": 166439,
"clicks": 3828,
"conversions": 12,
"finance": {
"pricing_model": "8.50 CPM",
"costs": 1414.73,
"eCPM": 8.50,
"eCPC": 0.3695 } },
"dataset": { } }],
"errormsg": "",
"uri": "/api/v2/reports/campaigns" }
|