AdMob - Unity

Based on Google AdMob Unity Demo App: you can test the Nefta Custom adapter integration through Google AdMob SDK: <>:

Include the SDK

The most convenient way to include the Nefta Custom Adapter for both Android and iOS is to download the Unity package: Which you import through Assets > Import Package > Custom Package...

After which you will be presented with the following dialog:

Feel free to customize this as much as you want, based on the needs of your project.


Things should work as long as you have NeftaPlugin-release-x.y.z.aar in the Plugins/Android folder.


Similarly, here, the Unity build process should automatically include NeftaSDK by itself. As long as the Add to Embedded Binaries is checked:


To access configuration go to menu: Window > Nefta > Select Nefta Configuration:

Which will select the configuration:

Here you should enter your Nefta App Id from the dashboard.

Code integration

Before using the adapter you have to initialize it with:

// Nefta Custom Adapter Initialization

It is also good to do this as soon as possible in the application lifecycle.
After this, the adapter will be ready to be used by AdMob SDK or for game event recording, which you can call like this:

Nefta.Adapter.Record(new ProgressionEvent()
	 _type = Type.Task,
   _source = Source.CoreContent,
   _status = Status.Complete,
   _value = 2,
   _customString = "area42"


In the NeftaConfiguration scriptable object you have Is Logging Enabled checkbox. If you have it checked, the debug version of plugins with logging.

To easily get the Nefta identifier for testing ads from the device you can use:

var nuid = Nefta.Adapter.ShowNuid();

Which will copy the id to the clipboard, show it as toast, and return it in the code.

With this identifier, you can configure various test behaviors in the dashboard.