Share your feedback and help shape the Google Mobile Ads SDK roadmap. Take the Google Mobile Ads SDK Annual Survey for 2023 before it closes on May 5th, 2023.

GoogleMobileAds Framework Reference

Stay organized with collections Save and categorize content based on your preferences.


@interface GADSearchBannerView : GADBannerView

A view that displays search ads. To show search ads: 1) Create a GADSearchBannerView and add it to your view controller’s view hierarchy. 2) Create a GADDynamicHeightSearchRequest object to hold the search query and other search data. 3) Call GADSearchBannerView’s -loadRequest: method with the GADDynamicHeightSearchRequest object.

  • If the banner view is initialized with GADAdSizeFluid and the corresponding request is created with dynamic height parameters, this delegate will be called when the ad size changes.



    @IBOutlet weak var adSizeDelegate: GADAdSizeDelegate? { get set }


    @property (nonatomic, weak, nullable) id<GADAdSizeDelegate> adSizeDelegate;