Hi,
I’ve just started to look at ads and figured I would start with AdMob V2. I have followed the guides, etc and I get banner ads showing just fine.
I can’t seem to get any interstitials to show though - it always says Error, no ad received
I’m just using the line
ads.show( “interstitial”, { appID=interstitialAppID } )
could it be that there actually aren’t any ads to show? I expected to at least see one ad as least once on my testing but nothing.
Is anybody else having this problem? are there any gotchas that are getting me?
Is there anyone from Australia that can confirm they have been able to get an interstitial?
My code is:
local ads = require( "ads" ) -- only testing on iphone atm local bannerAppID = "ca-app-pub-8791317398328677/8533047xxx" --for your iOS banner local interstitialAppID = "ca-app-pub-8791317398328677/7056314xxx" --for your iOS interstitial local adProvider = "admob" local function adListener( event ) --(more on this later) local msg = event.response -- Quick debug message regarding the response from the library print( "Message from the ads library: ", msg ) if ( event.isError ) then print( "Error, no ad received", msg ) else print( "Ah ha! Got one!" ) end end ads.init( adProvider, bannerAppID, adListener ) ads.show( "interstitial", { appID=interstitialAppID } )