Ensuring Adobe Animate CC HTML5 Compatibility With Terminus

To ensure compatibility with Terminus, complete the following step for each HTML5 creative you want to upload.

Step 1. Remove the following line of code:

var clickTag = "http://YOUR_URL_HERE.com/";


Step 2. The dimensions of all AMPHTML ads must be declared with a  <meta> tag in the document <head>:

<meta name="ad.size" content="width=W,height=H">

Step 3. Find the closing </body> tag and paste the following block of code right before it.


<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 banner = document.getElementById('YOUR_CANVAS_ID_HERE');
banner.onclick=function(){
var clickTag = getParameterByName('clickTAG');
window.open(clickTag, "_blank");
};
</script>

Step 4. Replace YOUR_CANVAS_ID_HERE with the CANVAS ID= from your <canvas> tag directly below the opening <body> tag. This ID is typically "canvas

Step 5. Zip the .html , .js and images folder together, DO NOT zip the files as a folder underneath a folder, the .html needs to be on the root level of the zip directory. 

Step 6. Upload the .zip file to Terminus and set your click-through URL in the Terminus UI. You're DONE!

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.