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
topic Getting Started
API Base URL
Authentication
Error Handling
api Management
Campaigns
Zones
api Analytics
Reports

Campaigns

Endpoint

get
/v2/campaigns

POST Parameters

cID
int
Campaign ID to filter for.
status
string
Filter campaign status. Either active, onhold, completed, archived.
cURL
curl "https://{yourname}.adglare.net/api/v2/campaigns"
  -H "Authorization: Basic {api_key}"
Example Response
{
     "success": "1",
     "data": [{
         "cID": "501658124",
         "name": "My Campaign",
         "type": "Inline Media Ad",
         "created": "2024-01-16 17:08:00",
         "status": "active",
         "impressions": 3116,
         "clicks": 194,
         "conversions": 21,
         "weight": 60,
         "tier": 3,
         "assigned_zones": "ALL",
         "deliverygoal": {
             "type": "impressions",
             "value": 20000,
             "speed": "frontloaded",
             "period": "day"
        },
         "finance": {
             "pricing_model": "8.50 CPM",
             "costs": 26.486,
             "eCPM": 8.5,
             "eCPC": 0.1365
        },
         "creatives": [{
             "crID": "220382176",
             "created": "2024-04-11 18:17:45",
             "name": "My Creative A",
             "status": "active",
             "landing_url": "https://www.landingpage.com",
             "impressions": 2192,
             "clicks": 112,
             "conversions": 0,
             "weight": 60,
             "impression_pixels": ["https://www.tracker.com"]
        },
         {
             "crID": "762221038",
             "created": "2024-04-11 18:19:11",
             "name": "My Creative B",
             "status": "onhold",
             "landing_url": "https://www.landingpage.com",
             "impressions": 924,
             "clicks": 82,
             "conversions": 0,
             "weight": 40,
             "impression_pixels": []
        }]
    },
     {
         "cID": "663661327",
         "name": "Video Campaign",
         "type": "VAST Video Tag",
         "created": "2024-01-16 10:15:07",
         "status": "completed",
         "impressions": 525,
         "clicks": 34,
         "conversions": 2,
         "weight": 80,
         "tier": 1,
         "assigned_zones": "189928327#298928317",
         "deliverygoal": {
             "type": "impressions",
             "value": 20000,
             "speed": "frontloaded",
             "period": "day"
        },
         "finance": {
             "pricing_model": "1.00 CPC",
             "costs": 34,
             "eCPM": 64.7619,
             "eCPC": 1
        },
         "creatives": [{
             "crID": "382176220",
             "created": "2024-04-11 11:11:45",
             "name": "My Creative A",
             "status": "active",
             "landing_url": "https://www.landingpage.com",
             "impressions": 525,
             "clicks": 34,
             "conversions": 2,
             "weight": 60,
             "impression_pixels": []
        }]
    }],
     "errormsg": "",
     "uri": "/api/v2/campaigns"
}