AdReward

data class AdReward(val amountMicros: Long, val type: String)(source)

Reward granted to the user after watching a rewarded ad.

Constructors

Link copied to clipboard
constructor(amountMicros: Long, type: String)

Properties

Link copied to clipboard

the reward amount in millionths. Mediated rewards can be fractional (iOS GMA exposes NSDecimalNumber); the previous Int rounded 0.5 to 1 and granted double. Micros are exact and match how AdValue.valueMicros already models money.

Link copied to clipboard

Reward type (e.g., "coins", "lives").

Functions

Link copied to clipboard

The amount as a whole number, or null if it is fractional.