---
updatedAt: 2026-10-23T16:00:15.000Z
agentTools:
  projectIndex: https://docs.nefta.io/llms.txt
---

# MAX - iOS

Based on the MAX demo project: <https://github.com/AppLovin/AppLovin-MAX-SDK-iOS> you can check the Nefta custom adapter integration example here: <https://github.com/Nefta-io/NeftaMAXAdapter>.

## Include the SDK

### CocoaPods

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

```ruby
  pod 'NeftaMAXAdapter'
```

Run the following command:

```shell Shell
pod install --repo-update
```

<br />

### Swift Package

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

<Image align="center" width="800px" src="https://files.readme.io/ede1c8436eb4a21726b94bbf42773552e222e6903f307c4fab8475d0b876c0c8-image.png" />

<br />

### Manually

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

<br />

## Code integration

Plugin initialization should be done as soon as possible (for accurate session tracking) with:

```swift
import NeftaSDK

ALNeftaMediationAdapter.Init(appId: "5661184053215232", optimizationType: .optimized, onReady: { initConfig in
	print("[NeftaPluginMAX] Initialized, nuid: \(initConfig._nuid)")
})
```
```objectivec
#import "NeftaAdapter.h"

[ALNeftaMediationAdapter InitWithAppId: @"5661184053215232" optimizationType: OptimizationTypeOptimized onReady: ^(InitConfiguration *initConfig) {
   NSLog(@"NeftaPluginDI Initialized, nuid %@", initConfig._nuid);
}];
```

The callback is guaranteed to fire withing 5 seconds.