DFPBannerAdLoaderDelegate

@protocol DFPBannerAdLoaderDelegate <GADAdLoaderDelegate>

The delegate of a GADAdLoader object must conform to this protocol to receive DFPBannerViews.

  • Asks the delegate which banner ad sizes should be requested.

    Declaration

    Swift

    func validBannerSizes(forAdLoader adLoader: Any!) -> Any!

    Objective-C

    - (nonnull NSArray<NSValue *> *)validBannerSizesForAdLoader:
        (nonnull GADAdLoader *)adLoader;
  • Tells the delegate that a DFP banner ad was received.

    Declaration

    Swift

    func adLoader(_ adLoader: Any!, didReceiveDFPBannerView bannerView: Any!)

    Objective-C

    - (void)adLoader:(nonnull GADAdLoader *)adLoader
        didReceiveDFPBannerView:(nonnull DFPBannerView *)bannerView;