Mediation Waterfall
When BidMachine runs inside a mediation waterfall, you must notify the SDK of the waterfall outcome so it can report accurate win/loss signals.
Win/Loss Notifications
Call notifyWin() before showing the ad if BidMachine won the waterfall. Call notifyLoss() if another network won.
// Call before showing the ad if BidMachine won
ad.notifyWin()
// Call if another network won
ad.notifyLoss(winnerEcpm = 2.50, networkName = "admob")
networkName is optional (String?). Both methods are no-ops before the ad has loaded. They are available on all three ad unit classes: BannerAd, InterstitialAd, and RewardedAd.
When to Call
| Scenario | Method | Timing |
|---|---|---|
| BidMachine won | notifyWin() | Before calling show() |
| Another network won | notifyLoss() | As soon as outcome is known |