AppLovinMax_Unity_Integration - imobile/app-mediation GitHub Wiki
Integration
This page shows you how to download, import, and configure the AppLovin MAX Unity Plugin.
Download the Latest Unity Plugin
Unity Plugin 4.3.12 (Android 10.3.5 & iOS 10.3.7)
Tip: If you want to receive release updates, subscribe to the AppLovin MAX Unity Plugin GitHub repository.
Import the Plugin into Unity
Take the following steps to import the plugin you downloaded:
- In Unity, select Assets > Import Package > Custom Package…
- Choose the Unity Plugin file you downloaded.
- In the Import Unity Package dialog, click Import.
Requirements
- Either Unity 5.x.x, or Unity 2017.x.x or later.
- For Android builds, the AppLovin MAX plugin requires that you enable Jetifier. To enable Jetifier, take the following steps:
- In Unity, select Assets > External Dependency Manager > Android Resolver > Settings.
- In the Android Resolver Settings dialog that appears, check Use Jetifier.
- Click OK.
- For iOS builds:
- Your build will fail if you do not build with Xcode 12 or higher. The App Store now requires apps to be built with Xcode 12. AppLovin recommends that you update Xcode to version 12.5 or higher in order to stay ahead of anticipated minimum requirements.
- The AppLovin MAX plugin requires CocoaPods. Install CocoaPods by following the instructions at the CocoaPods Getting Started guide.
- Call all AppLovin MAX APIs on the main thread.
Enable Ad Review
Related Content: “Build Superior User Experience with MAX’s Ad Review” from AppLovin’s Blog.
To enable the MAX Ad Review service, add your AppLovin SDK Key in the AppLovin Integration Manager:
- In Unity, select AppLovin > Integration Manager. The AppLovin Integration Manager dialog appears.
- Check Enable MAX Ad Review and type your SDK Key in the field labeled AppLovin SDK Key.
- Close the AppLovin Integration Manager dialog.
※ SDK keyにつきましては弊社営業からご連絡いたします。
Integration Manager
※ AppLovin MAXと共に配信するネットワークについては弊社担当営業よりご提案させていただきます。
- メニューバーのAppLovin > Integration Managerを選択します
- 表示されたダイアログのMediated Networksから配信するネットワークのInstallボタンをクリックします
- AppLovin Quality ServiceのAppLovin SDK Keyの欄に弊社営業からご連絡したSDK Keyを入力します
Initialize the SDK
Attach the OnSdkInitializedEvent
event handler, then set the SDK key and initialize the SDK as soon as your app launches, as in the following code sample.
MaxSdkCallbacks.OnSdkInitializedEvent += (MaxSdkBase.SdkConfiguration sdkConfiguration) => {
// AppLovin SDK is initialized, start loading ads
};
MaxSdk.SetSdkKey("※SDK keyを入力してください");
MaxSdk.SetUserId("USER_ID");
MaxSdk.InitializeSdk();
※ SDK keyにつきましては弊社営業からご連絡いたします。