Protocols

The following protocols are available globally.

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

    Declaration

    Objective-C

    @protocol DFPCustomRenderedBannerViewDelegate <NSObject>
  • The DFPCustomRenderedAd interstitial delegate protocol for notifying the delegate of changes to custom rendered interstitials.

    Declaration

    Objective-C

    @protocol DFPCustomRenderedInterstitialDelegate <NSObject>
  • Base ad loader delegate protocol. Ad types provide extended protocols that declare methods to handle successful ad loads.

    Declaration

    Objective-C

    @protocol GADAdLoaderDelegate <NSObject>
  • 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

    Objective-C

    @protocol GADAdNetworkExtras <NSObject>
  • 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

    Objective-C

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

    Declaration

    Objective-C

    @protocol GADAppEventDelegate <NSObject>
  • A set of methods to inform the delegate of audio video manager events.

    Declaration

    Objective-C

    @protocol GADAudioVideoManagerDelegate <NSObject>
  • Delegate methods for receiving GADBannerView state change messages such as ad request status and ad click lifecycle.

    Declaration

    Objective-C

    @protocol GADBannerViewDelegate <NSObject>
  • The banner custom event protocol. Your banner custom event handler must implement this protocol.

    Declaration

    Objective-C

    @protocol GADCustomEventBanner <NSObject>
  • Call back to this delegate in your custom event. You must call customEventBanner:didReceiveAd: when there is an ad to show, or customEventBanner:didFailAd: when there is no ad to show. Otherwise, if enough time passed (several seconds) after the SDK called the requestBannerAd: method of your custom event, the mediation SDK will consider the request timed out, and move on to the next ad network.

    Declaration

    Objective-C

    @protocol GADCustomEventBannerDelegate <NSObject>
  • The interstitial custom event protocol. Your interstitial custom event handler must implement this protocol.

    Declaration

    Objective-C

    @protocol GADCustomEventInterstitial <NSObject>
  • Call back to this delegate in your custom event. You must call customEventInterstitialDidReceiveAd: when there is an ad to show, or customEventInterstitial:didFailAd: when there is no ad to show. Otherwise, if enough time passed (several seconds) after the SDK called the requestInterstitialAdWithParameter: method of your custom event, the mediation SDK will consider the request timed out, and move on to the next ad network.

    Declaration

    Objective-C

    @protocol GADCustomEventInterstitialDelegate <NSObject>
  • Native ad custom event protocol. Your native ad custom event handler class must conform to this protocol.

    Declaration

    Objective-C

    @protocol GADCustomEventNativeAd <NSObject>