Admob 未填充所有宽度
我对 admob 横幅尺寸有疑问: 我的测试终端是 Samsung Galaxy s (480x800) 和 Asus eee pad Transformer (800x1200)。 在 admob 文档中,横幅尺寸我使用的手机尺寸为 320x50,平板电脑尺寸为 728x90。
使用 480x800(和纵向)时,添加会展开并填充所有布局,但在横向或平板电脑中,横幅仅占据一部分,其余部分为黑色。
我该如何解决这个问题?
谢谢
I have a problem with the admob banner size:
My test terminals are Samsung Galaxy s (480x800) and Asus eee pad transformer (800x1200).
In the admob doc the banner sizes im using are 320x50 for phones and 728x90 for tablets.
With 480x800 (and portrait) the add is expanded and fill all the layout but in landscape or with the tablet the banner only take a portion and the rest is black.
How can I fix that?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须在 adView 属性
adSize
中设置标志SMART_BANNER
。像这样:You have to set the flag
SMART_BANNER
in the adView attributeadSize
. like that:大多数应用程序都像您的应用程序一样,这不是问题,很难让它在横向模式下填充空间!不用担心
Most of the apps are like yours it is not a problem , it is hard to get it to fill the space in landscape mode !! Don't Worry
根据 Google 横幅广告自定义,您可以使用智能横幅
要使用智能横幅,请为广告尺寸指定常量 SMART_BANNER:
As per Google Banner Ad Customization you can use Smart Banners
To use Smart Banners, specify the constant SMART_BANNER for the ad size: