vungle.*

Type Library
Revision Release 2022.3683
Keywords ads, advertising, Vungle
Platforms Android, iOS

Overview

The Vungle plugin offers easy integration of Vungle video ads.

Important

This documentation is for the new Vungle Plugin(v6), click to view the Vungle legacy plugin

Notable changes from old plugin includes all event.type name being changed and moved to event.phase. Also these events have been removed: event.isAdPlayable, event.didDownload, event.completedView and vungle.init() has been simplified

Registration

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

Functions

Events

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 =
    {
        ["plugin.vungle.v6"] =
        {
            publisherId = "com.solar2d"
        },
    },
    iphone =
     {
             plist = {
                     NSUserTrackingUsageDescription = "This would allow the app to advertise better.",
                     SKAdNetworkItems = {
                             { SKAdNetworkIdentifier = "gta9lk7p23.skadnetwork" },
                     },
             },
     },
}
Note

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

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

Support