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.3.0'
}

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" />

All done

With this technical part completed, make sure that you have the Nefta mediation enabled in your MAX Configuration.

You can also verify the correct SDK behaviour through logs.

With all this done, you will start seeing Nefta test ads in your app.


Code integration

IronSource SDK initialized custom adapters only when it needs to show an Ad. In case you would like to initialize Nefta SDK sooner, you have to do this manually with the following code:

NeftaPlugin.Init(getApplicationContext(), "yourApplicationId");

Events

Game events can be then recorded as follows:

NeftaPlugin.Events.AddProgressionEvent(
  NeftaEvents.ProgressionStatus.Completed,
  NeftaEvents.ProgressionType.Achievement,
  NeftaEvents.ProgressionSource.Boss,
  "SuperBoss",
  1L,
  "anything else");

Additional Features

List of optional additional features: https://docs.nefta.io/update/docs/advanced-features#/