AdEvent class
Represents a standardized ad event for analytics logging (e.g. Firebase Analytics, AppsFlyer, Adjust).
Constructors
Properties
- adError → AdError?
-
Error details if the ad failed to show.
final
- adUnitId → String?
-
The Ad Unit ID associated with the ad.
final
- currencyCode → String?
-
Revenue currency code (e.g. 'USD') for AdEventType.paid events.
final
-
extras
→ Map<
String, dynamic> ? -
Additional custom metadata.
final
- format → AdFormat
-
The format of the ad (banner, native, interstitial, etc.).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCustomAd → bool
-
Whether this event was generated from a custom/house ad.
no setter
- isError → bool
-
Whether this event represents a load or presentation error.
no setter
- isPaid → bool
-
Whether this event is an impression-level revenue paid event.
no setter
- loadAdError → LoadAdError?
-
Error details if the ad failed to load.
final
- precision → PrecisionType?
-
Revenue precision type for AdEventType.paid events.
final
- revenueValue → double?
-
Returns revenue value in standard currency units (e.g. dollars instead of micros).
no setter
- rewardItem → RewardItem?
-
Reward item details for AdEventType.rewardEarned events.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
Timestamp when the event occurred.
final
- type → AdEventType
-
The specific lifecycle or engagement event.
final
- valueMicros → double?
-
Revenue value in micros for AdEventType.paid events.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited