问题
This is a google flash to html5 banner question.
When shoving in SWF files to google's Swiffy, it tells me my filesize is e.g. 40kb, but then when i download the gzip file and open it the html file becomes 160kb, and there looks like there's a runtime.js file which is 420kb. Google's guidlienes state that a)files need to be sent in a zip format not gzip b)they need to be under 150kb
So I tried the zippy flash expansion which worked great at 160kb which i could compress easily but then it still calls for https://www.gstatic.com/swiffy/v7.2.0/runtime.js Google never let me embed scripts into flash banners, is this now allowed for html5 banners? Can I build banners this way and embed this runtime file from that gstatic site? Does anyone have any experience with this or who knows an alternative?
Thanks!
回答1:
You're right, Swiffy output isn't feasible for standard banner ad networks, due to file size. Google does a lot of things; just because they built both Swiffy and AdWords doesn't mean those products go together. There's not an easy and usable way to convert a Flash banner to HTML5. We've had good results using GSAP tweens to build Flash and HTML versions of the same design. Or, if you can do all your animation with CSS transitions, that's probably going to be the smallest file size, but will still be over the 40k limit that many publishers still have. For those sites, you'll probably be stuck with either Flash, or a static image.
来源:https://stackoverflow.com/questions/29106342/swiffys-export-conflicts-with-googles-guidelines