IronSource - iOS

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

Include the SDK

CocoaPods

To integrate Nefta SDK for IronSource Mediation add the following to your Podfile:

  pod 'NeftaISAdapter'

Run the following command:

pod install --repo-update

Manually

Or you can integrate it manually: https://docs.nefta.io/update/docs/manual-integration#/


Code integration

You should initialize the plugin as soon as possible (for session tracking) with:

ISNeftaCustomAdapter.Init(appId: "5759667955302400", sendImpressions: true, onReady: { initConfig in
   print("[NeftaPluginIS] Nefta Initialized nuid: \(initConfig._nui)")
})
#import "NeftaAdapter.h"

[ISNeftaCustomAdapter InitWithAppId: @"5661184053215232"
  sendImpressions: true,
  onReady: ^(InitConfiguration *initConfig) {
     NSLog(@"OnReady: skip optimization: %@", initConfig._nuid);
}];


Testing

To put the adapter in test mode and enable logs:

NeftaPlugin.EnableLogging(enable: true)
[NeftaPlugin EnableLogging: true];

For testing ads, you can retrieve the Nefta identifier from the device with: