# GADBannerViewDelegate

    @protocol GADBannerViewDelegate <NSObject>

Delegate methods for receiving GADBannerView state change messages such as ad request status
and ad click lifecycle.
[## Ad Request Lifecycle Notifications](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/Ad-Request-Lifecycle-Notifications)

- `


  ### [-bannerViewDidReceiveAd:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/c:objc(pl)GADBannerViewDelegate(im)bannerViewDidReceiveAd:)


  ` 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

      @MainActor optional func bannerViewDidReceiveAd(_ bannerView: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html)

  Objective-C

      - (void)bannerViewDidReceiveAd:(nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html *)bannerView;

- `


  ### [-bannerView:didFailToReceiveAdWithError:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/c:objc(pl)GADBannerViewDelegate(im)bannerView:didFailToReceiveAdWithError:)


  ` Tells the delegate that an ad request failed. The failure is normally due to network
  connectivity or ad availability (for example, no fill).

  #### Declaration

  Swift

      @MainActor optional func bannerView(_ bannerView: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html, didFailToReceiveAdWithError error: any Error)

  Objective-C

      - (void)bannerView:(nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html *)bannerView
          didFailToReceiveAdWithError:(nonnull NSError *)error;

- `


  ### [-bannerViewDidRecordImpression:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/c:objc(pl)GADBannerViewDelegate(im)bannerViewDidRecordImpression:)


  ` Tells the delegate that an impression has been recorded for an ad.

  #### Declaration

  Swift

      @MainActor optional func bannerViewDidRecordImpression(_ bannerView: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html)

  Objective-C

      - (void)bannerViewDidRecordImpression:(nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html *)bannerView;

- `


  ### [-bannerViewDidRecordClick:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/c:objc(pl)GADBannerViewDelegate(im)bannerViewDidRecordClick:)


  ` Tells the delegate that a click has been recorded for the ad.

  #### Declaration

  Swift

      @MainActor optional func bannerViewDidRecordClick(_ bannerView: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html)

  Objective-C

      - (void)bannerViewDidRecordClick:(nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html *)bannerView;

- `


  ### [-bannerView:didRecordPaidEventWithAdValue:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/c:objc(pl)GADBannerViewDelegate(im)bannerView:didRecordPaidEventWithAdValue:)


  ` Tells the delegate that the banner view is estimated to have earned money.

  #### Declaration

  Swift

      @MainActor optional func bannerView(_ bannerView: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html, didRecordPaidEventWith value: AdValue)

  Objective-C

      - (void)bannerView:(nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html *)bannerView
          didRecordPaidEventWithAdValue:(nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADAdValue.html *)value;

[## Click-Time Lifecycle Notifications](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/Click-Time-Lifecycle-Notifications)

- `


  ### [-bannerViewWillPresentScreen:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/c:objc(pl)GADBannerViewDelegate(im)bannerViewWillPresentScreen:)


  ` 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

      @MainActor optional func bannerViewWillPresentScreen(_ bannerView: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html)

  Objective-C

      - (void)bannerViewWillPresentScreen:(nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html *)bannerView;

- `


  ### [-bannerViewDidDismissScreen:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/c:objc(pl)GADBannerViewDelegate(im)bannerViewDidDismissScreen:)


  ` Tells the delegate that the full screen view has been dismissed. The delegate should restart
  anything paused while handling bannerViewWillPresentScreen:.

  #### Declaration

  Swift

      @MainActor optional func bannerViewDidDismissScreen(_ bannerView: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html)

  Objective-C

      - (void)bannerViewDidDismissScreen:(nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html *)bannerView;

[## Deprecated](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/Deprecated)

- `


  ### [-bannerViewWillDismissScreen:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADBannerViewDelegate#/c:objc(pl)GADBannerViewDelegate(im)bannerViewWillDismissScreen:)


  ` Deprecated

  Deprecated. Use \[GADBannerViewDelegate bannerViewDidDismissScreen:\] instead.
  Tells the delegate that the full screen view will be dismissed.

  #### Declaration

  Swift

      @MainActor optional func bannerViewWillDismissScreen(_ bannerView: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html)

  Objective-C

      - (void)bannerViewWillDismissScreen:(nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADBannerView.html *)bannerView;