问题描述
当我在我的应用中使用Samsung MultiWindow功能时,AdMob停止加载广告并记录以下错误:
When I use Samsung MultiWindow feature with my app AdMob stops loading ad and log such error:
AdMob具有SmartBanner大小。如果我设置固定的横幅大小,可以部分解决问题-有时会展示广告,有时会出现所描述的错误。它可能会显示尺寸为AxB的广告,并且在几处多窗口边框更改后显示错误需要DxE dp,但只有AxB dp。
AdMob has SmartBanner size. If I set fixed banner size than it partially solves problem - sometimes ad is showing, sometimes I had the described error. It may show ad for size AxB and after few multi window border changes show error "Needs DxE dp, but only has AxB dp".
AdMob视图在我正确调整大小时更改窗口大小,仅与请求尺寸不正确的广告有关。
AdMob view is correctly resizing when I change windows size, the problem only with requesting ad with incorrect size.
可能有人对AdMob有类似的问题?
May be somebody had similar problems with AdMob?
推荐答案
错误非常明显。在某些时候,您没有给广告足够的高度来显示。
查看您的布局。某些东西占用了太多空间。
The error is pretty clear. At some point you are not giving the ad enough height to be shown.Review your layout. Something is claiming too much space.
这篇关于三星MultiWindow模式下的AdMob调整大小问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!