0

I use admob plus plugin in my ionic 5 capacitor app. The implementation looks fine other than for the ad sizes. I am talking about the test ads here.

const banner = new this.admob.BannerAd({
  adUnitId: 'ad-unit-id',
  size: AdSizeType.SMART_BANNER
});
await banner.show();

According Google's documentation here, the size of the SMART_BANNER should be Screen width x 32|50|90 dp.

But in my case, in my device, I get a 320*100 ad with black colored borders in right and left sides of the ad to cover up the area that doesn't get covered by the ad.

enter image description here

But Google says,

Smart Banners detect the width of the device in its current orientation and create the ad view that size.

Why is this behavior? What can I do to solve this?

vigamage
  • 1,975
  • 7
  • 48
  • 74

1 Answers1

1

When an image ad isn't large enough to take up the entire allotted space, the image will be centered, and the space on either side will be filled in.

Probably, its ok behavior. Please check this article for a full explanation.

Roman A.
  • 686
  • 5
  • 25