Hi All,
I’m trying to put a banner ad in a game app using the Appodeal plugin.
Does my code look right in my main.lua?
Thanks for the help!
Neil
[lua]
– SDK Initialization
local appodeal = require( “plugin.appodeal” )
local function adListener( event )
if ( event.phase == “init” ) then – Successful initialization
print( event.isError )
end
end
– Initialize the Appodeal plugin
appodeal.init( adListener, { appKey="", disableWriteExternalPermissionCheck=true, supportedadTypes={“banner” } } )
– Banner Integration
appodeal.show( “banner”, { yAlign=“bottom” } )
[/lua]