vungle.*

Type CoronaProvider
Library ads.*
Revision 2014.2478
Keywords ads, advertising, vungle
Availability Starter, Basic, Pro, Enterprise
Platforms Android, iOS

Overview

The Vungle plugin offers easy integration of Vungle video ads using the ads library and ads.init().

Registration

Using Vungle video ads requires a free account — please register before proceeding.

Functions

Project Settings

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

settings =
{
    plugins =
    {
        ["CoronaProvider.ads.vungle"] =
        {
            publisherId = "com.vungle",
        },
    },      
}

Important

If targeting Android and using Corona SDK version 2014.2264 or greater, you will also need to add Google Play Services to the plugins table of build.settings:

settings =
{
        plugins =
        {
                ["plugin.google.play.services"] =
                {
                        publisherId = "com.coronalabs"
                },
        },
}

Android

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

    android =
    {
        usesPermissions =
        {
            "android.permission.INTERNET",
            "android.permission.WRITE_EXTERNAL_STORAGE",
            "android.permission.ACCESS_NETWORK_STATE",
        },
    },

Sample

https://github.com/Vungle/vungle-resources/tree/master/Corona-resources/coronaSampleApp

Support