Admob Banner Positioning

To display Admob add at a given coordinate (x,y) on the display, you can use for example:

        _mediumbannerView = new BannerView(_adUnitId, AdSize.MediumRectangle, x,y);

However, it’s not a good idea to do that, because the resolution, camera position, canvas size can affect the display. So, it’s not strange if you set the coordinate the ads display at the center of the screen, but on android phone, it’s display at a corner of the screen. So, it’s better to use something like:

        _mediumbannerView = new BannerView(_adUnitId, AdSize.MediumRectangle, AdPosition.Bottom);

The other option for AdPosition could be

AdPosition.Top
AdPosition.TopLeft
AdPosition.TopRight
AdPosition.Center
AdPosition.Bottom
AdPosition.BottomLeft
AdPosition.BottomRight


Discover more from Science Comics

Subscribe to get the latest posts sent to your email.

Leave a Reply

error: Content is protected !!