vungle.getVersionString()

Type [Function][api.type.function]
Return value String
Revision Release 2022.3683
Keywords ads, advertising, Vungle
See also vungle.*

Overview

Returns the plugin and underlying SDK version numbers as a string.

Syntax

vungle.getVersionString()

Example

local vungle = require( "plugin.vungle.v6" )

local appID
if ( system.getInfo("platform") == "android" ) then
    appID = "YOUR_ANDROID_APP_ID"
else
    appID = "YOUR_IOS_APP_ID"
end

-- Vungle listener function
local function adListener( event )

    if ( event.phase == "init" ) then  -- Successful initialization
        print( event.provider )
    end
end

-- Initialize the Vungle plugin
vungle.init( appID, adListener )

print( vungle.getVersionString() )