Documentation

​
​

Development

User Acquisition

Monetization

Industry

LevelPlay SDK - iOS

Unity SDK

Android SDK

iOS SDK

Adobe AIR SDK

Flutter SDK

React Native SDK

LevelPlay SDK - iOS

Unity LevelPlay
​
​
iOS SDK
  • Get started
    • Get started with iOS
    • iOS SDK integration
      • Migrate to LevelPlay Init API
    • LevelPlay SDK integration with Swift
    • Integrate Ad Quality SDK
    • Custom adapters
    • LevelPlay SDK Changelog
    • Ad Quality SDK Changelog
  • Regulations and settings
  • Ad formats
  • Mediated networks
  • Test your integration
  1. Grow your game
  2. Unity LevelPlay
  3. LevelPlay SDK
  4. LevelPlay SDK for iOS developers

Migrate to LevelPlay Init API

Transition to the LevelPlay initialization APIs to support multiple ad unit APIs, starting from SDK version 8.4.0.
Read time 2 minutes
Last updated 6 months ago

This guide explains how to transition to the LevelPlay initialization APIs to allow the use of multiple ad unit APIs.

Prerequisites

The minimum supported SDK is 8.4.0. You can download the latest SDK here.

Initialize the SDK

To initialize the LevelPlay SDK, follow these steps:
  1. Call the LevelPlay init API using the appKey and user ID if relevant.
  2. Define the completion handler success and failure.
// Create a request builder with app key. Add User ID if available. LPMInitRequestBuilder *requestBuilder = [[LPMInitRequestBuilder alloc] initWithAppKey:@"appKey"]; [requestBuilder withUserId:@"UserId"]; // Build the initial request LPMInitRequest *initRequest = [requestBuilder build]; // Initialize LevelPlay with the prepared request [LevelPlay initWithRequest:initRequest completion:^(LPMConfiguration *_Nullable config, NSError *_Nullable error){ if(error) { // There was an error on initialization. Take necessary actions or retry. } else { // Initialization was successful. You can now create ad objects and load ads. } }];
// Create a request builder with app key. Add User ID if available. let requestBuilder = LPMInitRequestBuilder(appKey: "appKey") .withUserId("UserId") // Build the initial request let initRequest = requestBuilder.build() // Initialize LevelPlay with the prepared request LevelPlay.initWith(initRequest) { config, error in if let error = error { // There was an error on initialization. Take necessary actions or retry. } else { // Initialization was successful. You can now create ad objects and load ads. }}

Initialization result

Success
– triggered when the initialization is completed successfully. After you receive this indication, you can create and load the ad.
Error
– the configuration was not retrieved successfully and ads cannot be loaded. It is recommended to try and initialize the LevelPlay SDK later (when internet connection is available, or when the failure reason is resolved)

Legacy

Ad Unit (new)

ClassIronSourceLevelPlay
APIinitWithAppKeyinitWithRequest
setUserIDShould be set as part of LPMInitRequestBuilder
CallbacksonInitializationCompletecompletion
-error

LevelPlay mediation demo app

The Integration Demo application demonstrates how to integrate the Ad Unit APIs in your app.
Download the relevant Demo Application
You can now implement the new ad units APIs.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Prerequisites

    • Initialize the SDK

    • Initialization result

    • LevelPlay mediation demo app


Report a problem with this page