AdMob - iOS

Based on the MAX demo project: https://github.com/googleads/googleads-mobile-ios-mediation, you can check the Nefta custom adapter integration example here: https://github.com/Nefta-io/NeftaAMAdapter-iOS.

Include the SDK

CocoaPods

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

  pod 'NeftaAMAdapter'

Run the following command:

pod install --repo-update

Swift Package

File > Add Package Dependencies ... and enter repository: https://github.com/Nefta-io/NeftaAMAdapter-iOS.git



Manually

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


Code integration

Initialize the SDK as soon as possible (for accurate session tracking) with:

import NeftaSDK

GADNeftaAdapter.Init(appId: "5731414989340672", onReady: { initConfig in
   print("[NeftaPluginAM] Nefta initialized, nuid: \(initConfig._nuid)")
})
#import "NeftaAdapter.h"

[GADNeftaAdapter InitWithAppId: @"5661184053215232" onReady: ^(InitConfiguration *initConfig) {
  NSLog(@"Nefta initialized, nuid: %@", initConfig._nuid);
}];