Jump to content
Search Community

HELP! Error Google Ads

ricardoandrade@tgvinterior test
Moderator Tag

Recommended Posts

Hey Ricardo and welcome to the GreenSock forums. CreateJS is not a GreenSock tool and we don't support it here. But even so, there's no way that we can help using the information that you've provided. If you'd like help, please provide a way for us to recreate the error.

Link to comment
Share on other sites

Ah ok. soory I didin't knew ...

 

I have my animation file and the html and js file in one folder.
and when I upload the zip file to google ads the message said that : 

Your HTML5 ad is trying to reference a resource external to the .ZIP file: https://code.createjs.com/1.0.0/createjs.min.js. Only internal file references are allowed (for example, "path / to / asset / in-zip.png").



<html>
<head>
<meta name="ad.size" content="width=120,height=600">
<meta name="authoring-tool" content="Adobe_Animate_CC">
<title>index</title>
<!-- write your code here -->
<script src="https://code.createjs.com/1.0.0/createjs.min.js"></script>
<script src="index.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("2CD73DF3FC134BF0913FBBFE2DD86EC6");
    var lib=comp.getLibrary();
    var loader = new createjs.LoadQueue(false);
    loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
    loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
    var lib=comp.getLibrary();
    loader.loadManifest(lib.properties.manifest);
}



Can you help me?



 

Link to comment
Share on other sites

Try using Google's CDN instead >

<script src="https://s0.2mdn.net/ads/studio/cached_libs/createjs_2019.11.15_min.js"></script>

...and if that doesn't work, you can always embed the createjs library into the HTML (just copy and paste all of the javascript code from that link  into its own <script> tag.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...