Skip to main content
Version: 4.2.0

Revenue Tracking

Every load and impression event delivers an AdInfo object to listener/delegate callbacks.

AdInfo Fields

FieldTypeDescription
placementIdStringPlacement ID from the BidMachine dashboard
priceDoubleeCPM ÷ 1000 (e.g. 0.005 = $5 CPM)
precisionRevenuePrecisionConfidence level of the reported price
infoMap<String, String>Raw metadata; known keys: networkName, dsp, ecpm

Revenue Precision

ValueDescription
ExactReal-time auction price
EstimatedEstimated based on historical data
UnknownPrecision could not be determined

Revenue Callback

The revenue-paid callback (onAdRevenuePaid on Kotlin, didPayRevenue on Swift, RevenuePaid on C#) is fired when a billable impression is recorded — use it to forward revenue data to your analytics platform.

override fun onAdRevenuePaid(adInfo: AdInfo) {
analytics.trackRevenue(
adUnit = adInfo.placementId,
revenue = adInfo.price,
precision = adInfo.precision.name,
network = adInfo.info["networkName"],
)
}