applovin.*

Type Library
Revision Current Public Release (2016.2992)
Keywords ads, advertising, AppLovin
Platforms Android, iOS, tvOS
Sample https://github.com/coronalabs/plugins-sample-applovin

Overview

The AppLovin plugin allows developers to monetize users through AppLovin static interstitial, video interstitial, and rewarded video ads.

Notes
  • Once you are registered, obtain your SDK key from the AppLovin developer portal. From the Account section, expand the Account menu on the left side, select Keys, and your SDK key should be revealed.

  • Native ads are not supported at this time.

  • For monetization through the AppLovin plugin, Corona Labs takes a revenue share in the form of a fixed 5% flat rate, but the revenue you see in your dashboard is all yours.

  • Apps are automatically added to the AppLovin developer portal when you include this plugin within the project, require() it, and call applovin.init(). A basic example of this is located within the applovin.init() documentation.

  • In order to use test ads with AppLovin, access the AppLovin developer portal and enable test mode for the app.

  • AppLovin ads for tvOS will always be videos (no static interstitials). Also note that if the ad is associated with a tvOS app, clicking the remote button while the ad displays may take you to the app's entry in the store.

Important

If you make changes to the ad settings in the AppLovin developer portal, you must also email applovin-support@coronalabs.com with a summary of your changes. This ensures that your ads and associated preferences will be delivered consistently.

Registration

To begin, please register with AppLovin. Once you have access to the AppLovin developer portal, you can view your apps, enable test mode, select ad preferences, and more.

Syntax

local applovin = require( "plugin.applovin" )

Functions

Events

Project Settings

To use this plugin, add two entries into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

settings =
{
    plugins =
    {
        ["plugin.applovin"] =
        {
            publisherId = "com.coronalabs"
        },
        ["plugin.google.play.services"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }
        },
    },
}
Note

For Android, the following permissions/features are automatically added when using this plugin:

  • "android.permission.INTERNET"
  • "android.permission.ACCESS_NETWORK_STATE"
  • "android.permission.WRITE_EXTERNAL_STORAGE"

Support