Ir a la consola

GoogleMobileAds Framework Reference

Protocols

The following protocols are available globally.

  • The DFPCustomRenderedAd banner view delegate protocol for notifying the delegate of changes to custom rendered banners.

    Declaration

    Swift

    protocol DFPCustomRenderedBannerViewDelegate : NSObjectProtocol
  • The DFPCustomRenderedAd interstitial delegate protocol for notifying the delegate of changes to custom rendered interstitials.

    Declaration

    Swift

    protocol DFPCustomRenderedInterstitialDelegate : NSObjectProtocol
  • Base ad loader delegate protocol. Ad types provide extended protocols that declare methods to handle successful ad loads.

    Declaration

    Swift

    protocol GADAdLoaderDelegate : NSObjectProtocol
  • An object implementing this protocol contains information set by the publisher on the client device for a particular ad network.

    Ad networks should create an ‘extras’ object implementing this protocol for their publishers to use.

    Declaration

    Swift

    protocol GADAdNetworkExtras : NSObjectProtocol
  • The class implementing this protocol will be notified when the GADBannerView’s ad content changes size. Any views that may be affected by the banner size change will have time to adjust.

    Declaration

    Swift

    protocol GADAdSizeDelegate : NSObjectProtocol
  • Implement your app event within these methods. The delegate will be notified when the SDK receives an app event message from the ad.

    Declaration

    Swift

    protocol GADAppEventDelegate : NSObjectProtocol
  • A set of methods to inform the delegate of audio video manager events.

    Declaration

    Swift

    protocol GADAudioVideoManagerDelegate : NSObjectProtocol
  • Delegate methods for receiving GADBannerView state change messages such as ad request status and ad click lifecycle.