This document describes how to integrate the Next Android SDK into your project.
In project's root-level build.gradle
add our repository in allprojects
section:
allprojects {
repositories {
// ... your repos
maven { url 'https://sdk.brainlyads.com/android/repository' }
}
}
For gradle 7.0+ add dependency to your settings.gradle
instead of build.gradle
in dependencyResolutionManagement
section:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
jcenter()
mavenCentral()
// ... your repos
maven { url 'https://sdk.brainlyads.com/android/repository' }
}
}
Add nextsdk dependency to module-level build.gradle
:
dependencies {
implementation 'io.nextmillennium:nextsdk:2.3.0'
}
Add the following <meta-data>
tags to your AndroidManifest.xml inside <application>
:
<application>
<meta-data android:name="io.nextmillennium.nextsdk.API_KEY"
android:value="[PUT_NMM_API_KEY_HERE]" />
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="[PUT_GOOGLE_APPLICATION_ID_HERE]" />
</application>
You can get NMM_API_KEY by contacting Next Millennium Media. Visit our website for more information.
Note: The Next Millennium SDK wraps Google's APIs as a fallback for bids not placed with other preferred buyers to ensure maxim revenue. Next Millennium will create and manage the Google account for your company.
A new GOOGLE_APPLICATION_ID will be generated for you by Next Millennium Media.
It is required to completely remove Google Mobile Ads SDK from your project to prevent conflicts and potential fail builds.