Mediation Started Callback

DT FairBid provides access to initialization information for integrated third-party SDK.

Two methods are available. The first informs that the initialization of the network SDK was successful, the second will inform of an error.

In both methods, the network name is an additional parameter. Checking the initialization status of the adapter and its network can be useful before performing an ad request for a given network.

Unity

public class MyListener : FairBidListener
{
    public void OnNetworkStarted(MediatedNetwork network)
    {
        // A specific network started successfully.
    }

    public void OnNetworkFailedToStart(MediatedNetwork network, string error)
    {
         // A specific network failed to start.
    }

    public void OnMediationStarted()
    {
        // FairBid is ready to mediate.
        // TPNs that need to be started as early as possible have been started
    }

    public void OnMediationFailedToStart(string error, string code)
    {
        // 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)        

    }
}

FairBid.SetFairBidListener(new MyListener());

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:

Android iOS
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 ⇧