Hello, I’m trying to make sense of revmob plugin. The apps are in test mode, but I get no banners shown neither on IOS nor on Android.
Build settings plugins and permissions
plugins = { ["plugin.revmob"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", }, }, }
Here I try to load banner ad
local revmob = require( "plugin.revmob" ) local placementID = "xxxxxxxxxxxxxxxxxxxx" local app = "xxxxxxxxxxxxxxxxxxx" if system.getInfo( "platform" ) == 'android' then placementID = "xxxxxxxxxxxxxxxxxxxx" app = "xxxxxxxxxxxxxxxxxxxxx" end local function adListener( event ) if ( event.phase == "sessionStarted" ) then -- Successful initialization -- Load a RevMob ad revmob.load( "banner", placementID ) elseif ( event.phase == "loaded" ) then -- The ad was successfully loaded print( event.type ) -- Show the ad revmob.show( placementID, { yAlign="bottom" } ) elseif ( event.phase == "failed" ) then -- The ad failed to load print( event.type ) print( event.isError ) print( event.response ) end end -- Initialize RevMob revmob.init( adListener, { appId=app } ) revmob.startSession()
I’m getting this in adb logcat:
RevMob: RevMob did not answer as expected. (400)
Any ideas why this does not work?