Display Ad Server
Serve ads in standard fixed-size ad units
Native Ad Server
Serve native ads on your web page or app
VAST Video Ad Server
Serve MP4 video ads as pre/mid/post-rolls
CTV Video Ad Server
Monetize your CTV channel
White Label Ad Server
Build your own ad server in hours
API Quickstart
Test the API in just minutes
Full API Docs
Automate your complete ad operations
Migration Assistance
Need help switching to AdGlare?
Management APIs
Automate your complete ad ops workflow
Realtime Reporting
Never miss an imporant KPI
Enterprise-grade Infrastructure
Engineered for speed, built for trust
Video Optimization
Built-in quality checks before going live
Feature Overview
See if we're a fit in minutes
Talk to Sales
Reach out to get started
Talk to Support
Get help with your ad server
Request a Demo
Get a free demo to see if we're a fit
Security / Compliance
GDPR / CCPA, cookie laws, ISO 27001
Terms of Service
AdGlare's terms and privacy policy
Network Status
Keep track of network uptime
Getting Started
API Overview

Campaign API
Campaigns
GETList Campaigns
POSTCreate Campaigns
PUTUpdate Campaigns
DELETEDelete Campaigns
Creatives

Inventory API
Zones

Reporting API
API Overview
Real Time Reports
Data Shipping

Additional APIs
Advertisers
Workspaces
Folders
Audit Trails

Campaigns

Get a list of Campaigns

get
/campaigns

Query Parameters

limit
int
The number of items returned in the response. Defaults to 100.
offset
int
The number of items to skip before starting to return results. Defaults to 0.
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaigns"
  -H "Authorization: Bearer {api_key}"
Example Response
{
    "items": [{
        "account_id_created": 685576430,
        "account_id_modified": 764685530,
        "ad_format": "display",
        "advertiser_id": 0,
        "campaign_id": 279481212,
        "conversion_tracker_id": 0,
        "created": 1687144690,
        "creative_ids": [210267475,
        747210265],
        "creative_optimization": [],
        "delivery": {
            "end": 0,
            "start": 1687144690
        },
        "event_counts": {
            "ad_requests": 6374726,
            "clicks": 5247,
            "filled_impressions": 6374726,
            "impressions": 6825202,
            "measurable_impressions": 6825202,
            "viewable_impressions": 4124992
        },
        "folder_id": 672728731,
        "is_active": true,
        "is_archived": false,
        "metadata": [],
        "modified": 1727764402,
        "name": "Test campaign",
        "notes": "",
        "pacing": [],
        "pricing": [],
        "targeting": [],
        "tier": 1,
        "watchlist": [],
        "weight": 5,
        "zone_ids": [433441350]
    },
    {
        "account_id_created": 857566430,
        "account_id_modified": 685576430,
        "ad_format": "display",
        "advertiser_id": 0,
        "campaign_id": 042527393,
        "...": "..."
    }]
}

Get a single Campaign

get
/campaigns/{id}

Path Parameters

id
int, required
The ID of the campaign.
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaigns/{id}"
  -H "Authorization: Bearer {api_key}"
Example Response
{
    "account_id_created": 685576430,
    "account_id_modified": 764685530,
    "ad_format": "display",
    "advertiser_id": 0,
    "campaign_id": 279481212,
    "conversion_tracker_id": 0,
    "created": 1687144690,
    "creative_ids": [210267475,
    747210265],
    "creative_optimization": [],
    "delivery": {
        "end": 0,
        "start": 1687144690
    },
    "event_counts": {
        "ad_requests": 6374726,
        "clicks": 5247,
        "filled_impressions": 6374726,
        "impressions": 6825202,
        "measurable_impressions": 6825202,
        "viewable_impressions": 4124992
    },
    "folder_id": 672728731,
    "is_active": true,
    "is_archived": false,
    "metadata": [],
    "modified": 1727764402,
    "name": "Test campaign",
    "notes": "",
    "pacing": [],
    "pricing": [],
    "targeting": [],
    "tier": 1,
    "watchlist": [],
    "weight": 5,
    "zone_ids": [433441350]
}

Create a Campaign

post
/campaigns

Request Body (JSON)

name
string, required
The name of the campaign.
folder_id
int, required
The folder ID of the campaign.
ad_format
string, required
The ad format: display, native, vast, redirect
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaigns"
  -X POST
  -H "Content-Type: application/json"
  -H "Authorization: Bearer {api_key}"
  -d '{
    "name": "My Campaign",
    "folder_id": 123456789,
    "ad_format": "display"
  }'
Example Response
{
    "campaign_id": 685576430
}

Update a Campaign

put
/campaigns/{id}

Path Parameters

id
int, required
The ID of the campaign.

Request Body (JSON)

name
string, required
The name of the campaign.
is_active
boolean, required
The name of the campaign.
folder_id
int, required
The folder ID in which this campaign resides.
tier
int, required
The campaign tier [1-10], used for waterfalling when choosing an eligible campaign.
weight
int, required
The weight of this campaign [1-100].
zone_ids
array, required
An array with zone IDs to which this campaign is assigned.
conversion_tracker_id
int
The conversion tracker ID uses for logging conversions on this campaign.
advertiser_id
int
The advertiser ID for this campaign.
delivery
object
An object with start/end dates. See here below.
pricing
object
An object with pricing data. See here below.
pacing
object
An object with pacing data. See here below.

The delivery object

  • start (int): The start date as a unix timestamp. Set to 0 to start immediately.
  • end (int): The end date as a unix timestamp. Set to 0 to run infinitely.

The pricing object

  • model (string): Either CPM or CPC.
  • value (float): The value associated with this pricing model.

The pacing object

  • event (string): Either impressions, clicks or conversions.
  • period (string): Either due_date or day.
  • speed (string): Either spead or asap.
  • value (int): The amount of events to pace of the the indicated period.

Example Request
curl "https://{yourname}.api.adglare.app/v2/campaigns/{id}"
  -X PUT
  -H "Content-Type: application/json"
  -H "Authorization: Bearer {api_key}"
  -d '{
    "name": "My Campaign",
    "folder_id": 123456789,
    "is_active": true,
    "tier": 2,
    "weight": 60,
    "zone_ids": [123456789,987654321],
    "conversion_tracker_id": 123456789,
    "advertiser_id": 123456789,
    "delivery": {"start": 1763627752, "end": 0},
    "pricing": {"model": "CPM", "value": 5.00},
    "pacing": {"event": "impressions", "period": "day", "speed": "spread", "value": 10000}
  }'
Example Response
{}

Delete a Campaign

delete
/campaigns/{id}

Path Parameters

id
int, required
The ID of the campaign.
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaigns/{id}"
  -X DELETE
  -H "Authorization: Bearer {api_key}"
Example Response
{}