Integration guide for publishers

Delta Adserver's ad tags are asynchronous Javascript codes that handles all the necessary measuring as well as placing an iframe in place holding the necessary html code. It also looks upon the pages protocol and adjusts itself to the current one. Therefore you'll never need to worry about changing the protocol in the ad tags.

When you receive a tag it will look like this:

<!-- JavaScript Ad Tag / Delta Projects / 300x250 / Downloaded at: Tue Mar 01 01:01:01 CET 2016
     Campaign 1, Purchase 1
 -->

<script type="text/javascript" data-sting="12345">
  !function(t,n,e){"undefined"==typeof $ting&&
  ($ting={p:n+"s:"==t.location.protocol?n+"s":n,a:[],
  h:"sting.de17a.com"},a=t.createElement("script"),
  a.async=!0,a.src=$ting.p+"://"+$ting.h+"/ctrl.js",
  t.body.appendChild(a)),$ting.a.push([null,12345,300,250,e])
  }(document,"http",{});
</script>

<!-- End of Tag -->

As you can see in the above example the tag starts with an html comment describing what tag this is; client, size, date/time of download, campaign and purchase. After this the tag itself follows.

Adding your click macro

Most of times you also want to add your own click macro in order to be able to measure clicks at your end. The only thing you will have to do is to add click: "{YOUR_CLICK_MACRO}?url={{escapedClick}}" to the tag as described in below example:

<!-- JavaScript Ad Tag / Delta Projects / 300x250 / Downloaded at: Tue Mar 01 01:01:01 CET 2016
     Campaign 1, Purchase 1
 -->

<script type="text/javascript" data-sting="12345">
  !function(t,n,e){"undefined"==typeof $ting&&
  ($ting={p:n+"s:"==t.location.protocol?n+"s":n,a:[],
  h:"sting.de17a.com"},a=t.createElement("script"),
  a.async=!0,a.src=$ting.p+"://"+$ting.h+"/ctrl.js",
  t.body.appendChild(a)),$ting.a.push([null,12345,300,250,e])
  }(document,"http",{ click: "{YOUR_CLICK_MACRO}?url={{escapedClick}}" });
</script>

<!-- End of Tag -->

* Please note that {YOUR_CLICK_MACRO} has to be changed to your own macro and that ?url= has to be changed to your own redirect parameter or removed if it is included in your own macro. {{escapedClick}} is our click URL which has to be placed somewhere in the click chain. Commonly in the end of the click chain.


Last modified: Tue May 10 2016 09:55:59 GMT+0200 (Central European Summer Time)

results matching ""

    No results matching ""