Okay so I want to use AppNext advertisement in my game am being unsuccessful. Here’s my current code for the add:
local appnext = require( "plugin.appnext" ) local fullscreenPlacementID fullscreenPlacementID = "my ID here" local videoConfig = { ShowClose = true, CloseDelay = 5.5 } local fullscreenAdKey = appnext.createAd( "fullscreen", fullscreenPlacementID, videoConfig ) appnext.loadAd( fullscreenAdKey ) if ( appnext.adIsLoaded( fullscreenAdKey ) ) then appnext.showAd( fullscreenAdKey ) else errorshow=display.newText("Cant fetch add! ",error.x,error.y,"mycustomfont.ttf", 50 ) end
As you can see in the code above, I display “Cant fetch add!” in case of error. When I test the app on mobile, it still displays “Cant fetch add!”.
Can the reason be AppNext not providing ads till my application is live in the stores? Or am I doing something wrong?
Thanks!