Introduction
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.
Make your class conform to the FairBidDelegate and implement FairBidDelegate callbacks before starting the FairBidSDK.
iOS
typedef NS_ENUM(NSUInteger, FYBMediatedNetwork) {
FYBMediatedNetworkUnknown,
FYBMediatedNetworkAdColony,
FYBMediatedNetworkAdMob,
FYBMediatedNetworkAppLovin,
FYBMediatedNetworkChartboost,
FYBMediatedNetworkFacebook,
FYBMediatedNetworkHyprMX,
FYBMediatedNetworkInMobi,
FYBMediatedNetworkIronSource,
FYBMediatedNetworkMintegral,
FYBMediatedNetworkMyTarget,
FYBMediatedNetworkOgury,
FYBMediatedNetworkPangle,
FYBMediatedNetworkSnap,
FYBMediatedNetworkTapjoy,
FYBMediatedNetworkUnityAds,
FYBMediatedNetworkVerizon,
FYBMediatedNetworkVungle
};
@protocol FairBidDelegate <NSObject>
- (void)networkStarted:(FYBMediatedNetwork)network;
- (void)network:(FYBMediatedNetwork)network failedToStartWithError:(NSError *)error;
@end
public enum FYBMediatedNetwork : UInt {
case unknown = 0
case adColony = 1
case adMob = 2
case appLovin = 3
case chartboost = 4
case facebook = 5
case hyprMX = 6
case inMobi = 7
case ironSource = 8
case mintegral = 9
case myTarget = 10
case ogury = 11
case pangle = 12
case snap = 13
case tapjoy = 14
case unityAds = 15
case verizon = 16
case vungle = 17
}
public protocol FairBidDelegate : NSObjectProtocol {
func networkStarted(_ network: FYBMediatedNetwork)
func network(_ network: FYBMediatedNetwork, failedToStartWithError error: Error)
}