Hi
I have a bug in my AdMob implementation that I've also been able to replicate in the basic AdMob BannerExample Android app.
The only modifications I've made the example app (see
Dropbox link) are to add in the AdListener code from the "Ad events" section here:
https://developers.google.com/admob/android/banner#ad_eventsIf a user taps a banner advert, all the AdListener events are called as expected. However, if the user taps the *same* banner a second time, only the adOpened event is called. AdClosed is not called.
We have code that depends on this being called to resume exection of our apps' game loop. Once a new banner loads, adOpened/Closed will be called on the first tap, but not on subsequent taps.
Here's the logcat for those events:
2023-09-29 10:46:50.874 6573-6573 AdMobBannerExample com...oid.gms.example.bannerexample V onAdImpression
2023-09-29 10:46:50.875 6573-6573 AdMobBannerExample com...oid.gms.example.bannerexample V onAdLoaded
2023-09-29 10:47:00.777 6573-6573 AdMobBannerExample com...oid.gms.example.bannerexample V onAdOpened
2023-09-29 10:47:03.954 6573-6573 AdMobBannerExample com...oid.gms.example.bannerexample V onAdClosed
2023-09-29 10:47:06.378 6573-6573 AdMobBannerExample com...oid.gms.example.bannerexample V onAdOpened <<
2023-09-29 10:48:01.740 6573-6573 AdMobBannerExample com...oid.gms.example.bannerexample V onAdImpression
2023-09-29 10:48:01.741 6573-6573 AdMobBannerExample com...oid.gms.example.bannerexample V onAdLoaded
Note after the second onAdOpened, there's no matching onAdClosed.
I've seen this consistently across a number of devices and Android versions.
I appreciate this is rather edge case behaviour, but is it something I've done wrong or is it an AdMob bug? Should I be forcing the banner to reload after the first onAdClosed event?
Any advice greatly appreciated
Chris