N2I Unity Ads Standalone plugin (alongside the other ad SDKs)
Introduction
The N2I Unity Ads Standalone plugin allows your APK to support ads with N2I.
Unity package integration
Import into your Unity project the N2I Unity Ads Standalone plugin:
- Download the latest release.
- Import the
.unitypackagefile by selecting the Unity menu option Assets > Import package > Custom Package and importing all items. - Resolve dependencies by selecting the Unity menu option Assets > External Dependency Manager (or Mobile Dependency Resolver) > Android Resolver > Resolve.
- In your script, check if the device is a N2I device and if so, use our API.
- Build your Unity project.
API
It's the same API as the Google Mobile Ads Unity plugin, except the C# namespace is N2IUnityAdsStandalone instead of GoogleMobileAds.
The static method N2IUnityAdsStandalone.Api.MobileAds.Utils.GetDeviceIsN2I() allows you to know if the current device is a N2I device, to be able to have only one APK for both N2I and common use-cases.
Was this page helpful?