How to fire a click pixel to a 3rd party Ad Server?

Cedato Support -

In order to fire a click pixel to a third-party Ad Server, you will need to use a custom tag as follows: 

<div id="video[PLAYER_ID][CB]" style="width:300px;height:250px;">
    <script src="http://p.algovid.com/player/tlvplayer.js?p=[PLAYER_ID]&sid=[SUBID]&cb=[CB]&d=[URL]&w=300&h=250" type="text/javascript"></script>       <noscript><img src="http://p.algovid.com/ppx/error?en=1&em=nojs&p=[PlayerId]&sid=[SUBID]&cb=[CB]&domain=[URL]" width="1" height="1" /></noscript>
</div>

<script>
       function waitForAPI() {
         if (typeof (CEDATO_API) !== 'undefined') {
         var playerId = '[PlayerId]';
         var playerInterfaceId = 'video[PLAYER_ID][CB]';
         var apiInterface = CEDATO_API.getPlayer(playerInterfaceId).on('click', function(e) {
             var imgPixel = new Image();
             imgPixel.src = 'http://my-pixel-url.com/?playerId=' + playerId + '&vastId=' + e.data.vastId + '&click_url=' +  e.data.url;
               });
           } else {
              setTimeout(waitForAPI, 100);
              }
}
waitForAPI();
</script>

 

Where [PLAYER_ID] is the playerId and [CB] is the cache buster. 

Your third-party pixel URL should be entered in this line: 

"http://my-pixel-url.com/?playerId="

Have more questions? Submit a request

0 Comments

Article is closed for comments.