What is the size of Unity Banner Ad?

Unity currently supports two sizes for Banner Ads - 320 X 50 or 720 X 90 pixels (according to Implementing Banner ads ).

Here are my questions:

  • which size should I expect (and prepare for)? is it device dependent?
  • how to determine current size at runtime?

Still no additional info in documentation.

So we don’t know what banner size to expect or how find it out at runtime.

Then there is only one way to go - always expect the highest banner (90 px). And there will be a vacant space on screen when smaller banner is shown. Obviously, the smaller screen resolution the bigger issue this will be.

This is what I use in my games for 50 pixel banner height:

bannerHeight = Camera.main.ScreenToWorldPoint(new Vector3(1, 50 * Screen.dpi / 160, 1)).y - Camera.main.ScreenToWorldPoint(new Vector3(1, 0, 1)).y;

how can i change banner size please ??

I ended up using Google AdMob because I was unable to get the height of the banner.