Type Function Return value none Revision Release 2022.3683 Keywords ads, advertising, StartApp, hide See also startapp.show() startapp.*
Only applies to banner ads. Removes any currently showing banner ad from the screen.
startapp.hide()
local startapp = require( "plugin.startapp" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization print( event.provider ) -- Load an StartApp ad end end -- Initialize the StartApp plugin startapp.init( adListener, { appId="Your App ID" } ) -- Show banner ad. no need to pre-load banner startapp.show( "banner" , { adTag = "menu top banner", yAlign = "top", bannerType = "standard" } ) -- Sometime later, hide the banner startapp.hide()