CloudXAd class

Represents metadata about a loaded ad.

Corresponds to:

  • iOS: CLXAd
  • Android: CloudXAd

Contains information about ad placement, bidder, and revenue. All fields are optional as they may not be available depending on the ad lifecycle state (e.g., during load failures).

Constructors

CloudXAd({String? placementName, String? placementId, String? bidder, String? externalPlacementId, double? revenue})
Creates a CloudXAd instance.
const
CloudXAd.fromMap(Map<Object?, Object?>? map)
Creates a CloudXAd from a map received from the platform channel.
factory

Properties

bidder String?
The ad network/bidder that won the auction (e.g., "meta", "admob")
final
externalPlacementId String?
The external placement ID from the ad network (network-specific ID)
final
hashCode int
The hash code for this object.
no setteroverride
placementId String?
The unique identifier for this placement
final
placementName String?
The placement name configured in the CloudX dashboard
final
revenue double?
The eCPM revenue for this ad impression in USD
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? placementName, String? placementId, String? bidder, String? externalPlacementId, double? revenue}) CloudXAd
Creates a copy of this CloudXAd with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this CloudXAd to a map for platform channel communication.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override