Edit Banner

Edit the URL of a banner in a campaign

PHP

Replace:
[NEW_BANNER_URL] with the new url for the banner
[CAMPAIGN] with the campaign ID
[BANNER] with the banner ID of the banner you want to edit - List all banners in a campaign
[YOUR_API_TOKEN] with your token

<?php $params = array( 'url'=>[NEW_BANNER_URL] ); $curl = curl_init('https://api.adnium.com/v1/advertiser/campaign/[CAMPAIGN]/banner/[BANNER]/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); ?>
Form Data
string

The URL to change it to e.g. http://example.org

Language
Request