Invalid response when trying to show an ad in Corona SDK

137 views
Skip to first unread message

Aurélien Defossez

unread,
Apr 2, 2015, 4:50:43 AM4/2/15
to google-adm...@googlegroups.com
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 = {
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

Andrew Brogdon (Mobile Ads SDK Team)

unread,
Apr 2, 2015, 4:10:42 PM4/2/15
to google-adm...@googlegroups.com
We don't normally handle issues relating to the Corona SDK here -- it's just not something we use that much, and we're not geared up to help with it.  That said, if there's a problem with our SDK, you should see some additional stuff in the logs from our code.  The lines will be tagged with "Ads," so you can filter for them.

You might have more luck with this on the Corona support forum, which you can find here:


Thanks!

-Andrew

Aurélien Defossez

unread,
Apr 3, 2015, 5:56:02 AM4/3/15
to google-adm...@googlegroups.com
Ok, I'll try on their forums,

Thanks!
Aurélien
Reply all
Reply to author
Forward
0 new messages