AdMob - Android

Based on the AdMob demo project: https://github.com/googleads/googleads-mobile-android-examples you can check Nefta custom adapter integration example here: https://github.com/Nefta-io/NeftaAMAdapter-Android:

Include the SDK

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

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-release-1.0.0.aar')

Permissions

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");
NeftaPlugin._instance.EnableAds(true);

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

NeftaPlugin.Events.AddProgressionEvent(
  NeftaEvents.ProgressionStatus.Completed,
  NeftaEvents.ProgressionType.Achievement,
  NeftaEvents.ProgressionSource.Boss,
  "SuperBoss",
  1L,
  "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 behaviour through logs.

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