URGENT HELP! Clicktag not working - but validated OKAY

New Here ,
Aug 29, 2021 Aug 29, 2021

Copy link to clipboard

Copied

Hi team, really needing some urgent help here. I have created an HTML 5 canvas advert... I ran it through the HTML 5 Validator in prep for the publisher to load it into their ad server (Google). Came back working fine, no errors. Gave the zip file to the publisher who loaded it in to be published on the site.

 

All loads fine into the site, the ad plays nicely, no trouble there. But the click through url doesn't work! There is no error showing when the publisher loads it into the adserver. and it picks up the url fine as he sent me a screenshot of it loaded with the click tag url displaying correctly.

 

Here is my entire HTML 5 code:

<!DOCTYPE html>
<!--
NOTES:
1. All tokens are represented by '$' sign in the template.
2. You can write your code only wherever mentioned.
3. All occurrences of existing tokens will be replaced by their appropriate values.
4. Blank lines will be removed automatically.
5. Remove unnecessary comments before creating your template.
-->
<html>
<head>
<meta charset="UTF-8">
<meta name="authoring-tool" content="Adobe_Animate_CC">
<title>Synergy_300821</title>
<!-- write your code here -->
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
<script src="Synergy_300821.js"></script>
<script>
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
canvas = document.getElementById("canvas");
anim_container = document.getElementById("animation_container");
dom_overlay_container = document.getElementById("dom_overlay_container");
var comp=AdobeAn.getComposition("3F56791378C07145BCB54DAE85092E05");
var lib=comp.getLibrary();
handleComplete({},comp);
}
function handleComplete(evt,comp) {
//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
var lib=comp.getLibrary();
var ss=comp.getSpriteSheet();
exportRoot = new lib.Synergy_300821();
stage = new lib.Stage(canvas);
stage.enableMouseOver();
//Registers the "tick" event listener.
fnStartAnimation = function() {
stage.addChild(exportRoot);
createjs.Ticker.framerate = lib.properties.fps;
createjs.Ticker.addEventListener("tick", stage);
}
//Code to support hidpi screens and responsive scaling.
AdobeAn.makeResponsive(false,'both',false,1,[canvas,anim_container,dom_overlay_container]);
AdobeAn.compositionLoaded(lib.properties.id);
fnStartAnimation();
}
</script>
<!-- write your code here -->

<meta name="ad.size" content="width=300,height=250">
<script type="text/javascript">
var clickTag = "https://www.synergyinvestments.co.nz/"; </script>

<a href="javascript&colon;window.open(window.clickTag)">
</a>

</head>
<body onload="init();" style="margin:0px;">
<div id="animation_container" style="background-color:rgba(255, 255, 255, 1.00); width:300px; height:250px">
<canvas id="canvas" width="300" height="250" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);"></canvas>
<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:300px; height:250px; position: absolute; left: 0px; top: 0px; display: block;">
</div>
</div>
</body>
</html>

 

I have also used the clicktag code in another HTML 5 adver that went to Google adserver with no issues. I've checked the code against that previous advert's code and all matches, can't see any major flags why it wouldn't work.

 

Ad was created in Adobe Animate 2021.

 

Any help appreciated!

TOPICS
ActionScript , Ad development , Code , How to

Views

23

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation