Revenue
Every format reports the estimated revenue of each impression through onAdPaid, with an AdmobAdValue:
| Field | Description |
|---|---|
valueMicros | The value in millionths of currencyCode. 1_500_000 is 1.5 units. |
currencyCode | The ISO 4217 currency code, such as USD. |
precision | unknown, 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.