landscape
Display Ad Server
Serve ads in standard fixed-size ad units
api
Native Ad Server
Serve native ads on your web page or app
ondemand_video
Video Ad Server
Serve MP4 video ads as pre/mid/post-rolls
laptop_chromebook
For Publishers
Maximize revenue for direct deals.
campaign
For Advertisers
Optimize campaigns, real-time insights.
roofingProductsarrow_drop_downSolutionsarrow_drop_downPricing
User GuideAPISupport
login
Getting Started
API Base URL
Authentication
Error Handling
Management
Campaigns
Zones
Analytics
Reports

Reports

Endpoint

get
/v2/reports/campaigns

POST 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 all report data should be included in the result. The dataset object has the structure: [event][dimension][count].
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,
            
        },
         "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,
            
        },
         "dataset": {
            
        }
    }],
     "errormsg": "",
     "uri": "/api/v2/reports/campaigns"
}