Mediation Started Callback

DT FairBid provides access to initialization information about FairBid itself and each of the integrated third-party networks (mediated networks).

Run the following API to set up a single listener that monitors mediation events, confirms network readiness, and efficiently handles initialization in your app.

For more detailed initialization information for each mediated network, see Tracking Network Initialization.

Kotlin
fairBid.withFairBidListener(object : FairBidListener {
            override fun mediationFailedToStart(errorMessage: String, errorCode: Int) {
                // The SDK was unable to start any of the mediated networks.
                // That includes DT-X
                // Nothing to do. Contact support if this error persists (errorCode will be used to troubleshoot the problem)
            }

            override fun mediationStarted() {
                // FairBid is ready to mediate.
                // TPNs that need to be started as early as possible have been started
            }

            override fun onNetworkFailedToStart(network: MediatedNetwork, errorMessage: String) {
                // A specific network failed to start.
            }

            override fun onNetworkStarted(network: MediatedNetwork) {
                // A specific network started successfully.
            }

        })

Tracking Network Initialization

Mediated networks can be initialized either when FairBid starts or later when the first ad request is made (Lazy Start). With either initialization method, some networks provide an explicit callback to report whether network initialization was successful.

The following tables summarize whether Lazy Start is available for each network and the dedicated Start Success callback availability.

MEDIATED NETWORK
NAME IN CALLBACK
LAZY START
START SUCCESS CALLBACK

AdMob/Google Bidding

ADMOB

check

Amazon Publisher Services

AMAZON

check

check

Applovin

APPLOVIN

check

BIGO Ads

BIGOADS

check

check

Chartboost

CHARTBOOST

check

check

Google Ad Manager

GAM

check

check

HyprMX

HYPRMX

check

check

InMobi

INMOBI

check

IronSource

IRON_SOURCE

check

check

Liftoff Monetize

VUNGLE

check

Meta Audience Network

FACEBOOK

check

check

Mintegral

MINTEGRAL

check

Ogury

OGURY

Pangle

PANGLE

check

Unity Ads

UNITYADS

check

check

Verve Group

VERVE

check

Last updated