Skip to main content

Impression-Level Ad Revenue

You're able to use impression-level ad revenue data for any MMP or analytics platform using AdRevenueListener and its AdValue data.

data class AdValue(
val adRevenue: Double,
val currency: String = USD,
val precision: Precision
)
interface AdRevenueListener {
fun onRevenuePaid(ad: Ad, adValue: AdValue)
}

Each AdType AdListener already contains an AdRevenueListener.

interstitialAd.setInterstitialListener(
object : InterstitialListener {
...

override fun onRevenuePaid(ad: Ad, adValue: AdValue) {
logFlow.log("onRevenuePaid: ad=$ad, adValue=$adValue")
}
}
)