Android SDK Integration

Integrating the SDK

The easiest way to integrate SDK to your Android project is to use Maven Repository.

Step 1: Simply open your project's app level build.gradle file and add the EMA SDK as dependency:

implementation 'net.empower.mobile.ads:empower-mobile-ads:4.2.0'

Step 2: Add the following line to your project's project level build.gradle file:

maven { url "https://maven.empower.net/release" }
maven {
url "https://pubsdk-bin.criteo.com/publishersdk/android"
content {
includeGroup "com.criteo.publisher"
}
}

Update Your AndroidManifest.xml

Declare that your app is an AdManager app by adding following lines to AndroidManifest.xml:

<meta-data android:name="com.google.android.gms.ads.AD_MANAGER_APP" android:value="true" />

Build Settings

Go to your app level build.gradle file and add the following code inside android tag to support Java 8 features:

compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}

If you are using Kotlin in your project, add following lines to your app level build.gradle file:

kotlinOptions {
jvmTarget = '1.8'
freeCompilerArgs = ['-Xjvm-default=compatibility']
}

Integrating Mediation Networks

You need to follow the AdMob's documentation on the following mediation networks to integrate their SDKs.

AdColony: Please follow the Step 3.

Chartboost: Please follow the Step 3 and the Step 4.

Facebook: Please follow the Step 3 and the Step 4.

MoPub: Please follow the Step 3 and the Step 4.

Unity: Please follow the Step 3.

App Lovin: Please follow the Step 3.

Vungle: Please follow the Step 3.