AdMob - Android

Based on the AdMob demo project: you can check Nefta custom adapter integration example here:

Include the SDK

You can download the latest Nefta custom adapter module from:

Extract the NeftaAMAdapter-release-x.y.z.aar and include it the /libs folder, so that it looks something like this:

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

implementation 'androidx.cardview:cardview:1.0.0
implementation "androidx.lifecycle:lifecycle-process:2.4.1"
implementation files('libs/NeftaAMAdapter-debug-1.0.0.aar')


Make sure that you're having all the required permissions declared:

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

Custom code integration

Since AdMob SDK doesn't preemptively initialize custom adapter, you have to do it yourself like this:

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

With this you're also ready to wire recording of game events like this:

  "anything else");

All done

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

You can also verify the correct SDK behavior through logs: <>.

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