An exit/ ExitApi issues

78 views
Skip to first unread message

Liveta

unread,
Jan 3, 2024, 5:40:13 AM1/3/24
to Google Ads API and AdWords API Forum
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. 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>

Google Ads API Forum Advisor

unread,
Jan 3, 2024, 11:25:12 AM1/3/24
to kuzava...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team. 

By reviewing your concern, I understand that you are using Google Ads Scripts and you are encountering some errors. Please note that our team can only assist with technical queries or concerns related to the Google Ads API. As this issue is related to Google Ads Scripts, I am routing this request to the Google Ads Scripts team as they are well equipped to assist you with this.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02r52er:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages