Examples of common third party ad tags
While you can easily serve ads from third party ad servers using HTML5 ad items, you will not be able to track clicks on those ads by default. You must place AdButler's click tracking macro to implement click tracking. Here are examples from commonly used ad serving platforms.
AdForm
AdForm will give you a tag similar to the one shown below. You must place the AdButler [TRACKING_LINK] macro before the URL of the <a href>
, and place ;click=[TRACKING_LINK]
at the end of the URL in the <script>
.
<script language="javascript" src="https://track.adform.net/adfscript/?bn=########;click=[TRACKING_LINK]"></script>
<noscript>
<a href="[TRACKING_LINK]https://track.adform.net/C/?bn=#########;C=0" target="_blank">
<img src="https://track.adform.net/adfserve/?bn=43224314;srctype=4;ord=[timestamp]" border="0" width="###" height="###" alt=""/>
</a>
</noscript>
Ad Glare
When generating a tag, select AdButler from the list of Publisher ad servers. This will place AdButler's click tracking macro into your tag.
Atlas
The Atlas tag requires the inclusion of both a tracking link and a cache-buster. Cache-busters add a random number to the ad request to ensure that duplicates ad calls can be distinguished and to ensure continuity of the ad chain.
iFrame
The Atlas iFrame tag requires that a cachebuster [RND] and a tracking link [TRACKING_LINK] be inserted in numerous places, shown below:
<iframe src="http://view.atdmt.com/9QP/iview/473914578/direct/01/[RND]?click=[TRACKING_LINK]" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" width="468" height="60"> <script language="JavaScript" type="text/javascript"> document.write('<a href="[TRACKING_LINK]http://clk.atdmt.com/9QP/go/473914578/direct/01/" target="_blank"><img src="http://view.atdmt.com/9QP/view/473914578/direct/01/[RND]"/></a>'); </script><noscript><a href="[TRACKING_LINK]http://clk.atdmt.com/9QP/go/473914578/direct/01/" target="_blank"><img border="0" src="http://view.atdmt.com/9QP/view/473914578/direct/01/[RND]" /></a></noscript></iframe>
DoubleClick For Publishers
DoubleClick ad tags in AdButler need to use the [TRACKING_LINK] macro, as demonstrated in this code snippet.
<IFRAME SRC="http://ad.doubleclick.net/adi/N1234.123456.ABCDEFGHIJKL/B1234567.1;sz=300x250;pc=[TPAS_ID];ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;click=[TRACKING_LINK]" WIDTH=300 HEIGHT=250 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR='#000000'> <SCRIPT SRC="http://ad.doubleclick.net/adj/N1234.123456.ABCDEFGHIJKL/B1234567.1;abr=!ie;sz=300x250;pc=[TPAS_ID];ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;click=[TRACKING_LINK]" language='JavaScript1.1'> </SCRIPT> <NOSCRIPT> <A HREF="[TRACKING_LINK]http://ad.doubleclick.net/jump/N1234.123456.ABCDEFGHIJKL/B1234567.1;abr=!ie4;abr=!ie5;sz=300x250;pc=[TPAS_ID];ord=[timestamp]?"> <IMG SRC="http://ad.doubleclick.net/ad/N1234.123456.ABCDEFGHIJKL/B1234567.1;abr=!ie4;abr=!ie5;sz=300x250;pc=[TPAS_ID];ord=[timestamp]?" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Advertisement"></A> </NOSCRIPT> </IFRAME>
DFP INS Tags
One type of ad tag that DFP may provide you with is an INS tag, such as this one:
<ins class="dcmads" style="display:inline-block;width:300px;height:250px">
data-dcm-placement="N7480.1664088DOUBLECLICK.NETTEST/B8299600.114131924"
data-dcm-rendering-mode="script"
data-dcm-https-only
data-dcm-resettable-device-id=''>
<script src="//www.googletagservices.com/dcm/dcmads.js">/script>
</ins>
To serve an ad from one of these tags in AdButler, you must create a third party HTML ad item. As it is, this tag is enough to serve ads, but it will not track your clicks in AdButler. To set up click tracking, all you have to do is add the following lines of code to the INS tag:
data-dcm-landing-page-escapes=0
data-dcm-click-tracker='[TRACKING_LINK_ENCODED]'
Properly implemented, the tag will look like this:
<ins class="dcmads" style="display:inline-block;width:300px;height:250px">
data-dcm-placement="N7480.1664088DOUBLECLICK.NETTEST/B8299600.114131924"
data-dcm-rendering-mode="script"
data-dcm-https-only
data-dcm-landing-page-escapes=0
data-dcm-click-tracker='[TRACKING_LINK_ENCODED]'
data-dcm-resettable-device-id=''>
<script src="//www.googletagservices.com/dcm/dcmads.js">/script>
</ins>
Those two lines inject our click-tracker into the DFP script, and ensure that the tag doesn't encode the ad item's destination URL (to help it play nice with our click-tracker).
Flash Talking
Flash Talking will give you a tag similar to the one shown below. You must place the AdButler [TRACKING_LINK] macro into the noscript href, and the [TRACKING_LINK_ENCODED] macro into the script.
<script language="javascript" type="text/javascript">
new function() {
this.rand = Math.floor((Math.random() + "") * 1000000000000);
this.dvparams = 'ctx=12345&cmp=12345&plc=12345&sid=12345';
this.dvregion = '0';
this.tagsrc = '<noscr'+'ipt>\n<a href="[TRACKING_LINK]http://servedby.flashtalking.com/
click/4/12345;12345;0;12345;0/?url=1419304" target="_blank">
<img border="0" src="http://servedby.flashtalking.com/imp/4/12345;12345;12345;gif;
FIOS112MDUInviteBT2DallasDMAMPG3160x600FT213to331/?"></a>
</noscr'+'ipt>
<scr'+'ipt language="Javascr'+'ipt1.1" type="text/javascr'+'ipt">
var ftClick = encodeURIComponent("[TRACKING_LINK_ENCODED]");
var ftX = "";
ar ftY = "";
var ftZ = "";
var ftContent = "";
var ftCustom = "";\nvar ft160x600_OOBclickTrack = "";
var ftRandom = Math.random()*1000000;
var ftBuildTag1 = "<scr";
var ftBuildTag2 = "</";
var ftTag = ftBuildTag1 +
'ipt language="javascr'+'ipt1.1" type="text/javascr'+'ipt" ';nftTag +=
'src="http://servedby.flashtalking.com/imp/4/12345;12345;12345;js;
FIOS112MDUInviteBT2DallasDMAMPG3160x600FT213to331/?click='+ftClick+'&
ftx='+ftX+'&fty='+ftY+'&ftadz='+ftZ+'&ftscw='+ftContent+'&
ft_custom='+ftCustomn+'&cachebuster='+ftRandom+'" id="ftscr'+'ipt_160x600"
name="ftscr'+'ipt_160x600"';nftTag += '">' + ftBuildTag2 + 'scr'+'ipt>
';ndocument.write(ftTag);\n</scr'+'ipt>nn';
this.altsrc = '<a href="http://www.example.com/defaultads/comp160x600.gif"
width="160" height="600" border="0"></a>';
this.callbackName = '__dvredirect_callback_' + this.rand;
var thisRedirect = this;
window[this.callbackName] = function () { return thisRedirect; };
var src = 'http://rtbcdn.doubleverify.com/bsredirect5.js?callback=' + this.callbackName;
document.write('<scr' + 'ipt src=' + src + '></scr' + 'ipt>');
}
</script>
JavaScript
Like the iFrame tag, JavaScript tags require a cachebuster [RND] and tracking link [TRACKING_LINK] to track clicks in AdButler, as shown below:
<script language="JavaScript" type="text/javascript" src="http://view.atdmt.com/ADO/jview/dnstlt7a0190000003ado/direct/01[RND]?click=[TRACKING_LINK]"></script> <noscript><a href="[TRACKING_LINK]http://clk.atdmt.com/ADO/go/dnstlt7a0190000003ado/direct/01/" target="_blank"> <img border="0" src="http://view.atdmt.com/ADO/view/dnstlt7a0190000003ado/direct/01/[RND]"/></a> </noscript>
Sizmek
Sizmek will give you a tag similar to the one shown below. The parts that need to be changed to have your campaign track properly are highlighted. The # represents the account number.
<script src="https://bs.serving-sys.com/Serving/adServer.bs?ncu=$$[TRACKING_LINK_ENCODED]$$&c=##&cn=display&pli=#########&w=300&h=600&ord=[timestamp]&z=0&ucm=true"></script>
<noscript>
<a href="[TRACKING_LINK_ENCODED]https://bs.serving-sys.com/Serving/adServer.bs?cn=brd&pli=#######&Page=&Pos=########" target="_blank">
<img src="https://bs.serving-sys.com/Serving/adServer.bs?c=8&cn=display&pli=########&Page=&Pos=#######
https://bs.serving-sys.com/Serving/adServer.bs?c=8&cn=display&pli=########&Page=&Pos=#######
" border=0 width=300 height=600></a>
</noscript>
Standard Redirects
The basic redirect tags for click tracking and impression counting are as follows
http://view.atdmt.com/ADO/view/dnstlt7a0190000003ado/direct/01/[RND]
[TRACKING_LINK]http://clk.atdmt.com/ADO/go/dnstlt7a0190000003ado/direct/01/