Type Function Return value String Revision Release 2024.3703 Keywords ads, advertising, Vungle See also vungle.*
Returns the plugin and underlying SDK version numbers as a string.
vungle.getVersionString()
local vungle = require( "plugin.vungle" ) local appID, placementID1, placementID2 if ( system.getInfo("platform") == "android" ) then appID = "YOUR_ANDROID_APP_ID" placementID1 = "YOUR_ANDROID_PLACEMENT_ID_1" placementID2 = "YOUR_ANDROID_PLACEMENT_ID_2" else appID = "YOUR_IOS_APP_ID" placementID1 = "YOUR_IOS_PLACEMENT_ID_1" placementID2 = "YOUR_IOS_PLACEMENT_ID_2" end -- Initialize the Vungle plugin local initParams = appID .. "," .. placementID1 .. "," .. placementID2 vungle.init( "vungle", initParams ) print( vungle.getVersionString() )