GoogleMobileAds Framework Reference

GADBannerViewDelegate

protocol GADBannerViewDelegate : NSObjectProtocol

Delegate methods for receiving GADBannerView state change messages such as ad request status and ad click lifecycle.

  • Tells the delegate that an ad request successfully received an ad. The delegate may want to add the banner view to the view hierarchy if it hasn’t been added yet.

    Declaration

    Swift

    optional func adViewDidReceiveAd(_ bannerView: GADBannerView)
  • Tells the delegate that an ad request failed. The failure is normally due to network connectivity or ad availablility (i.e., no fill).

    Declaration

    Swift

    optional func adView(_ bannerView: GADBannerView, didFailToReceiveAdWithError error: GADRequestError)
  • Tells the delegate that a full screen view will be presented in response to the user clicking on an ad. The delegate may want to pause animations and time sensitive interactions.

    Declaration

    Swift

    optional func adViewWillPresentScreen(_ bannerView: GADBannerView)
  • Tells the delegate that the full screen view will be dismissed.

    Declaration

    Swift

    optional func adViewWillDismissScreen(_ bannerView: GADBannerView)
  • Tells the delegate that the full screen view has been dismissed. The delegate should restart anything paused while handling adViewWillPresentScreen:.

    Declaration

    Swift

    optional func adViewDidDismissScreen(_ bannerView: GADBannerView)
  • Tells the delegate that the user click will open another app, backgrounding the current application. The standard UIApplicationDelegate methods, like applicationDidEnterBackground:, are called immediately before this method is called.

    Declaration

    Swift

    optional func adViewWillLeaveApplication(_ bannerView: GADBannerView)

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Nov 22, 2023

Firebase Authentication lets you add an end-to-end identity solution to your app for easy user authentication, sign-in, and onboarding in just a few lines of code.

Updated Feb 21, 2025

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Nov 22, 2023