- 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|
|Medium Rectangle||Medium Rectangle|
|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:
For Android, AppLovin adapters are released as an Android Archive (AAR) file starting with version 184.108.40.206. The AAR includes the required Manifest data for AppLovin. As a result, you no longer need to update your
AndroidManifestmanually for any generic data, such as permissions and Activities. Any other app-level placement configuration required by AppLovin must be manually entered into the
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
AndroidManifestas 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
AppLovinSdkKeyand 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 the
NetworkConfiguration Dictionaryin C# when initializing MoPub. The name of the key is
sdk_keyand value is provided by AppLovin. Refer to the MoPub sample code.
Set up AppLovin on the MoPub Dashboard
Package Nameis required. Without it, the AppLovin network configuration is considered invalid. Make sure your app’s package name is added against your app.
Zone IDis 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:
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
Zone 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:
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!
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.)