AdWithView class abstract

Base class for inline view-based ads (BannerAd, NativeAd) displayed via AdWidget.

Inheritance
Implementers

Constructors

AdWithView({required String adUnitId, ResponseInfo? responseInfo})

Properties

adId → int
Internal O(1) lookup ID managed by AdInstanceManager.
finalinherited
adUnitId → String
Ad Unit ID associated with this ad instance.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
hasRecordedImpression → bool
Whether AdMob/Mediation has recorded an impression (onAdImpression) for this ad. Used to protect Show Rate (Impressions / Matched Requests) by rescuing unconsumed matches.
no setter
impressionAt ↔ DateTime?
Timestamp when onAdImpression (or onAdShowedFullScreenContent) was first recorded.
getter/setter pairinherited
isDisposed → bool
Whether this ad instance has already been disposed.
no setterinherited
isLoaded → bool
Whether the native view has finished loading and is ready for 0ms instant rendering.
no setter
isLoading → bool
Whether a network load request is currently in-flight for this ad.
no setter
isUnconsumedMatch → bool
True when the ad has matched (onAdLoaded) but has not yet recorded an impression. Disposing an unconsumed match wastes a Matched Request and lowers Show Rate.
no setter
lastClickDurationMs ↔ int?
Elapsed time in milliseconds from impressionAt to the most recent onAdClicked event, used to detect accidental clicks (duration_ad in ad_click / iaa_click).
getter/setter pairinherited
loadedAt → DateTime?
Timestamp when the ad finished loading (used for TTL freshness checks in pools).
no setter
responseInfo ↔ ResponseInfo?
Response metadata populated once the ad is loaded.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → Future<void>
Frees native memory and removes the ad from AdInstanceManager.
inherited
load() → Future<void>
Loads the ad asynchronously via the native bridge.
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