Edit ad tag

Use this endpoint to edit the ad tag under your account in Brid.tv.

Endpoint
apiv2/adtags/edit/.json

This method is type of POST and will not receive any GET parameters.

Parameters:

Name Type Description
data[Adtag][partner_id] *required id Partner id
data[Adtag][id] *required id Adtag id
data[Adtag][type] *optional string Player/Outstream/Banner
data[Adtag][name] *optional string Adtag name
data[Adtag][url_secure] *optional string Ad tag URL
Example
<?php
require_once('lib/BridApi.php');
try {
    $api = new BridApi(array('auth_token'=>'b1437c94847d7e19268ad3bda0e46f8f6bc36f45'));
    $post = array('data[Adtag][partner_id]'=>'13085', 'data[Adtag][id]'=>'ad_tag_id', 'data[Adtag][type]'=>'Player', 'data[Adtag][name]'=>'Ad tag 1', 'data[Adtag][url_secure]'=>'AD_TAG_URL');
    $return = $api->post(['adtags', 'edit'], $post);
    print_r($return);
} 
catch(Exception $e) {
    echo $e->getMessage();
}
?>

BridApi.php is a small library we provide in our git repository which allows you to quick-start your implementation so we advise you to use it. These examples are made with this library in mind. Make sure to substitute and use your own authorization token and site data when trying out these examples.