IronSource - Android

Based on IronSource demo project: https://github.com/ironsource-mobile/Mediation-Demo-Apps you can check Nefta custom adapter integration example here: https://github.com/Nefta-io/NeftaISAdapter-Android:

Include the SDK

You can download the latest Nefta custom adapter module from https://github.com/Nefta-io/NeftaISAdapter-Android/releases.

Extract the NeftaCustomAdapter-release-x.y.z.aar file and include it in your Android project in /libs folder, so that it will look something like this:

Then include this module as a dependency in your project build.gradle:

implementation 'androidx.cardview:cardview:1.0.0'
implementation files('libs/NeftaCustomAdapter-release.aar')

Permissions

Add the following permissions to your project's AndroidManifest.xml if you don't have them already:

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

All done

With this technical part, make sure you have Nefta mediation enabled in your LevelPlay configuration.

You can also verify the correct SDK behaviour through logs.

And you will start seeing Nefta test ads in your app.

Custom 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");

The most common reason for this is for the Events. After the code above you can start recording the events like this:

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