AdsAdUnitIds class
All ad unit IDs used by AdsBootstrap.
An ad type is optional. If its value is omitted, empty, or has no ID for the current platform, that ad type is simply unavailable. This lets an app ship a banner-only or rewarded-only configuration without special cases.
Use PlatformAdIds.debugAndroid and PlatformAdIds.debugIos for Google's platform-specific test IDs when developing. PlatformAdIds.debug remains a shared fallback for older configurations. Never use production IDs while testing.
Constructors
- AdsAdUnitIds({PlatformAdIds? banner, PlatformAdIds? interstitial, PlatformAdIds? rewarded, PlatformAdIds? native, PlatformAdIds? appOpen, PlatformAdIds? directInterstitial})
-
const
Properties
- appOpen → PlatformAdIds?
-
final
-
final
- directInterstitial → PlatformAdIds?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interstitial → PlatformAdIds?
-
final
- isEmpty → bool
-
True when no ad unit ID was supplied at all.
no setter
- native → PlatformAdIds?
-
final
- rewarded → PlatformAdIds?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toConfig(
{bool? bannerEnabled, bool? interstitialEnabled, bool? nativeEnabled, bool? appOpenEnabled, bool? rewardedEnabled, bool? directInterstitialEnabled, bool adsEnabled = true, int interstitialAfter = 3, int maxRetryAttempts = 2, Duration retryBaseDelay = const Duration(seconds: 10), bool preloadEnabled = true, Duration connectivityRecheckInterval = const Duration(minutes: 3)}) → AdsConfig -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited