Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图将 admob 添加到我的应用程序中,但我认为它太大了。在文档中,最小尺寸为 320x50。同时在我的应用程序中它需要 426(这很奇怪,因为文档没有提到这种分辨率):
Not enough space to show ad! Wants: <426, 66>, Has: <324, 628>
有没有办法强制最小的?我试过 ads:adSize="BANNER" 和 ads:adSize="SMART_BANNER" 都太大了。
谢谢
您必须记住BANNER大小是 320x50dip,而不是像素。因此,在更高密度的设备上,它需要更多的像素。确保它具有正确大小的最简单方法是AdView在320x50dp创建它时调整横幅大小。
BANNER
AdView
320x50dp