blank interstitial ads on android device

hi,i am using only interstitial ads in my app from admob.for some reason when i try 

my ads on real device i get only blank ads on my device??

can anyone tell me where i went wrong?

i my corona simulator output i get these three warnings:-

1.)coronaprovider.ads.admob is not configured in build.settings

(i checked with the doc. i am completely sure i did it correctly)

2.)the ads provider(admob) is not available on the simulator(so i tried on real device)

3.)ads library is not available on this platform

ads = require( "ads" ) appIdAdmob = "ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxx" adProvider = "admob" function adListener( event ) if ( event.isError ) then else ads.show("interstitial") end end --then in create(scene) ads.init( "admob", appIdAdmob, adListener ) ads.load("interstitial") --then in show(scene(phase=="did")) ads.show( "interstitial" ) i am sure my build.setting is right can anyone tell me where i went wrong??

Did you change your ca-app-pub-xxxxxxxxxxxx/xxxxx string to your ID that you got in the AdMob portal?

You cannot test AdMob in the simulator. Those warnings are normal. You need to test on device.  Also you can put some print statements in the adListener() function go see what values event is returning. This could give you a clue as to what the problem is.

Also look at your device’s console log and see if there are any errors or warnings there. See:

http://docs.coronalabs.com/guide/basics/debugging/index.html

Rob

idk why but for some reason my laptop hangs whenever i connect my device :stuck_out_tongue:

so i used corona.shell just to see if there would be any error(just for fun)

and i got these errors of admob

Can you post your build.settings file please?

Rob

-- -- For more information on build.settings see the Corona SDK Build Guide at: -- https://docs.coronalabs.com/guide/distribution/buildSettings -- settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-167.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, }, }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, }, }

hi,i finally found my mistake,my appID was incorrect.that is why i was getting blank ads.:slight_smile:

Did you change your ca-app-pub-xxxxxxxxxxxx/xxxxx string to your ID that you got in the AdMob portal?

You cannot test AdMob in the simulator. Those warnings are normal. You need to test on device.  Also you can put some print statements in the adListener() function go see what values event is returning. This could give you a clue as to what the problem is.

Also look at your device’s console log and see if there are any errors or warnings there. See:

http://docs.coronalabs.com/guide/basics/debugging/index.html

Rob

idk why but for some reason my laptop hangs whenever i connect my device :stuck_out_tongue:

so i used corona.shell just to see if there would be any error(just for fun)

and i got these errors of admob

Can you post your build.settings file please?

Rob

-- -- For more information on build.settings see the Corona SDK Build Guide at: -- https://docs.coronalabs.com/guide/distribution/buildSettings -- settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-167.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, }, }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", }, }, }

hi,i finally found my mistake,my appID was incorrect.that is why i was getting blank ads.:slight_smile: