Integration
This page is describes how to import and configure the Bidon SDK.
Getting Started
To integrate Bidon SDK through Dependencies, firstly add repository fo Bidon SDK dependencies
- build.gradle.kts
repositories {
// For using Bidon Artifactory
maven { url = uri("https://artifactory.bidon.org/bidon") }
}
secondly add the following lines to your App-level build.gradle.kts
:
- build.gradle.kts
- build.gradle
dependencies {
// Bidon SDK Library
implementation("org.bidon:bidon-sdk:0.4.29")
// Available Demand Sources (AdNetworks)
implementation("org.bidon:admob-adapter:0.4.29.0")
implementation("org.bidon:applovin-adapter:0.4.29.0")
implementation("org.bidon:amazon-adapter:0.4.29.0")
implementation("org.bidon:bidmachine-adapter:0.4.29.0")
implementation("org.bidon:bigoads-adapter:0.4.29.0")
implementation("org.bidon:dtexchange-adapter:0.4.29.0")
implementation("org.bidon:inmobi-adapter:0.4.29.0")
implementation("org.bidon:gam-adapter:0.4.29.0")
implementation("org.bidon:meta-adapter:0.4.29.0")
implementation("org.bidon:mintegral-adapter:0.4.29.0")
implementation("org.bidon:mobilefuse-adapter:0.4.29.0")
implementation("org.bidon:unityads-adapter:0.4.29.0")
implementation("org.bidon:vungle-adapter:0.4.29.0")
}
dependencies {
// Bidon SDK Library
implementation 'org.bidon:bidon-sdk:0.4.29'
// Available Demand Sources (AdNetworks)
implementation 'org.bidon:admob-adapter:0.4.29.0'
implementation 'org.bidon:applovin-adapter:0.4.29.0'
implementation 'org.bidon:amazon-adapter:0.4.29.0'
implementation 'org.bidon:bidmachine-adapter:0.4.29.0'
implementation 'org.bidon:bigoads-adapter:0.4.29.0'
implementation 'org.bidon:dtexchange-adapter:0.4.29.0'
implementation 'org.bidon:inmobi-adapter:0.4.29.0'
implementation 'org.bidon:gam-adapter:0.4.29.0'
implementation 'org.bidon:meta-adapter:0.4.29.0'
implementation 'org.bidon:mintegral-adapter:0.4.29.0'
implementation 'org.bidon:mobilefuse-adapter:0.4.29.0'
implementation 'org.bidon:unityads-adapter:0.4.29.0'
implementation 'org.bidon:vungle-adapter:0.4.29.0'
}
Then sync project.
Initialize the SDK
Receive your APP_KEY
in the dashboard app settings. Init Bidon SDK in your MainActivity class.
BidonSdk
.registerDefaultAdapters()
// .registerAdapters("com.example.YourOwnAdapterClass") // for registering your custom Adapter (AdNetwork) by class name
// .registerAdapters(YourOwnAdapter()) // for registering your custom Adapter (AdNetwork) by instance. Instance should be initialized and ready to work
.setBaseUrl("https://api.bidon.org")
.setInitializationCallback {
// Bidon is initialized and ready to work
}
.initialize(
activity = this@MainActivity,
appKey = "APP_KEY",
)
Set logging.
BidonSdk.setLogLevel(Logger.Level.Verbose)
Set test mode.
BidonSdk.setTestMode(isTestMode = true)