GADBannerViewDelegate callbacks not working

294 views
Skip to first unread message

Adil Saleem

unread,
Jun 15, 2021, 1:21:49 AM6/15/21
to Google Mobile Ads SDK Developers
I am currently updating the Google Mobile Ads SDK for iOS used in my application. I am able to get most things to work correctly but I am facing some issues with GADBannerViewDelegate. Following methods are called correctly:

- (void)bannerViewDidReceiveAd:(GADBannerView *)bannerView

- (void)bannerView:(GADBannerView *)bannerView didFailToReceiveAdWithError:(NSError *)error

- (void)bannerViewDidRecordImpression:(GADBannerView *)bannerView


but the following methods are never called:

- (void)bannerViewWillPresentScreen:(GADBannerView *)bannerView

- (void)bannerViewWillDismissScreen:(GADBannerView *)bannerView

- (void)bannerViewDidDismissScreen:(GADBannerView *)bannerView


My understanding is that these methods are called after a banner ad is clicked on occasions as implied by their names.

I am using this: https://github.com/googleads/googleads-mobile-ios-examples/tree/master/Objective-C/advanced/APIDemo with some changes as the methods are renamed in the new SDK.

Mobile Ads SDK Forum Advisor

unread,
Jun 15, 2021, 5:06:35 AM6/15/21
to adil....@pakdata.com, google-adm...@googlegroups.com
Hi there,

Thank you for reaching out to us.

I've tried to implement the banner ad events and can confirm that bannerViewDidReceiveAd and bannerViewDidRecordImpression works fine. However, the following ad event that you mentioned doesn't trigger on my end as well upon clicking the ads. That said, let me share this to the rest of the team for further investigation. I'll update this thread the soonest they provide their feedback.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2IvkRj:ref
Reply all
Reply to author
Forward
0 new messages