AdSize class
AdSize represents the size of a banner ad.
There are six sizes available, which are the same for both iOS and Android. See the guides for banners on Android and iOS for additional details.
- Implementers
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
- smartBanner → AdSize
-
Ad units that render screen-width banner ads on any screen size across different devices in either orientation on Android.
no setter
- smartBannerLandscape → AdSize
-
Ad units that render screen-width banner ads on any screen size across different devices in landscape on iOS.
no setter
- smartBannerPortrait → AdSize
-
Ad units that render screen-width banner ads on any screen size across different devices in portrait on iOS.
no setter
Static Methods
-
getAnchoredAdaptiveBannerAdSize(
Orientation orientation, int width) → Future< AnchoredAdaptiveBannerAdSize?> - Ad units that render screen-width banner ads on any screen size across different devices in either Orientation.
-
getSmartBanner(
Orientation orientation) → SmartBannerAdSize - Ad units that render screen-width banner ads on any screen size across different devices in either Orientation.
Constants
- The standard banner (320x50) size.
- fullBanner → const AdSize
- The full banner (468x60) size.
- largeBanner → const AdSize
- The large banner (320x100) size.
- leaderboard → const AdSize
- The leaderboard (728x90) size.
- mediumRectangle → const AdSize
- The medium rectangle (300x250) size.