I’ve encountered problem when trying to implement AdMob ads to my application.
Every time when I try to load an ad I get the same error:
I/Corona ( 4432): adListener type interstitial
I/Corona ( 4432): adListener name adsRequest
I/Corona ( 4432): adListener provider AdMobProvider
I/Corona ( 4432): adListener phase loaded
I/Corona ( 4432): adListener isError true
I/Corona ( 4432): adListener response Something happened internally in the AdmobSDK; for instance, an invalid response w
as received from the ad server.
Here’s the code:
local ads = require("ads") local function adListener(event) for k,v in pairs(event) do print("adListener ", k, v) -- so you see everything you get end end ads.init("admob", 'ca-app-pub-1241820889739638/3252518306', adListener ) ads.load("interstitial", { testMode = true } ) ads.show("interstitial", { testMode = true } )
Perhaps it’s time you posted the contents of the device’s console log. If you’re on Android, you will use “adb logcat” to do this. If you need help with this, please read:
Yes, downloaded that code, changed line 8 to my ID, built it with 2015.2646 and default debug keystore.
I’m testing on 2 devices - Xiaomi MI3, Xiaomi MiPad
The logcat output says the same as above:
I/Ads ( 9022): CsiReporterFactory: CSI is not enabled. No CSI reporter created.
I/Ads ( 9022): Starting ad request.
I/Ads ( 9022): Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitia
l ad.
I/Ads ( 7545): CsiReporterFactory: CSI is not enabled. No CSI reporter created.
E/Ads ( 7545): JS: Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png (data:text/html,chrom
ewebdata:12)
W/Ads ( 9022): There was a problem getting an ad response. ErrorCode: 0
W/Ads ( 9022): Failed to load ad: 0
I/Corona ( 8694): adListener type banner
I/Corona ( 8694): adListener name adsRequest
I/Corona ( 8694): adListener provider AdMobProvider
I/Corona ( 8694): adListener phase loaded
I/Corona ( 8694): adListener isError true
I/Corona ( 8694): adListener response Something happened internally in the AdmobSDK; for instance, an invalid response was received from the ad server.
Perhaps it’s time you posted the contents of the device’s console log. If you’re on Android, you will use “adb logcat” to do this. If you need help with this, please read:
Yes, downloaded that code, changed line 8 to my ID, built it with 2015.2646 and default debug keystore.
I’m testing on 2 devices - Xiaomi MI3, Xiaomi MiPad
The logcat output says the same as above:
I/Ads ( 9022): CsiReporterFactory: CSI is not enabled. No CSI reporter created.
I/Ads ( 9022): Starting ad request.
I/Ads ( 9022): Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitia
l ad.
I/Ads ( 7545): CsiReporterFactory: CSI is not enabled. No CSI reporter created.
E/Ads ( 7545): JS: Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png (data:text/html,chrom
ewebdata:12)
W/Ads ( 9022): There was a problem getting an ad response. ErrorCode: 0
W/Ads ( 9022): Failed to load ad: 0
I/Corona ( 8694): adListener type banner
I/Corona ( 8694): adListener name adsRequest
I/Corona ( 8694): adListener provider AdMobProvider
I/Corona ( 8694): adListener phase loaded
I/Corona ( 8694): adListener isError true
I/Corona ( 8694): adListener response Something happened internally in the AdmobSDK; for instance, an invalid response was received from the ad server.