ADAPTIVE constant

BannerSize const ADAPTIVE

Adaptive banners are the next generation of responsive ads, maximizing performance by optimizing ad size for each device. Improving on smart banners, which only supported fixed heights, adaptive banners let developers specify the ad-width and use this to determine the optimal ad size.

To pick the best ad size, adaptive banners use fixed aspect ratios instead of fixed heights. This results in banner ads that occupy a more consistent portion of the screen across devices and provide opportunities for improved performance.

For more info, read the documentation

Adaptive Banner

Implementation

static const BannerSize ADAPTIVE = BannerSize(Size(-1, -1));