List Site
Get a single site
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/site/[YOUR_SITE_ID]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Sites
Get all sites
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/sites/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Sites w/ Limit
Get all sites with a limit
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/sites/2?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Sites w/ Limit & Sort
Retrieve sites with limit and sorting
This request supports limiting as well as sorting, there are two sorting methods available.
Ascending
https://api.adnium.com/v1/publisher/sites/10/ASC
Descending
https://api.adnium.com/v1/publisher/sites/10/DESC
Replace:
[LIMIT] with your result set limit (e.g. 5)
[ORDER] with your result set order (ASC/DESC)
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/sites/[LIMIT]/[ORDER]/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Site Categories
Retrieve a list of site categories
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/site/categories/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Create New Site
Create a new site
Replace:
[SITE_NAME] with your site name
[SITE_DESC] with your site description
[SITE_URL] with your site URL
[SITE_CATEGORY] with your category - List site categories
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'name'=>[SITE_NAME],
'description'=>[SITE_DESC],
'url'=>[SITE_URL],
'categoryu'=>[SITE_CATEGORY]
);
$curl = curl_init('https://api.adnium.com/v1/publisher/site/add/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_POST, true);
curl_setopt($this->curl, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Site
Edit a site in your account
Replace:
[SITE_ID] with the site id you want to edit
[SITE_NAME] with your new site name
[SITE_DESC] with your new description
[CATEGORY_ID] with a category id - List site categories
[YOUR_API_KEY] with your token
<?php
$params = array(
'name'=>[SITE_NAME],
'description'=>[SITE_DESC],
'category'=>[CATEGORY_ID]
);
$curl = curl_init('https://api.adnium.com/v1/publisher/site/[SITE_ID]/edit/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Zone
Retrieve a specific zone
This is where you show your users how to set it up. You can use code samples, like this:
Replace [YOUR_ZONE_ID] with the zone ID and [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/zone/[YOUR_ZONE_ID]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Zones
Retrieves all zones
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/zones/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Zones w/ Limit
Retrieves all zones with a specified limit
Replace [YOUR_LIMIT_VALUE] with a numerical value to limit results as well as [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/zones/[YOUR_LIMIT_VALUE]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Zones w/ Limit & Sort
Retrieve zones with limit and sorting
This request supports limiting as well as sorting, there are two sorting methods available.
Ascending
https://api.adnium.com/v1/publisher/zones/10/ASC
Descending
https://api.adnium.com/v1/publisher/zones/10/DESC
Replace:
[YOUR_LIMIT_VALUE] with a numerical value to limit results
[YOUR_SORT_ORDER] with ASC/DESC (our example is DESC)
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/zones/[YOUR_LIMIT_VALUE]/[YOUR_SORT_ORDER]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Zone Types
List all available ad zone types
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/zone/types/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Traffic Types
List all available traffic types
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/zone/traffic/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Zone Restrictions
Lists all available ad zone restrictions
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/zone/restrictions/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Create New Zone
Create a new ad zone for your site
Replace the following:
[ZONE_NAME] with your zones name
[ZONE_DESC] with your zones description
[SITE_ID] with one of your site IDs - List sites
[RESTRICTIONS] with your restrictions - List ad zone restrictions
[TRAFFIC_TYPE] with your traffic type - List traffic types
[ZONE_TYPE] with your zone type - List ad zone types
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'name'=>'[ZONE_NAME]',
'description'=>'[ZONE_DESC]',
'site'=>[SITE_ID],
'restrictions'=>'[RESTRICTIONS]',
'traffic_type'=>[TRAFFIC_TYPE],
'zone_type'=>[ZONE_TYPE]
);
$curl = curl_init('https://api.adnium.com/v1/publisher/zone/types/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_POST, true);
curl_setopt($this->curl, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Zone
Edit a zone
Replace:
[ZONE_NAME] with your zones name
[ZONE_DESC] with your description
[ZONE_TYPE] with your traffic type - List traffic types
[ZONE_RESTRICTIONS] with your restrictions - List ad zone restrictions
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'name'=>[ZONE_NAME],
'description'=>[ZONE_DESC],
'traffic_type'=>[ZONE_TYPE]
'restrictions'=>[ZONE_RESTRICTIONS]
);
$curl = curl_init('https://api.adnium.com/v1/publisher/zone/1/edit/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Site Stats By Date
Retrieve statistics based on site/zone/date
Replace:
[SITE_ID] with your site ID - List sites
[DATE_FROM] with the start period e.g. 2015-01-24
[DATE_TO] with the end period e.g. 2015-01-25
[ZONE_ID] with your zone ID - List zones in a site
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/stats/[SITE_ID]/date/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&zone=[ZONE_ID]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Site Stats By Hour
Retrieve statistics based on site/zone/hour
Replace:
[SITE_ID] with your site ID - List sites
[DATE_FROM] with the start period e.g. 2015-01-24
[DATE_TO] with the end period e.g. 2015-01-25
[ZONE_ID] with your zone ID - List zones in a site
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/stats/[SITE_ID]/hour/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&zone=[ZONE_ID]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Site Stats By Country
Retrieve statistics based on site/zone/country
Replace:
[SITE_ID] with your site ID - List sites
[DATE_FROM] with the start period e.g. 2015-01-24
[DATE_TO] with the end period e.g. 2015-01-25
[ZONE_ID] with your zone ID - List zones in a site
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/stats/[SITE_ID]/country/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&zone=[ZONE_ID]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Site Stats By Device
Retrieve statistics based on site/zone/device
Replace:
[SITE_ID] with your site ID - List sites
[DATE_FROM] with the start period e.g. 2015-01-24
[DATE_TO] with the end period e.g. 2015-01-25
[ZONE_ID] with your zone ID - List zones in a site
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/stats/[SITE_ID]/device/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&zone=[ZONE_ID]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Site Stats By OS
Retrieve statistics based on site/zone/os
Replace:
[SITE_ID] with your site ID - List sites
[DATE_FROM] with the start period e.g. 2015-01-24
[DATE_TO] with the end period e.g. 2015-01-25
[ZONE_ID] with your zone ID - List zones in a site
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/stats/[SITE_ID]/os/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&zone=[ZONE_ID]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Site Stats By Carrier
Retrieve statistics based on site/zone/carrier
Replace:
[SITE_ID] with your site ID - List sites
[DATE_FROM] with the start period e.g. 2015-01-24
[DATE_TO] with the end period e.g. 2015-01-25
[ZONE_ID] with your zone ID - List zones in a site
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/stats/[SITE_ID]/carrier/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&zone=[ZONE_ID]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Site Stats By Sub ID
Retrieve statistics based on site/zone/subid
Replace:
[SITE_ID] with your site ID - List sites
[DATE_FROM] with the start period e.g. 2015-01-24
[DATE_TO] with the end period e.g. 2015-01-25
[ZONE_ID] with your zone ID - List zones in a site
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/stats/[SITE_ID]/subid/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&zone=[ZONE_ID]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Sites
Retrieve a list of all available sites
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/stats/sites/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Zones In Site
List all available zones for a site
Replace:
[SITE_ID] with your site ID
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/publisher/stats/[SITE_ID]/zones/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Campaign
Retrieve a single campaign
Replace:
[CAMPAIGN] with your campaign ID - List campaigns
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Campaigns
Retrieve all campaigns
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaigns/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Campaign w/ Limit
Retrieve all campaigns with a limit
Replace:
[LIMIT] with how many results you want to return
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaigns/[LIMIT]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Campaign w/ Limit & Sort
Retrieve all campaigns with a limit and sorting
This request supports limiting as well as sorting, there are two sorting methods available.
Ascending
https://api.adnium.com/v1/advertiser/campaigns/10/ASC
Descending
https://api.adnium.com/v1/advertiser/campaigns/10/DESC
Replace:
[LIMIT] with how many results you want to return
[ORDER] with the order (ASC/DESC)
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaigns/[LIMIT]/[ORDER]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Create New Campaign
Create a new campaign
You are only required to submit the following parameters to create a campaign:
- name
- zone_type
- cpmv
- daily_budget
The rest will be filled in via. defaults
Replace:
[CAMPAIGN_NAME] with your campaigns name
[ZONE_TYPE] with your campaigns zone - List campaign zone types
[TRAFFIC_TYPE] with your traffic type - List traffic types
[CPMV] with your cpmv (lowest 0.01)
[DAILY_BUDGET] with your daily budget - List campaign budgets
[PAGE_FREQ] with your page freq capping - List campaign page frequency capping
[USER_TIMES] with your uses frequency times - List campaign frequency times
[USER_HOUR] with your user frequency hour - List campaign frequency hour
[COUNTRIES] with your country targeting - List countries
[REGIONS] with your region targeting - List regions
[CITIES] with your city targeting - List cities
[LANGUAGES] with your language targeting - List languages
[OS] with your os targeting - List operating systems
[DEVICES] with your device targeting - List devices
[CARRIERS] with your carrier targeting - List carriers
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'name'=>[CAMPAIGN_NAME],
'zone_type'=>[ZONE_TYPE],
'traffic_type'=>[TRAFFIC_TYPE],
'cpmv'=>[CPMV],
'daily_budget'=>[DAILY_BUDGET],
'page_freq'=>[PAGE_FREQ],
'user_freq_times'=>[USER_TIMES],
'user_freq_hour'=>[USER_HOUR],
'countries'=>[COUNTRIES],
'regions'=>[REGIONS],
'cities'=>[CITIES],
'languages'=>[LANGUAGES],
'os'=>[OS],
'devices'=>[DEVICES],
'carriers'=>[CARRIERS]
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/add/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_POST, true);
curl_setopt($this->curl, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Start Campaign
Starts a campaign
Replace:
[CAMPAIGN] with your campaign ID - List campaigns
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/start/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Pause Campaign
Pauses a campaign
Replace:
[CAMPAIGN] with your campaign ID - List campaigns
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/pause/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Delete Campaign
Deletes a campaign
Note that this action cannot be reverted.
Replace:
[CAMPAIGN] with your campaign ID - List campaigns
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/delete/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Name
Edit campaigns name
Replace:
[CAMPAIGN_NAME] with your new campaign name
[CAMPAIGN] with your campaign id
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value'=>[CAMPAIGN_NAME],
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/name/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit CPM
Edit campaign cpmv
Replace:
[CPM] with your new cpm
[CAMPAIGN] with your campaign
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value'=>[CPM],
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/cpm/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Budget
Edit campaign budget
Replace:
[BUDGET] with your new budget - List campaign budgets
[CAMPAIGN] with your campaign ID
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value'=>[BUDGET],
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/budget/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Traffic Type
Edit campaign traffic type
Replace:
[TRAFFIC_TYPE] with yyour traffic type - List traffic types
[CAMPAIGN] with your campaign ID
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value'=>[TRAFFIC_TYPE],
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/type/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Frequency Cap
Edit campaign frequency capping
Replace:
[FREQ_PAGE] with your page frequency(on/off) - List campaign page frequency capping
[FREQ_TIMES] with your frequency times - List campaign frequency times
[FREQ_HOUR] with your frequency hour - List campaign frequency hour
[CAMPAIGN] with your campaign ID
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value[page]'=>[FREQ_PAGE],
'value[times]'=>[FREQ_TIMES],
'value[hour]'=>[FREQ_HOUR]
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/frequency/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Countries
Edit campaign country targeting
Replace:
[COUNTRIES] with your comma delimited countries - List countries
[CAMPAIGN] with your campaign ID
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value'=>[COUNTRIES]
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/countries/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Regions
Edit campaign region targeting
Replace:
[REGIONS] with your comma delimited regions - List regions
[CAMPAIGN] with your campaign ID
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value'=>[REGIONS]
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/regions/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Cities
Edit campaign city targeting
Replace:
[CITIES] with your comma delimited cities - List cities s
[CAMPAIGN] with your campaign ID
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value'=>[CITIES]
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/cities/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Languages
Edit campaign laguage targeting
Replace:
[LANGUAGES] with your comma delimited languages - List languages
[CAMPAIGN] with your campaign ID
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value'=>[LANGUAGES]
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/languages/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Devices
Edit campaign device targeting
Replace:
[DEVICES] with your comma delimited devices - List devices
[CAMPAIGN] with your campaign ID
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value'=>[DEVICES]
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/devices/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Edit Carriers
Edit campaign carrier targeting
Replace:
[CARRIERS] with your comma delimited carriers - List carriers
[CAMPAIGN] with your campaign ID
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'value'=>[CARRIERS]
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/edit/carriers/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($this->curl, CURLOPT_POSTFIELDS, http_build_query($params));
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Include Site
Include a site to a campaign
Replace:
[CAMPAIGN] with your campaign ID
[SITE] with the site ID you wish to include
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/site/[SITE]/include/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Exclude Site
Exclude a site from a campaign
Replace:
[CAMPAIGN] with your campaign ID
[SITE] with the site ID you wish to exclude
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/site/[SITE]/exclude/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Include Zone
Include a zone to a campaign (removes an exclusion)
Replace:
[CAMPAIGN] with your campaign ID
[ZONE] with the zone ID you wish to include
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/zones/[ZONE]/include/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Exclude Zone
Exclude a zone from a campaign
Replace:
[CAMPAIGN] with your campaign ID
[ZONE] with the zone ID you wish to exclude
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/zones/[ZONE]/exclude/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Countries
List campaign targeting countries
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/countries/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Search Countries
List campaign targeting countries with searching
You are able to search by both names and IDs
Replace:
[COUNTRY] with the country's name or ID
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/countries/[COUNTRY]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Cities
List campaign targeting cities
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/cities/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Search Cities
List campaign targeting cities with searching
You are able to search by both names and IDs
Replace:
[CITY] with the city's name or ID
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/cities/[CITY]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Regions
List campaign targeting regions
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/regions/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Search Regions
List campaign targeting region with searching
You are able to search by both names and IDs
Replace:
[REGION] with the region's name or ID
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/regions/[REGION]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Languages
List campaign targeting languages
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/languages/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Search Languages
List campaign targeting languages with searching
You are able to search by both names and IDs
Replace:
[LANGUAGE] with the language's name or ID
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/languages/[LANGUAGE]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Carriers
List campaign targeting carriers
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/carriers/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Search Carriers
List campaign targeting carriers with searching
You are able to search by both names and IDs
Replace:
[CARRIER] with the carrier's name or ID
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/carriers/[CARRIER]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Devices
List campaign targeting devices
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/devices/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Search Devices
List campaign targeting devices with searching
You are able to search by both names and IDs
Replace:
[DEVICE] with the device's name or ID
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/devices/[DEVICE]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List OS
List campaign targeting operating systems
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/os/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Search OS
List campaign targeting operating sytems with searching
You are able to search by both names and IDs
Replace:
[OS] with the operating system's name or ID
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/os/[OS]?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Budgets
List allowed campaign budgets
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/budgets/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Page Frequency Caps
List campaign frequency page capping
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/freq/page/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Frequency Hours
List allowed campaign frequency hour capping
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/freq/hour/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Frequency Times
List allowed campaign frequency times capping
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/freq/times/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
List Zone Types
List campaign zone types
Replace [YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/list/zones/?token=[YOUR_API_TOKEN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Stats By Date
Get campaign stats by date
Replace:
[CAMPAIGN] with your campaign ID
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/date/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Stats By Country
Get campaign stats by country
Replace:
[CAMPAIGN] with your campaign ID
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/country/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Stats By Device
Get campaign stats by device
Replace:
[CAMPAIGN] with your campaign ID
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/device/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Stats By OS
Get campaign stats by operating system
Replace:
[CAMPAIGN] with your campaign ID
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/os/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Stats By Carrier
Get campaign stats by carrier
Replace:
[CAMPAIGN] with your campaign ID
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/carrier/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Stats By Site
Get campaign stats by site
Replace:
[CAMPAIGN] with your campaign ID
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/sites/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Stats By Zone
Get campaign stats by zone
Replace:
[CAMPAIGN] with your campaign ID
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/zones/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Stats By Creative
Get campaign stats by creative
Replace:
[CAMPAIGN] with your campaign ID
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/[CAMPAIGN]/creative/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
ALL Stats By Date
Get all campaign stats by date
Replace:
[CAMPAIGN] with "all" or a comma separated list of campaign IDs
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/date/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&campaigns=[CAMPAIGN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
ALL Stats By Country
Get all campaign stats by country
Replace:
[CAMPAIGN] with "all" or a comma separated list of campaign IDs
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/country/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&campaigns=[CAMPAIGN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
ALL Stats By Site
Get all campaign stats by site
Replace:
[CAMPAIGN] with "all" or a comma separated list of campaign IDs
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/sites/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&campaigns=[CAMPAIGN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
ALL Stats By Zone
Get all campaign stats by zone
Replace:
[CAMPAIGN] with "all" or a comma separated list of campaign IDs
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/zones/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&campaigns=[CAMPAIGN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
ALL Stats By Creative
Get all campaign stats by creative
Replace:
[CAMPAIGN] with "all" or a comma separated list of campaign IDs
[DATE_FROM] with your start period
[DATE_TO] with your end period
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/stats/creative/?token=[YOUR_API_TOKEN]&from=[DATE_FROM]&to=[DATE_TO]&campaigns=[CAMPAIGN]');
curl_setopt($tcurl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Add Conversion
Sends conversion data to Adnium
Replace the following:
[ATRACK] with the generated conversion ID you got from Adnium
[AMOUNT] with the amount from the conversion
[YOUR_API_TOKEN] with your token
<?php
$params = array(
'atrack'=>'[ATRACK]',
'amount'=>'[AMOUNT]',
);
$curl = curl_init('https://api.adnium.com/v1/advertiser/conversion/add/?token=[YOUR_API_TOKEN]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_POST, true);
curl_setopt($this->curl, CURLOPT_POSTFIELDS, $params);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>
Add Conversion
Sends conversion data to Adnium
Replace the following:
[ATRACK] with the generated conversion ID you got from Adnium
[AMOUNT] with the amount from the conversion
[YOUR_API_TOKEN] with your token
<?php
$curl = curl_init('https://api.adnium.com/v1/advertiser/conversion/add/?token=[YOUR_API_TOKEN]&atrack=[ATRACK]&amount=[AMOUNT]');
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
var_dump($response);
?>