Skip to main content

Revenue

Every format reports the estimated revenue of each impression through onAdPaid, with an AdmobAdValue:

FieldDescription
valueMicrosThe value in millionths of currencyCode. 1_500_000 is 1.5 units.
currencyCodeThe ISO 4217 currency code, such as USD.
precisionunknown, estimated, publisherProvided or precise.

Full-screen ads​

const ad = await RewardedAd.load(adUnitId)
ad.onAdPaid = (value) =>
analytics.logAdRevenue({
value: value.valueMicros / 1_000_000,
currency: value.currencyCode,
precision: value.precision,
})
ad.show()

With AdPreloader, set onAdPaid on the ad take() returns. With startAppOpenAds, set it in onWillShow.

Banners​

<BannerAd adUnitId={adUnitId} onAdPaid={(value) => logRevenue(value)} />

analytics.logAdRevenue and logRevenue stand for your analytics SDK.