Swiffy的出口与谷歌的指引冲突

编程入门 行业动态 更新时间:2024-10-11 13:22:32
本文介绍了Swiffy的出口与谷歌的指引冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 这是一个谷歌闪光html5横幅的问题。

当SWF文件推到谷歌的Swiffy,它告诉我,我的文件大小是例如40kb,但是当我下载gzip文件并打开它时,html文件变成160kb,并且看起来像是有一个420kb的runtime.js文件。 谷歌的guidlienes表示,a)文件需要以zip格式发送而不是gzip b)他们需要在150kb以下

所以我尝试了zippy flash扩展在160kb工作很好,我可以很容易地压缩,但它仍然要求 https: //www.gstatic/swiffy/v7.2.0/runtime.js Google决不让我将脚本嵌入到Flash横幅中,现在是否允许HTML5横幅广告?我可以用这种方式构建横幅并从gstatic网站嵌入此运行时文件吗?有没有人有这方面的经验或谁知道一个替代?

谢谢!

解决方案

div>

你说得对,由于文件的大小,Swiffy输出对于标准横幅广告网络来说是不可行的。 Google做了很多事情;只是因为他们建立Swiffy和AdWords并不意味着这些产品一起。 将Flash横幅转换为HTML5并不容易且可用。我们使用GSAP补间来建立同样设计的Flash和HTML版本,效果很好。或者,如果您可以使用CSS过渡功能来完成所有的动画,那么这可能是最小的文件大小,但仍然会超过许多发行商仍然拥有的4万个限制。对于这些网站,您可能会遇到Flash或静态图片。

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 www.gstatic/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!

解决方案

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.

更多推荐

Swiffy的出口与谷歌的指引冲突

本文发布于:2023-05-29 03:39:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/335904.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:冲突   Swiffy

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!