AdmobKitConfig class

Configuration passed to AdmobKit.initialize at application startup.

Constructors

AdmobKitConfig({List<AdPlacement>? placements, bool requestConsent = true, ConsentTestConfig? consentTestConfig, bool isPremium()?, AdTimeoutConfig timeouts = AdTimeoutConfig.standard, RetryScheduler? retryScheduler, AdAnalyticsTracker? analytics, AdDiagnosticsTracker? diagnostics, AdLogLevel? logLevel, List<String>? testDeviceIds, bool initializeNativeGma = true, Duration adTtl = const Duration(minutes: 50), int initialConcurrency = 1, int subsequentConcurrency = 1, Map<String, int>? placementCapacities})
Creates a new AdmobKitConfig instance.
const

Properties

adTtl Duration
The in-memory cache time-to-live before an ad is considered stale (defaults to 50 minutes).
final
analytics AdAnalyticsTracker?
The injected analytics tracker for impression-level revenue and funnel events.
final
consentTestConfig ConsentTestConfig?
The test configuration for Google UMP (e.g. simulating EEA geography).
final
diagnostics AdDiagnosticsTracker?
The injected diagnostics tracker for opt-in production debugging of slow networks/timeouts.
final
hashCode int
The hash code for this object.
no setterinherited
initialConcurrency int
The maximum concurrent in-flight ad downloads during initial app startup (defaults to 1).
final
initializeNativeGma bool
Whether to initialize the native Google Mobile Ads SDK.
final
isPremium bool Function()?
The universal entitlement gate callback.
final
logLevel AdLogLevel?
The console logging verbosity (defaults to verbose in debug mode, silent in release mode).
final
placementCapacities Map<String, int>?
The optional placement capacity / demand manifest (e.g. from compile-time manifest or dynamic config).
final
placements List<AdPlacement>?
The initial catalog of ad placements to register.
final
requestConsent bool
Whether to automatically execute Google UMP and Apple ATT consent before priming ads.
final
retryScheduler → RetryScheduler?
The custom retry scheduler policy (exponential backoff + jitter).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subsequentConcurrency int
The maximum concurrent in-flight ad downloads for subsequent ad preloads and auto-replenishments (defaults to 1).
final
testDeviceIds List<String>?
The list of AdMob test device hashed IDs.
final
timeouts AdTimeoutConfig
The adaptive network timeout policy (defaults to AdTimeoutConfig.standard).
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