Mediation Started Callback

DT FairBid provides access to initialization information about FairBid itself as well as each of the integrated third-party SDKs.

See networks section for more details on each individual third-party SDK.

Android

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.
            }

        })
Java
 FairBid.configureForAppId("AppId").withFairBidListener(new FairBidListener() {
    @Override
    public void mediationFailedToStart(String errorMessage, int errorCode) {
        // 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
    public void mediationStarted() {
        // FairBid is ready to mediate.
        // TPNs that need to be started as early as possible have been started
    }

    @Override
    public void onNetworkFailedToStart(MediatedNetwork network, String errorMessage) {
        // A specific network failed to start.
    }

    @Override
    public void onNetworkStarted(MediatedNetwork network) {
        // A specific network started successfully.
    }
});
}

Networks

A MediatedNetwork is essentially a pair containing the network name and its version. If you want to track a particular network, refer to the following table:

Network Marketing name Name used in callback Lazy Start* Contains Start Success Callback**
AdMob/Google Bidding admob

 

 
  •  
 
Amazon Publisher Services amazon
  •  
 
  •  
 
Applovin applovin
  •  
 

 

 
BIGO Ads bigoads
  •  
 
  •  
Chartboost chartboost
  •  
 
  •  
 
Google Ad Manager gam
  •  
 
  •  
 
HyprMX hyprmx
  •  
 
  •  
 
InMobi inmobi

 

 
  •  
 
IronSource iron_source
  •  
 
  •  
 
Meta Audience Network facebook
  •  
 
  •  
 
Mintegral mintegral

 

 
  •  
MyTarget mytarget

 

 

 

 
Ogury ogury

 

 

 

Pangle pangle

 

 
  •  
 
Unity Ads unityads
  •  
 
  •  
 
Verve Group verve

 

 
  •  
 
Liftoff Monetize vungle

 

 
  •  
 
  • Lazy Start- means FairBid only starts this TPN when asked to get an ad for the 1st time (instead when FairBid itself is starting
  • Contains Start Success Callback- means this network has an explicit callback reporting whether the start was successful. For all other networks we simply assume they are successfully started after we call their ‘start’ API.

Back to Top ⇧