Invalid response when trying to show an ad in Corona SDK

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 :wink:

  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 :wink:

 

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

suggest you grab a full logcat looking for messages from admob itself. (ie, not just Corona messages) 

fwiw, i have a landscape orientation app that fails to obtain banners on some devices.  admob will report that the requested image size is too big for the device screen in the logcat, and provide an error similar to yours in the event response.  maybe you’re experiencing something similar?

I was doing so, until magically, ads appeared in the game!

It’s been 3 days I have this problem, and now it works, even though I modified nothing.

Well, I can’t complain now, but I would have preferred this magical solution 3 days ago! :stuck_out_tongue:

Sorry for the inconvenience. If I find any clue about what happened here, I’ll post again.

I’m experiencing the same thing. 

I was able to make the banner ads load but when I tried adding code to show the an interstitial ad and recompiled the ads are not showing anymore and I get that error instead… :frowning:

I have been facing with exactly the same problem for my Samsung Galaxy S3 mini. I have tried it with 3 other android devices and all worked well, however, with that device, I am getting “Something happened internally in the AdmobSDK; for instance, an invalid response was received from the ad server.” response.

Ok, I am going to wait for 3 days, if nothing is resolved, come back here again :slight_smile:

It is really funny that my problem is resolved magically as well. Now ads appear in Samsung Galaxy S3 mini without changing any line of code.

Mine too. My guess here is admob sends data to the app which corona haven’t integrated in their code yet. 

suggest you grab a full logcat looking for messages from admob itself. (ie, not just Corona messages) 

fwiw, i have a landscape orientation app that fails to obtain banners on some devices.  admob will report that the requested image size is too big for the device screen in the logcat, and provide an error similar to yours in the event response.  maybe you’re experiencing something similar?

I was doing so, until magically, ads appeared in the game!

It’s been 3 days I have this problem, and now it works, even though I modified nothing.

Well, I can’t complain now, but I would have preferred this magical solution 3 days ago! :stuck_out_tongue:

Sorry for the inconvenience. If I find any clue about what happened here, I’ll post again.

I’m experiencing the same thing. 

I was able to make the banner ads load but when I tried adding code to show the an interstitial ad and recompiled the ads are not showing anymore and I get that error instead… :frowning:

I have been facing with exactly the same problem for my Samsung Galaxy S3 mini. I have tried it with 3 other android devices and all worked well, however, with that device, I am getting “Something happened internally in the AdmobSDK; for instance, an invalid response was received from the ad server.” response.

Ok, I am going to wait for 3 days, if nothing is resolved, come back here again :slight_smile:

It is really funny that my problem is resolved magically as well. Now ads appear in Samsung Galaxy S3 mini without changing any line of code.

Mine too. My guess here is admob sends data to the app which corona haven’t integrated in their code yet.