Hello, I am a designer who prepares ads according to Google requirements.
I'm having a problem with adding an exit and exitApi. I created a banner
and implemented all the changes according to this link: Google Rich Media
Support
<https://support.google.com/richmedia/answer/2672517?sjid=8120692371600701073-AP#zippy=%2Cadd-an-exit-using-google-web-designer%2Cadd-an-exit-using-any-html-editor>.
However, the HTML5 validator keeps showing errors. Can you advise on what
might be wrong
Attaching a part of the html code:
<!DOCTYPE html>
<html>
<head><!--Adform Global Clicktag START-->
<style>
#bg-exit {
cursor: pointer;
width: 100%;
height: 100%;
z-index: 2; /* Updated z-index value */
}
</style>
<meta charset="UTF-8">
<meta name="ad.300x250" content="width=300,height=250">
<meta name="authoring-tool" content="Adobe_Animate_CC">
<title>300x250_lazybos</title>
<!-- write your code here -->
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
<script src="300x250_lazybos.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("7E132DC9BD0C4B2FBE96759FD8BC40A2");
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._300x250_lazybos();
stage = new lib.Stage(canvas);
//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 -->
<script type="text/javascript">
var clickTag = "https://777.lt/";
function bgExitHandler() {
window.open(window.clickTag, "_blank");
}
</script>
</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>
<div id="bg-exit" onclick="bgExitHandler();"></div>
</body>
</html>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/314bbb72-5d8d-42f1-a09a-5f0703a391b5n%40googlegroups.com.