Hi,
I’m trying to use AdMob in Corona SDK (v2014.2511) to show a banner with AdMob v2.
I followed very closely this official tutorial, but I get this error:
I/Corona (18724): event.type = banner
I/Corona (18724): event.name = adsRequest
I/Corona (18724): event.provider = AdMobProvider
I/Corona (18724): event.phase = loaded
I/Corona (18724): event.isError = true
I/Corona (18724): event.response = Something happened internally in the AdmobSD
K; for instance, an invalid response was received from the ad server.
I tried multiple tweaks but I always end up getting this “invalid response” error, and I don’t know what I can do.
My device is a 7" Samsung Galaxy Tab 3 (SM-T210 - ARM Neon, 600x1024 resolution) on Android 4.1.2
Here are the sample codes I use (which are the tutorial’s):
build.settings
settings = {
orientation = {
default = “landscapeRight”,
supported = { “landscapeRight”, “landscapeLeft” }
},
iphone = { … },
android = {
googlePlayGamesAppId = “xxxxxxxxxxxxxx”, – Secret
usesExpansionFile = true,
usesPermissions = {
“android.permission.INTERNET”,
“android.permission.VIBRATE”,
“android.permission.WRITE_EXTERNAL_STORAGE”,
“com.android.vending.BILLING”,
“com.android.vending.CHECK_LICENSE”
},
largeHeap = true
},
plugins = {
[“CoronaProvider.gameNetwork.google”] = {
publisherId = “com.coronalabs”,
supportedPlatforms = {
android = true
}
},
[“plugin.google.iap.v3”] = {
publisherId = “com.coronalabs”,
supportedPlatforms = {
android = true
}
},
[“plugin.google.play.services”] = {
publisherId = “com.coronalabs”
}
}
Ad snippet (.lua)
local ads = require(“ads”)
local adId = “ca-app-pub-xxxxxxxxxxxxxxx/xxxxxxxxx” – Secret
ads.init(“admob”, adId, function(event)
utils.printTable(event, “event”) – This prints the error shown above
end)
ads.show(“banner”, {
x = 0,
y = 0,
appId = adId,
test = true
})
What could have gone wrong here?
Thanks,
Aurélien