Skip to main content

Integration

Static Badge

This page is describes how to donwload, import and configure the Bidon SDK.

Download

To integrate the Bidon SDK through CocoaPods, first add the following lines to your Podfile:

# Mirror repo for Bidon SDK podspecs
# source 'https://github.com/bidon-io/CocoaPods_Specs.git'
source 'https://cdn.cocoapods.org/'

pod 'Bidon', '~> 0.4.7'

# For usage of Demand Sources uncomment following lines

# pod 'BidonAdapterAmazon'
# pod 'BidonAdapterBigoAds'
# pod 'BidonAdapterMintegral'
# pod 'BidonAdapterAppLovin'
# pod 'BidonAdapterBidMachine'
# pod 'BidonAdapterGoogleAdManager'
# pod 'BidonAdapterGoogleMobileAds'
# pod 'BidonAdapterDTExchange'
# pod 'BidonAdapterUnityAds'
# pod 'BidonAdapterMetaAudienceNetwork'
# pod 'BidonAdapterVungle'
# pod 'BidonAdapterInMobi'

Then run the following on the command line:

pod install --repo-update

Manual

  1. Download Bidon SDK v0.4. After you download the SDK unzip it and add Bidon.xcframework into your project.

  2. Add the following linker flag to the build settings at: Target → Build Settings → Linking → Other Linker Flags: -ObjC

  3. Download and install adapters and Ad Networks SDK.

Ad NetworkAdapterSDK Guide
AmazonBidonAdapterAmazonGuide
BigoAdsBidonAdapterBigoAdsGuide
MintegralBidonAdapterMintegralGuide
AppLovinBidonAdapterAppLovinGuide
BidMachineBidonAdapterBidMachineGuide
GoogleMobileAdsBidonAdapterGoogleMobileAdsGuide
GoogleMobileAds (Ad Manager)BidonAdapterGoogleAdManagerGuide
DTExchangeBidonAdapterDTExchangeGuide
UnityAdsBidonAdapterUnityAdsGuide
MetaBidonAdapterMetaAudienceNetworkGuide
VungleBidonAdapterVungleGuide
InMobiBidonAdapterInMobiGuide

Initialize the SDK

Receive your APP_KEY in the dashboard app settings.

tip

We highly recommend to initialize the Bidon SDK in app delegate's application:applicationDidFinishLaunching: method.

import Bidon

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate
{
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
{
// Register all available demand source adapters.
BidonSdk.registerDefaultAdapters()
// Configure Bidon
BidonSdk.logLevel = .debug
// Initialize
BidonSdk.initialize(appKey: "APP KEY") {
// Load any ads
}


Configure Ad Types