IronSource - Unity
Based on the IronSource demo project:https://github.com/ironsource-mobile/Mediation-Demo-Apps you can test the Nefta Custom adapter for Unity through IronSource SDK https://github.com/Nefta-io/NeftaISAdapter-Unity:

Include the SDK
The most convenient way to include the Nefta Custom Adapter for both Android and iOS is to download Unity package: https://github.com/Nefta-io/NeftaISAdapter-Unity/releases. 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.
Android
As long as you have NeftaPlugin-release-x.y.z.aar in the Plugins/Android folder things should work.
iOS
Similarly, here, the Unity build process should automatically include NeftaSDK by itself. As long as the Add to Embedded Binaries is checked:

Code integration
Before you can send game events through Unity you will have to connect to the plugin like this:
#if UNITY_IOS
private const string _neftaAppId = "5661184053215232";
#else // UNITY_ANDROID
private const string _neftaAppId = "5643649824063488";
#endif
Adapter.Init(_neftaAppId);
To ensure behaviour events will be correct it's recomended to do this as soon as possible.
After this, the adapter will be ready for game event recording, which you can call like this:
new ProgressionEvent(Type.Task, Status.Start) { _name = "tutorial", _value = 1}.Record();
Mediation events
To maximize ad earning with Nefta some events are required from Max mediation. Impression events are collected automatically if you don't explicitly disable them in in Adapter.Init(). You have to manually invoke OnExternalAdLoad and OnExternalAdFail for every ad type, example for banners:
_banner = new LevelPlayBannerAd(adUnitId, LevelPlayAdSize.BANNER, LevelPlayBannerPosition.TopCenter, null, true, true);
_banner.OnAdLoaded += OnAdLoaded;
_banner.OnAdLoadFailed += OnAdLoadFailed;
_banner.LoadAd();
private void OnAdLoadFailed(LevelPlayAdError error)
{
Adapter.OnExternalAdFail(Adapter.AdType.Banner, calculatedFloor, error.ErrorCode);
}
private void OnAdLoaded(LevelPlayAdInfo adInfo)
{
Adapter.OnExternalAdLoad(Adapter.AdType.Banner, calculatedFloor);
}
Testing
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();
With this identifier, you can configure various test behaviours in the dashboard.
Version
The easiest way to view SDK version is through menu: Window > Nefta > Inspect:
Updated 3 days ago