Migrating to SDK 10.5.1

Direct Integration

Integration via Gradle

  1. Include mavenCentral in your top-level build.gradle file:

    allprojects { 
        repositories { 
            mavenCentral() 
        } 
    }
    
  2. Add the following line to the dependencies element in your application module’s build.gradle.

    implementation 'com.inmobi.monetization:inmobi-ads-kotlin:10.5.1'
    	

Manual Integration

Alternatively, you can download the latest version of InMobi’s Kotlin SDK and copy the library to your application module’s libs/directory.

  1. 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"
    
  2. Follow the next steps from Add & Verify Dependencies.

Integration via Mediation

If Mediation Partner has not rolled out support for 10.5.1, follow the instructions below:

Via Mediation

  1. Include mavenCentral in your top-level build.gradle file:

    allprojects { 
        repositories { 
            mavenCentral() 
        } 
    }
    
  2. 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 "org.inmobi.monetization:inmobi-ads-kotlin:10.5.1"
    

Via Unity Mediation Plugin

  1. 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 "org.inmobi.monetization:inmobi-ads-kotlin:10.5.1"
    

Follow the next steps from Additional Configurations.

On This Page

Last Updated on: 10 Aug, 2022