AdRevenue class
The class to store Ad Revenue data. You can set:
- adRevenue - amount of money received via ad revenue (it cannot be negative);
- currency - Currency in which money from adRevenue is represented;
- adType - ad type;
- adNetwork - ad network. Maximum length is 100 symbols;
- adUnitId - id of ad unit. Maximum length is 100 symbols;
- adUnitName - name of ad unit. Maximum length is 100 symbols;
- adPlacementId - id of ad placement. Maximum length is 100 symbols;
- adPlacementName - name of ad placement. Maximum length is 100 symbols;
- precision - precision. Example: "publisher_defined", "estimated". Maximum length is 100 symbols;
- payload - arbitrary payload: additional info represented as key-value pairs. Maximum size is 30 KB.
Constructors
-
AdRevenue({required Decimal adRevenue, required String currency, AdType? adType, String? adNetwork, String? adUnitId, String? adUnitName, String? adPlacementId, String? adPlacementName, String? precision, Map<
String, String> ? payload}) -
Creates an object with information about income from in-app purchases. The parameters
adRevenue
,currency
are required.
Properties
- adNetwork → String?
-
final
- adPlacementId → String?
-
final
- adPlacementName → String?
-
final
- adRevenue → Decimal
-
final
- adType → AdType?
-
final
- adUnitId → String?
-
final
- adUnitName → String?
-
final
- currency → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
payload
→ Map<
String, String> ? -
final
- precision → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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