Endpointget /v2/campaigns/{campaign_id}
Response
advertiser_id int |
The ID of the advertiser assigned to this campaign. |
campaign_id int |
The ID of the campaign. |
creative_count object |
The number of creatives assigned to this campaign. |
event_counts object |
Real-time data about event counts for this campaign. |
inventory object |
An object with information about which channels and zones this campaign is eligible to be displayed in. |
is_active boolean |
Whether the campaign is active or not. |
name string |
The name of the advertiser. |
priority int |
The priority level of the campaign, used when making a decision which ads to return. |
targeting object |
An object containing targeting data, like geolocation and keyword targeting. |
timestamp string |
The timestamp when the campaign was created. |
|
cURL
curl "https://{yourname}.api.adflight.io/v2/campaigns/{campaign_id}"
-H "X-ApiKey: TCm2Hd_rT4pRNvSZ2cGYCJ6... (example)"
Example Response
{
"advertiser_id": 645091658,
"campaign_id": 811263544,
"creative_count": 1,
"event_counts": {
"clicks": 2190,
"impressions": 170129 },
"inventory": {
"channel_ids": [],
"zone_ids": [537477984] },
"is_active": true,
"name": "Milka Native Ad Campaign September 2022",
"priority": 2,
"targeting": [],
"timestamp": "2022-08-19 14:19:39" }
|
format_quoteThese plug & play ad serving APIs have cut down developement cost tremendously. Absolutely a huge time saver for anyone who wants to build a custom ad server in a short time.
Hayden Elson
starstarstarstarstar
Developer at Galactic Media