Skip to main content
Version: 4.2.0

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(winnerEcpm:networkName:) 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

ScenarioMethodTiming
BidMachine wonnotifyWin()Before calling show(from:)
Another network wonnotifyLoss()As soon as outcome is known