Smart Banners

  • Smart Banners are responsive ad units that adjust their size to fit the width of the device screen across various devices and orientations.

  • They utilize three ad heights (32 dp, 50 dp, 90 dp) based on the screen height to ensure optimal display.

  • On phones, Smart Banners typically have a height of 50 dp in portrait and 32 dp in landscape, while on tablets, they are usually 90 dp in both orientations.

  • When using Smart Banners, developers need to specify AdSize.SmartBanner when creating a BannerView.

  • Consider using adaptive banners as a newer alternative for enhanced ad experiences.

Select platform: Android iOS Unity

Smart Banners are ad units that render screen-width banner ads on any screen size across different devices in either orientation. Smart Banners detect the width of the device in its current orientation and create the ad view that size.

Three ad heights are implemented in smart banners:

Ad height Screen height
32 dp ≤ 400 dp
50 dp > 400 dp and ≤ 720 dp
90 dp > 720 dp

Typically, Smart Banners on phones have a height of 50 dp in portrait and 32 dp in landscape. On tablets, height is normally 90 dp in both orientations.

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.

To use Smart Banners, specify the AdSize.SmartBanner for the ad size when creating a BannerView. For example:

// Create a Smart Banner at the top of the screen.
BannerView bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);