GoogleMobileAds Framework Reference

  • GAMBannerAdLoaderDelegate is a protocol for the delegate of a GADAdLoader object to receive GAMBannerViews .

  • The -validBannerSizesForAdLoader: method asks the delegate which banner ad sizes should be requested.

  • The -adLoader:didReceiveGAMBannerView: method tells the delegate that a Google Ad Manager banner ad was received.

GAMBannerAdLoaderDelegate

 @protocol GAMBannerAdLoaderDelegate < GADAdLoaderDelegate 
> 

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

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

    Declaration

    Swift

     func validBannerSizes(for adLoader: AdLoader) -> [NSValue] 
    

    Objective-C

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

    Declaration

    Swift

     func adLoader(_ adLoader: AdLoader, didReceive bannerView: AdManagerBannerView) 
    

    Objective-C

     - (void)adLoader:(nonnull GADAdLoader 
    *)adLoader
        didReceiveGAMBannerView:(nonnull GAMBannerView 
    *)bannerView; 
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: