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
    • Unity developer tools
    • Integrate Ad Quality SDK for Unity
    • Custom adapters
      • Integrate your network as a custom adapter
        • Register your network as a custom adapter
        • Build a custom adapter for Unity
        • Test your network adapter
    • 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

Build a custom adapter for Unity

Develop a custom adapter for Unity by creating an XML file that wraps your Android and iOS integrations, allowing publishers to add it to their Unity projects.
Read time 1 minute
Last updated 3 months ago

As many LevelPlay publishers are using Unity engine to develop their games, we recommend you to create a dedicated interface for Unity. Our best practice is doing so by using an XML file. Alternatively, if your publishers are working with Unity manual integration, they can add the native artefacts directly to their Unity project. 
Follow these instructions to provide a Unity adapter for your publishers: 
  1. Create custom adapters for Android. 
  2. Create custom adapters for iOS.
  3. Create an XML file that wraps your Android & iOS integrations, as explained below.

Create your custom adapter XML

The XML file will wrap both your Android and iOS custom adapters. Make sure to save your XML file as:
IS<your\_network\_name>CustomAdapterDependencies.xml
Your publishers should add your custom adapter XML file to any Editor library in their Unity project. You can learn more about Unity integration process here.

Example

<dependencies> <androidPackages> <androidPackage spec=your-SDK-gradle> <repositories> <repository>your-network-repository-url</repository> </repositories> </androidPackage> </androidPackages> <androidPackages> <androidPackage spec=Your-Adapter-gradle> <repositories> <repository>Your-adapter-repository-url</repository> </repositories> </androidPackage> </androidPackages> <iosPods> <iosPod name=adapter_name version=your-pod-version> <sources> <source>https://github.com/CocoaPods/Specs</source> </sources> </iosPod> </iosPods></dependencies>

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
    • Create your custom adapter XML

      • Example


Report a problem with this page