Using Passback

Cedato Support -

A Passback happens when replacing the video player with supplied HTML in case that no ad was started in the predefined span of seconds. The passback HTML (usually a Display Ad) is injected into a body of newly created iframe inside the Supply tag's <div>. The player itself is stopped and removed.

Usage: Passback HTML code is to be enclosed into a special <script> tag of type cedato/passback. The timeout (in seconds) is specified using data-timeout attribute of that script.

Important: All occurrences of standard javascript close script tag </script> inside the passback HTML has to be replaced with <\/script>.

<div id="videoXXXX[CB]" style="width:480px;height:270px">

// Enter your full HTML Supply tag below

<script src="http://p.algovid.com/player/player.js?p=XXXXX&sid=EXTRACTED_DOMAIN&cb=[CB]&w=300&h=250&d=[URL]"></script>

        <script type="cedato/passback" data-timeout="30"> // Timeout for the Cedato player

   // Your passback code goes here

   // Be sure to replace all occurrences of </script> with <\/script> in the added passback code

   </script>

</div>

 

Example

<div id="videoXXX[CB]" style="width: 300px; height: 250px;">
 <script src="http://p.algovid.com/player/player.js?p=XXXXX&sid=EXTRACTED_DOMAIN&cb=[CB]&w=300&h=250&d=[URL]" type="text/javascript"></script>
  <script type="cedato/passback" data-timeout="30">

      // Your passback code
   <script type="text/javascript">
    adserver_key = "dc123456782798986574c57";
    adserver_time = new Date().getTime();
    adserver_channel = "window.location.hostname";
    adserver_code_format = "ads-sync.js";
    adserver_click = "";
    adserver_custom_params = {};
   <\/script> // Replace all the original closing </script> -tags with <\/script>
<script type="text/javascript" src="http://www.trusted-offer-provider.com/js/show_ads_adserver.js?pubId=1836"><\/script> 


 </script>
</div>  

 
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.