Bidapp ads kotlin multiplatform demo for Android and IOS
Complete integration instructions and usage guide for the Bidapp Ads Kotlin Multiplatform library can be found here.
To use Bidapp multiplatform, implement the library in the build.gradle.kts file within the commonMain section:
// Latest version 0.3.0
sourceSets {
commonMain.dependencies {
implementation("io.bidapp:kmp:+")
}
}
On iOS, you also have to add the Bidapp pod to your Podfile:
target 'iosApp' do
pod 'bidapp/SDK'
end
For detailed usage of the library, please follow the link provided in the documentation.
The demo directory contains a shared module and test applications for Android and iOS
-
Go to the Bidapp dashboard, add a new application, and connect advertising networks.
For this demo, a test App ID for AdMob is set in the AndroidManifest for Android and in the Info.plist for iOS. -
In the build.gradle.kts file of the shared module, you can configure the adapters according to the settings of the advertising networks on the Bidapp dashboard.
Example for Android:
plugins {
android {
//...
dependencies {
implementation ("io.bidapp.networks:unity:latest")
implementation ("io.bidapp.networks:liftoff:latest")
implementation ("io.bidapp.networks:admob:latest")
}
}
}
Example for IOS:
plugins {
cocoapods {
//...
pod("bidapp/AdMob")
pod("bidapp/Unity")
pod("bidapp/Liftoff")
//...
}
}
- Set in the Settings file located in the shared module the pubId for Android and iOS. Additionally, you can enable or disable:
Test mode, Logging
const val pubId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
const val isEnableTestMode = true
const val isEnableLogging = true
Email: support@bidapp.io