Include mavenCentral in your top-level build.gradle file:
allprojects {
repositories {
mavenCentral()
}
}
Add the following line to the dependencies element in your application module’s build.gradle.
implementation 'com.inmobi.monetization:inmobi-ads-kotlin:10.6.2'
Alternatively, you can download the latest version of InMobi’s Kotlin SDK and copy the library to your application module’s libs
/directory.
Please add the following dependencies to your modules ‘build.gradle’ for integrating inmobi-ads-kotlin in addition to the dependencies mentioned in the support portal.
implementation "androidx.core:core-ktx:1.5.0"
implementation "org.jetbrains.kotlin:kotlin-reflect:1.5.30"
implementation "com.inmobi.omsdk:inmobi-omsdk:1.3.17.1"
If Mediation Partner has not rolled out support for 10.6.2, follow the instructions below:
Include mavenCentral in your top-level build.gradle file:
allprojects {
repositories {
mavenCentral()
}
}
Use the exclude statement in modules build.gradle.
implementation ("com.xxxxxxxxx.mediation:inmobi-adapter:10.X.X") {
exclude group: "com.inmobi.monetization", module: "inmobi-ads"
}
implementation "com.inmobi.monetization:inmobi-ads-kotlin:10.6.2"
After Mediation Unity Plugin refresh, please change the following in Assets/Plugins/Android/mainTemplate.xml
.
implementation ("com.xxxxxxxxx.mediation:inmobi-adapter:10.X.X") {
exclude group: "com.inmobi.monetization", module: "inmobi-ads"
}
implementation "com.inmobi.monetization:inmobi-ads-kotlin:10.6.2"
Follow the next steps from Additional Configurations.
By installing this SDK update, you agree that your Children Privacy Compliance setting remains accurate or that you will update that setting, whenever there is a change in your app's audience. You may update the app's Children Privacy Compliance settings at https://publisher.inmobi.com/my-inventory/app-and-placements.