BannerSize class

The size of a BannerAd. It's highly recommended to use BannerSize.ADAPTIVE when creating your BannerAds

Constructors

BannerSize(Size size)
Creates a new Banner Size. To create a custom size from height and width, use BannerSize.fromWH(width, height)
const
BannerSize.fromWH(double width, double height)
Creates banner ad with a custom size from width and height. Keep in mind that the ad may not fit well with custom sizes
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
The Size of the Banner.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

ADAPTIVE → const BannerSize
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.
Standart banner.
Creates a banner of 320wx50h
FULL_BANNER → const BannerSize
Full banner.
Creates a banner of 468wx60h
Avaiable only on Tablets
LARGE_BANNER → const BannerSize
Large banner.
Creates a banner of 320wx100h
LEADERBOARD → const BannerSize
LEADERBOARD.
Creates a banner of 728wx90h
MEDIUM_RECTANGLE → const BannerSize
Medium Rectangle.
Creates a banner of 320wx250h
Avaiable only on Tablets
SMART_BANNER → const BannerSize
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.