AppLovin
- Supported Ad Formats
- Download and Integrate
- Set up AppLovin on the MoPub Dashboard
- Network Reporting and Auto CPM
- Migrate AppLovin from Custom Native Setup
- Test an Ad
- Additional Support
If you plan to use the MoPub SDK to load and display ads from AppLovin via mediation, use this article for integration instructions and information unique to the ad network. To learn more about how MoPub mediation works, refer to our MoPub Network Mediation article.
Supported Ad Formats
AppLovin currently supports the following ad formats. For support information, visit the AppLovin homepage.
MoPub Formats | AppLovin Ad Formats |
---|---|
Banner | Banner |
Medium Rectangle | Medium Rectangle |
Interstitial | Interstitial |
Rewarded Video | Rewarded Video |
Download and Integrate
To download the AppLovin adapters, navigate to the Mediation Integration Tool. You must also download the AppLovin SDK:
-
Download AppLovin SDK for Android
For Android, AppLovin adapters are released as an Android Archive (AAR) file starting with version 9.2.1.1. The AAR includes the required Manifest data for AppLovin. As a result, you no longer need to update your
AndroidManifest
manually for any generic data, such as permissions and Activities. Any other app-level placement configuration required by AppLovin must be manually entered into theAndroidManifest
.
For the latest download and integration instructions, consult AppLovin’s tutorials before you integrate the SDK and adapters.
Initialize the AppLovin SDK
Initialize the AppLovin SDK at app launch. Doing so helps maximize fill rate for the initial ad request to AppLovin:
```
// Android
AppLovinSdk.initializeSdk(context);
// iOS
[ALSdk initializeSdk];
// Unity
// Set SDK key
AppLovin.SetSdkKey("YOUR_SDK_KEY");
// Initialize SDK
AppLovin.InitializeSdk();
```
AppLovin SDK Key
-
Android: Publishers mediating AppLovin must add their AppLovin SDK key to the app’s
AndroidManifest
as a child of the<application></application>
tag, as shown:<meta-data android:name="applovin.sdk.key" android:value="YOUR_SDK_KEY" />
-
iOS: Go to your Project Settings. Select Info, click on one of the rows of Custom iOS Properties and click the + to add a new row. The key of the new row key should be
AppLovinSdkKey
and the value is shown on your AppLovin dashboard. -
Unity: To pass the AppLovin SDK Key from Unity, pass it as a
<key, value>
pair in theNetworkConfiguration Dictionary
in C# when initializing MoPub. The name of the key issdk_key
and value is provided by AppLovin. Refer to the MoPub sample code.
Set up AppLovin on the MoPub Dashboard
-
Package Name
is required. Without it, the AppLovin network configuration is considered invalid. Make sure your app’s package name is added against your app. -
Zone ID
is optional.
Network Reporting and Auto CPM
The following setup is required to take advantage of Auto CPM. To enable AppLovin network reporting and Auto CPM:
-
Navigate to the MoPub UI’s Networks tab. (Refer to these additional instructions that provide more detail for the remaining steps.)
-
In the Network settings page for AppLovin:
-
enable reporting access
-
provide the the Report Key
To find the Report Key, in the AppLovin navigation panel, navigate to Account and then Keys, and look for Report key.
-
-
Navigate to the Auto CPM preferences page and turn on Auto CPM.
Migrate AppLovin from Custom Native Setup
-
Transfer
Package Name
andZone ID
(if applicable) from the old custom native connection to the supported AppLovin instance. -
MoPub will initiate the following AppLovin mediation adapter class names to render the ads:
-
iOS
AppLovinBannerCustomEvent
AppLovinInterstitialCustomEvent
AppLovinRewardedVideoCustomEvent
-
Android
com.mopub.mobileads.AppLovinBanner
com.mopub.mobileads.AppLovinInterstitial
com.mopub.mobileads.AppLovinRewardedVideo
If you are manually entering these class names, migrate to the new network setup and pause the Custom Native Network. If you are using your own mediation adapter class names, make sure that both the old custom native network and the new AppLovin network UI are set up for backward compatibility.
-
Important: During migration, make sure that the custom native network and the AppLovin network are not both live at the same time because this may impact your revenue.
Test an Ad
As you test your SDK integrations and network setups, we recommend that you leverage test ad placements to ensure a consistent fill rate.
Refer to AppLovin documentation to set up test mode and for details about available error codes and potential resolutions.
With test mode enabled, you can request ads using the ad unit ID you created earlier for this purpose and receive an AppLovin test ad. Be sure to disable test mode after testing!
Additional Support
For inquiries and support, consult AppLovin’s support center.
Last updated December 03, 2020
TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.
© 2020 MoPub (a division of Twitter, Inc.)