I alerted engineering to this yesterday, but based on posts on Stack Overflow, this seems to be a bug in the Google SDK and I don’t know that there is a work around that we can do, other than watch for Google to release an update to their SDK and have us re-compile the plugin.
Just for fun has any one tried ad.show();ad.hide();ad.show() or some other technique to get the first ad out of the way?
A simple way to confirm this is to google: admob not showing first ad
There are frequent complaints about this problem from the native app developers. There are several suggestions on work arounds for this, like bringing the view to the front, tweaking the background color, being logged into G+, etc. There is another forum thread that I alerted engineering to last night:
But being the weekend, I wouldn’t expect them to see it until Monday at the earliest. But there isn’t a bug report that I’m aware of on this and I’ve asked for one to be filed. There might be a work around that works if it’s not too much of a hack. I’d still like to see someone try to do a show(), hide() and show() again on the first time to see if that works.
I’d still like to see someone try to do a show(), hide() and show() again on the first time to see if that works.
The sample project I submitted with the case above has a button where you can hide/show the ad.
Show/hide/show doesn’t fix the issue. If fact, every “first” show will make the ad invisible. What I mean is if you wait for the second ad to make the ad visible (*note1), and then press hide to hide it, the next time you show the ad it’s invisible again and you have to wait for the second ad to unhide it.
(*note1) You can also force the ad to become visible by turning the device off/on.
Weird. I was just updating an app, and tested Admob-V2 about an hour ago and ads show up.
On thing though. When I logged in to Admob today, they said that the new Admob was available and wanted me to upgrade.
It’s connected to AdSense/AdWords now. I upgraded and the apps get a new id (really long one). The older (shorter) legacy id’s should still work though.
I updated my app to use the new long id’s, and that’s what I’m currently testing.
I don’t get it… you mean you can see the ad now? I thought you just filed a bug report for this first-banner-not-shown problem?
I just saw you said “You can also force the ad to become visible by turning the device off/on.”, so I tried to turn off/on the device, like you said, I can see the ad.
But it still doesn’t show up after my scene change that calls ads.hide() & ads.show() again.
Anyway, I mean I am still seeing this problem consistently.
The problem is that the “first ad not shown” issue is not always present. I reported a test-case where is was reproducible, however this particular app I’m updating has never had that problem, and I can’t replicate the issue in a test case.
The only difference I see is that I use several ads.* API providers. iAd, Vungle and Admob. I’m also using a proprietary ad-network module to dynamically switch between the providers. Maybe my switching between the providers somehow “fixes” the problem.
I’m using today’s new build 2300 for my testing.
In your previous post I was assuming that you all of a sudden couldn’t see any ads at all with Admob V2. Even after the refresh period…
I didn’t really try to see if the ad would show after the first refresh period,
because it’s a BIG bug already if it’s not showing even if it will show after the first refresh period.
If it does not show up before the first refresh period, why would anyone use it at all?
There seems a new version of Admob SDK, has Corona updated to use it to see if the problem goes away? and what’s the plan for this bug? any chance that it’s Corona’s responsibility or totally Google’s?
It doesn’t say it’s the SDK problem, and people are offering solutions by tweaking Android code, which in turn is something Corona should also try to work out.
That’s true. Plus the fact that my Corona app I’m testing on has no problems!
It always shows the first ad…
The *only* difference is that it’s an Enterprise app. The test app where I was able to reproduce the problem uses the standard Corona Simulator build. I’ll convert it to Enterprise and see if it makes a difference…
I’m using Enterprise and I’ve double-checked that all references to the old Admob libraries are gone. I can also get the height of the ad which confirms it’s using the new library.
I just can’t understand why it works with this particular app.
I figured out why my app shows an Admob ad on the first call to ads.show(“banner”).
I’m using Google Play Game Services for leaderboard management (gameNetwork.* API), and there’s something within the initialization of that library which “fixes” the problem. When I remove the gameNetwork code from my app, the first ad is *not* shown until after the first refresh.
Note to other readers: This only affects Android devices, iOS behaves as it should.