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:

  1. In Unity, select Assets > Import Package > Custom Package…
  2. Choose the Unity Plugin file you downloaded.
  3. 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:
    1. In Unity, select Assets > External Dependency Manager > Android Resolver > Settings.
    2. In the Android Resolver Settings dialog that appears, check Use Jetifier.
    3. Click OK.
  • For iOS builds:
  • 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:

  1. In Unity, select AppLovin > Integration Manager. The AppLovin Integration Manager dialog appears.
  2. Check Enable MAX Ad Review and type your SDK Key in the field labeled AppLovin SDK Key.
  3. Close the AppLovin Integration Manager dialog.

※ SDK keyにつきましては弊社営業からご連絡いたします。

Integration Manager

※ AppLovin MAXと共に配信するネットワークについては弊社担当営業よりご提案させていただきます。

  1. メニューバーのAppLovin > Integration Managerを選択します
  2. 表示されたダイアログのMediated Networksから配信するネットワークのInstallボタンをクリックします
  3. 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につきましては弊社営業からご連絡いたします。