Adding "The Trade Desk" clicktag to HTML5 banner ads created with Animate
Hi!
I've created some ads in Animate and now my client asks me to add "Trade Desk" clicktag.
I dont have any experience with this ad network, I would appreciate if somebody who does, takes a look and let me know have I done this right? I dont have access to Trade Desk platform, so dont have any way to test the ads and see have I implemented this clicktag correctly.
This is the Trade Desk Specs Ive received: https://gocreative.cloud/gocreative.cloud/test/soulcbd/trade_tesk_specs.pdf
So, Ive placed this right before < / header >
<script type="text/javascript">
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
var clickTAG = getParameterByName("clickTAG");
</script>
And edited the body:
<body onload="init();" style="margin:0px; background-color:rgba(255, 255, 255, 1.00); overflow: hidden">
<div id="animation_container" style="width:160px; height:600px">
<a href="javascript:window.open(window.clickTAG)">
<canvas id="canvas" width="160" height="600" style="position: absolute; display: block; "></canvas>
<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:160px; height:600px; position: absolute; left: 0px; top: 0px; display: block;"></div>
</a>
</div>
</body>
Here are my files: http://gocreative.cloud/test/soulcbd/160x600.zip
Here is the preview of those files: http://gocreative.cloud/test/soulcbd
Should this work properly, will clicktag be triggered?
Thanks!
