0

When I use Samsung MultiWindow feature with my app AdMob stops loading ad and log such error:

Not enough space to show ad. Needs 961x49 dp, but only has 471x50 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 view is correctly resizing when I change windows size, the problem only with requesting ad with incorrect size.

May be somebody had similar problems with AdMob?

tomrozb
  • 25,773
  • 31
  • 101
  • 122
Dmitry_L
  • 1,004
  • 7
  • 8

1 Answers1

1

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.

William
  • 20,150
  • 8
  • 49
  • 91
  • Thanks, but actually problem were solved when I started using admobAdView.setAdSize(new AdSize(width, height) instead of using predefined AdSize.SMART_BANNER. Where width and height actual layout size. There was strange behavior in multiwindow mode. – Dmitry_L Dec 02 '14 at 14:00