AdValue 接口

通过广告获得的货币价值。
属性
amountMicros
广告的金额(以微单位表示),其中 1,000,000 个微单位等于一个货币单位。
currencyCode
相应价值的 ISO 4217 货币代码。
precision
报告的广告价值的精确度。

属性


Readonly amountMicros

amountMicros: number
广告的金额(以微单位表示),其中 1,000,000 个微单位等于一个货币单位。
示例
// Convert micro-units to a standard currency value string.
const standardAmount = (adValue.amountMicros / 1000000).toFixed(2);

Readonly currencyCode

currencyCode: string
相应价值的 ISO 4217 货币代码。
另请参阅
  • ISO 4217 如需查看 ISO 4217 货币代码列表(例如“USD”“EUR”“JPY”),请参阅此链接。

Readonly precision

precision: PrecisionType
报告的广告价值的精确度。