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
Manually
Or you can integrate it manually: https://docs.nefta.io/update/docs/manual-ios-integration-1#/
Code integration
The plugin has to be manually initialized, preferably as soon as possible to have good game events:
import NeftaSDK
let plugin = NeftaPlugin.Init(appId: "5661184053215232")
#import "NeftaAdapter.h"
NeftaPlugin_iOS *plugin = [NeftaPlugin InitWithAppId: @"5661184053215232"];
In the dashboard you can access the AppId which you need to enter in the code above.
Events
Game events can be then recorded as follows:
plugin.Events.AddSpendEvent(category: NeftaEvents.ResourceCategory.PremiumCurrency,
method: NeftaEvents.SpendMethod.Upgrade)
plugin.Events.AddProgressionEvent(status: NeftaEvents.ProgressionStatus.Start,
type: NeftaEvents.ProgressionType.GameplayUnit,
source: NeftaEvents.ProgressionSource.CoreContent,
name: "area-4",
value: 21)
[plugin.Events AddSpendEventWithCategory: ResourceCategoryPremiumCurrency
method: SpendMethodUpgrade];
[plugin.Events AddProgressionEventWithStatus: ProgressionStatusStart
type: ProgressionTypeGameplayUnit
source: ProgressionSourceCoreContent
name: "area-4"
value: 21];
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:
let nuid = plugin.ShowNuid()
NSString *nuid = [plugin ShowNuid];
With this, you can set custom ad behaviour in the dashboard.
All done
With this technical part, make sure you have Nefta mediation enabled in your AdMob configuration.
Updated 2 days ago