MAX - Android

Based on the MAX demo project: https://github.com/AppLovin/AppLovin-MAX-SDK-Android you can check Nefta custom adapter integration example here: https://github.com/Nefta-io/NeftaMAXAdapter-Android.

Include the SDK

Gradle

Add the following repository to the settings.gradle:

dependencyResolutionManagement {
    repositories {
        ...
        maven { url 'https://maven.nefta.app/android-sdk' }
    }
}

Then add the libraries to your app build.gradle:

dependencies {
    ...
    implementation 'com.nefta:nefta-sdk-max:4.4.5'
}

Manually

Or you can integrate manually: https://docs.nefta.io/update/docs/manual-android-integration#/


Permissions

In order for the SDK to work it requires permissions for the network which you need to add to your project AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Code integration

You initialize the plugin with:

NeftaMediationAdapter.InitWithAppId(getApplicationContext(), "5632029345447936", (InitConfiguration config) -> {
   Log.i("NeftaPluginMAX", "Nefta initialized, nuid: " + config._nuid);
});