Documentation

​
​

Development

User Acquisition

Monetization

Industry

LevelPlay SDK - Unity

Unity SDK

Android SDK

iOS SDK

Adobe AIR SDK

Flutter SDK

React Native SDK

LevelPlay SDK - Unity

Unity LevelPlay
​
​
Unity SDK
  • Get started
    • Get started with Unity
    • Unity Package integration
      • Migrate to 9.0.0+
      • Migrate to LevelPlay Init API
      • Maven Central migration guide
      • Migrate from Unity Ads to LevelPlay
    • Unity developer tools
    • Integrate Ad Quality SDK for Unity
    • Custom adapters
    • LevelPlay 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 Unity developers

Migrate to LevelPlay Init API

Transition to the LevelPlay initialization APIs to support the new Ad Unit APIs, starting from SDK version 8.4.0 and required in SDK version 9.0.0+.
Read time 2 minutes
Last updated 2 months ago

This guide explains how to initialize LevelPlay when transitioning to the new Ad Unit APIs.

Prerequisites

The minimum supported SDK is 8.4.0. You can download the latest SDK by installing the latest Ads Mediation package in Unity Package Manager, by upgrading from the Network Manager, or following instructions here.

Initialize the SDK

To initialize the LevelPlay SDK, follow these steps:
  1. Remove the callbacks and ad formats that previously referenced the legacy IronSource APIs.
  2. Implement callbacks for initialization success and failure.
  3. Call the LevelPlay init API using the appKey and user ID if relevant.
  4. Create Banner, Interstitial, and Rewarded ad objects.
At the top of your C# script, add
using Unity.Services.LevelPlay;
. Then, inside your MonoBehaviour's
Start()
method, register the listeners and initialize the SDK:
void Start(){ // Register OnInitSuccess and OnInitFailed listeners LevelPlay.OnInitSuccess += SdkInitializationCompletedEvent; LevelPlay.OnInitFailed += SdkInitializationFailedEvent; // Call the LevelPlay init API using the appKey and user ID if relevant LevelPlay.Init("YOUR_APPKEY", "UserId");}

LevelPlay Init Listeners

OnInitSuccess
– triggered when the initialization is completed successfully. After you receive this indication, you can create and load the ad.
OnInitFailed
– 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
APIinitInit
APIsetUserIDShould be set as part of the Init
CallbacksonInitializationCompleteOnInitSuccess
-OnInitFailed

LevelPlay Demo Scene/Sample App

The Unity Demo Scene/Sample application demonstrates how to integrate the Ad Unit APIs in your app. In the Unity Package Manager package details view, go to Samples and import the LevelPlay Sample.
You can now implement the new Ad Unit 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

    • LevelPlay Init Listeners

    • LevelPlay Demo Scene/Sample App


Report a problem with this page