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.
Properties
- adSizeType → AdSizeType?
-
final
- hashCode → int?
-
The hash code for this object.
no setterinherited
- height → int?
-
final
- runtimeType → Type?
-
A representation of the runtime type of the object.
no setterinherited
- width → int?
-
final
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.
inherited
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.
- smartBanner → const AdSize?
- The smart banner size. Smart banners are unique in that the width and height values declared here aren't used. At runtime, the Mobile Ads SDK will automatically adjust the banner's width to match the width of the displaying device's screen. It will also set the banner's height using a calculation based on the displaying device's height. For more info see the Android and iOS banner ad guides.