CloudXRevenueData class

Impression-level revenue observed by the publisher, passed to CloudX.reportRevenueData.

platform, revenue and adFormat are required; everything else is optional metadata. revenue is per-impression revenue in currency units: google_mobile_ads reports valueMicros on both platforms, so divide by 1,000,000 first.

Constructors

CloudXRevenueData({required CloudXRevenuePlatform platform, required double revenue, required String adFormat, String? currencyCode, CloudXRevenuePrecision? precision, String? networkName, String? adUnitId, String? thirdPartyAdPlacementId, String? creativeId, String? networkPlacement, String? countryCode, String? userSegment})
Creates revenue data for one impression.
const

Properties

adFormat → String
Raw ad format string (e.g. banner, mrec, interstitial, rewarded).
final
adUnitId → String?
Mediation-platform ad unit id, if known. Report the id you passed to the arbiter bid so CloudX attributes the realized price to that ad unit.
final
countryCode → String?
User's country (ISO 3166-1 alpha-2), if known.
final
creativeId → String?
Creative id from the ad network, if known.
final
currencyCode → String?
ISO 4217 currency code of revenue (e.g. USD), if known.
final
hashCode → int
The hash code for this object.
no setterinherited
networkName → String?
Winning ad network name, if known.
final
networkPlacement → String?
Network placement identifier, if known.
final
platform → CloudXRevenuePlatform
Mediation platform that reported the impression.
final
precision → CloudXRevenuePrecision?
Precision of revenue, if known.
final
revenue → double
Revenue for this impression in currencyCode units. Non-finite values are rejected and the report returns false.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thirdPartyAdPlacementId → String?
Network-side ad unit or placement id, if known.
final
userSegment → String?
User segment string, if known.
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