EasyAdUnitIds class

Per-platform AdMob ad unit IDs.

Only the IDs for the platform the app is running on are ever used, so it is safe to leave the other platform's IDs empty. An empty ID makes the corresponding format a no-op instead of throwing — this is what lets you ship a build with, say, no rewarded inventory yet.

Constructors

EasyAdUnitIds({String appOpenAndroid = '', String appOpenIos = '', String interstitialAndroid = '', String interstitialIos = '', String rewardedAndroid = '', String rewardedIos = '', String rewardedInterstitialAndroid = '', String rewardedInterstitialIos = '', String bannerAndroid = '', String bannerIos = ''})
Creates a set of ad unit IDs.
const
EasyAdUnitIds.test()
Google's official test ad unit IDs.
const

Properties

appOpen String
App Open ad unit ID for the current platform.
no setter
appOpenAndroid String
Android App Open ad unit ID.
final
appOpenIos String
iOS App Open ad unit ID.
final
Banner ad unit ID for the current platform.
no setter
bannerAndroid String
Android banner ad unit ID (the default for EasyBannerAd).
final
bannerIos String
iOS banner ad unit ID (the default for EasyBannerAd).
final
hashCode int
The hash code for this object.
no setterinherited
interstitial String
Interstitial ad unit ID for the current platform.
no setter
interstitialAndroid String
Android interstitial ad unit ID.
final
interstitialIos String
iOS interstitial ad unit ID.
final
rewarded String
Rewarded ad unit ID for the current platform.
no setter
rewardedAndroid String
Android rewarded ad unit ID.
final
rewardedInterstitial String
Rewarded interstitial ad unit ID for the current platform.
no setter
rewardedInterstitialAndroid String
Android rewarded interstitial ad unit ID.
final
rewardedInterstitialIos String
iOS rewarded interstitial ad unit ID.
final
rewardedIos String
iOS rewarded ad unit ID.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? appOpenAndroid, String? appOpenIos, String? interstitialAndroid, String? interstitialIos, String? rewardedAndroid, String? rewardedIos, String? rewardedInterstitialAndroid, String? rewardedInterstitialIos, String? bannerAndroid, String? bannerIos}) EasyAdUnitIds
Returns a copy with the given fields replaced.
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