Skip to main content
Inspiring
October 5, 2015
Answered

HTML5 from Flash CC wont work on Google Network...

  • October 5, 2015
  • 3 replies
  • 21224 views

When I publish HTML5 and then add them to Google Adwords it wont go becouse Google doesnt allow downloading files from other servers, and Adobe decided to add these lines in each html file:

<script src="http://code.createjs.com/easeljs-0.8.1.min.js"></script>

<script src="http://code.createjs.com/tweenjs-0.6.1.min.js"></script>

<script src="http://code.createjs.com/movieclip-0.8.1.min.js"></script>

<script src="http://code.createjs.com/preloadjs-0.6.1.min.js"></script>

What to do now? When i uncheck hosted libraries, the libraries alone weight 165KB and google have 150KB limit for ad.

Im very close to giving up any hope for doing HTML5 in Flash CC.

Any advice?

    This topic has been closed for replies.
    Correct answer krzysztof.rog

    I used js files from flash (these which you mentioned on the top) + some graphics and animation. 150kb is size of zipped file with all your stuff like graphics, js, html, so if you pack only flash js files it is about 47kb, you have another 100kb for your animation, graphics, html etc...

    3 replies

    Inspiring
    December 15, 2015

    Falrinth wrote:

    When I publish HTML5 and then add them to Google Adwords it wont go becouse Google doesnt allow downloading files from other servers, and Adobe decided to add these lines in each html file:

    <script src="http://code.createjs.com/easeljs-0.8.1.min.js"></script>

    <script src="http://code.createjs.com/tweenjs-0.6.1.min.js"></script>

    <script src="http://code.createjs.com/movieclip-0.8.1.min.js"></script>

    <script src="http://code.createjs.com/preloadjs-0.6.1.min.js"></script>

    The issue is google has multiple ad platforms, one of which AdWords HAD the most stringent rules. No external links other than Google fonts. AdWords are so inexpensive an advertiser only pays per click. No impression fees.

    That was THEN, I am pleased to report, this is NOW. Google is hosting the createJS files on their CDN in addition to GSAP. I am sure AdOps people were very frustrated by all the AdWords QA fails.

    DoubleClick hosted JavaScript libraries - DoubleClick Creative Solutions Help

    Jack Doyle of Greensock wrote: "

    We just received confirmation from AdWords that GSAP is now officially supported and exempt from file size calculations! This is pretty huge news, of course, and our hat's off to Google for making this happen.

    Conveniently, they're using the same CDN URLs as DoubleClick which means even better caching.

    https://support.goog.../answer/6307288

    At this point, every major network that we're aware of not only supports GSAP but also exempts it from file size calculations and hosts it on their CDN. This should make it a lot easier for GSAP users to build an ad once and deploy it almost anywhere."

    These are the Google CDN links for createJS

    //EaselJS

    https://s0.2mdn.net/ads/studio/cached_libs/easeljs_0.8.1_58add2e69ca7fbe25e8f82a2b5f6a510_min.js

    //Movieclip

    https://s0.2mdn.net/ads/studio/cached_libs/movieclip_0.8.1_927f07f1635e6a2a1aa76e79f9decf86_min.js

    //PreloadJS

    https://s0.2mdn.net/ads/studio/cached_libs/preloadjs_0.6.1_ab03d7dc94f6d4fae428f99662cd5819_min.js

    //TweenJS

    https://s0.2mdn.net/ads/studio/cached_libs/tweenjs_0.6.1_40840f08e9fb382ae9e4a337da542ed5_min.js

    krzysztof.rog
    Participating Frequently
    December 15, 2015

    I tried to upload ad with google cdn creatJS links to adwords but it seems that they still has problem with external libraries even if thay are on their CDN.

    Inspiring
    December 15, 2015

    I was wondering if the AdWords news being so fresh, was immediate.  It was the GSAP people who relayed it.

    krzysztof.rog
    Participating Frequently
    October 22, 2015

    Adwords accept html5 ads made in Flash CC 2015. I made 3 campaigns last week using flash cc 2015 but:

    1. if you use adwords.com interface - All js scripts libraries must be included in zip file. Only DoubleClick allow external scripts.

    2. You have to put: <meta name="ad.size" content="width=300,height=250"> where width and height are your ad size maually to html file generated from flash

    3. Your ad must stop after 30sec. - I recommend little shorter time for ex. 28sec. - when i set 30sec in my ad google reject my ads - maybe they count load time also...

    FalrinthAuthor
    Inspiring
    October 23, 2015

    And you made these html5 with no graphics whatsoever or no animation whatsoever? Becouse when you do any animation in Flash CC canvas, then the javascripts alone weight close to 150KB if you uncheck "hosted libraries" - the ad size limit in adwords (leaving you with little to none KB for graphics). So i wonder how did you manage that?

    Or do you use some alternative javascript files that weight less and the html5 banner published in flash cc will work with them?

    krzysztof.rog
    krzysztof.rogCorrect answer
    Participating Frequently
    October 23, 2015

    I used js files from flash (these which you mentioned on the top) + some graphics and animation. 150kb is size of zipped file with all your stuff like graphics, js, html, so if you pack only flash js files it is about 47kb, you have another 100kb for your animation, graphics, html etc...

    rezun8
    Inspiring
    October 5, 2015

    Google does allow scripts from other sites, such as createjs, we use it all the time. The libraries themselevs arent very big and do not count towards your 150-200 kb space allocation.

    I suggest following the HTML5 doubleClick studio walk through as a guide.

    Rich Media Gallery | HTML5 Toolkit

    FalrinthAuthor
    Inspiring
    October 5, 2015

    How do they allow it, when they give me warning saying they dont allow it, and even quote that very line i posted here...

    Furthermore even in specification they say:

    "

    Google restricts the following coded behaviors:

    • Extra calls: Ad code cannot make external server calls for additional JavaScript or other functionality. All functionality must be localized to the code itself."

    And the libraries Flash CC publish when i uncheck "hosted libraries" weight ~165KB, and when you say they arent very big im not sure if you are talking about the same Flash CC html5 canvas as i do... But afaik there is only one Flash CC and i can check on m y harddrive how much these libraries weight >.<

    rezun8
    Inspiring
    October 5, 2015

    Then how do you explain this? (message says what i already wrote in this thread (URl should be compatible with SSL protocole. Use URL without "http:", for example "//example.com")):


    have you checked the most current easeljs version? 

    This article may help you with Flash CC to HTML5  Flash Professional Help | Creating and publishing an HTML5 Canvas document

    this may sound silly but your sure you marked the custom stage size and manually entered the specs 750x200 ? thats not a noraml ad size so youd have to specify it.

    I'll keep diggin around to help out.