GoogleMobileAds Framework Reference

  • GADMediationBannerAd represents a rendered banner ad that provides a single subview for placement within a banner view's hierarchy.

  • The view property provides access to the banner ad's UIView.

  • The -changeAdSizeTo: method allows for resizing the banner ad content if it is resizable.

GADMediationBannerAd

 @protocol GADMediationBannerAd < GADMediationAd 
> 

Rendered banner ad. Provides a single subview to add to the banner view’s view hierarchy.

  • The banner ad view.

    Declaration

    Swift

     var view: UIView { get } 
    

    Objective-C

     @property (nonatomic, readonly, nonnull) UIView *view; 
    
  • Tells the ad to resize the banner. Implement if banner content is resizable.

    Declaration

    Swift

     optional func changeSize(to adSize: AdSize) 
    

    Objective-C

     - (void)changeAdSizeTo:( GADAdSize 
    )adSize; 
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: