Interface AdValue

The monetary value earned from an ad.
Properties
amountMicros
The ad's amount in micro-units, where 1,000,000 micro-units equal one unit of the currency.
currencyCode
The value's ISO 4217 currency code.
precision
The precision of the reported ad value.

Properties


Readonly amountMicros

amountMicros: number
The ad's amount in micro-units, where 1,000,000 micro-units equal one unit of the currency.
Example
// Convert micro-units to a standard currency value string.
const standardAmount = (adValue.amountMicros / 1000000).toFixed(2);

Readonly currencyCode

currencyCode: string
The value's ISO 4217 currency code.
See also
  • ISO 4217 for a list of ISO 4217 currency codes (e.g., "USD", "EUR", "JPY").

Readonly precision

precision: PrecisionType
The precision of the reported ad value.