GoogleMobileAds Framework Reference

  • GADAdLoaderDelegate is the base protocol for ad loader delegates.

  • The adLoader:didFailToReceiveAdWithError: method is called when the ad loader fails to load an ad.

  • The adLoaderDidFinishLoading: method is called after the ad loader has finished loading.

GADAdLoaderDelegate

 @protocol GADAdLoaderDelegate <NSObject> 

Base ad loader delegate protocol. Ad types provide extended protocols that declare methods to handle successful ad loads.

  • Called when adLoader fails to load an ad.

    Declaration

    Swift

     @MainActor func adLoader(_ adLoader: GADAdLoader 
    , didFailToReceiveAdWithError error: any Error) 
    

    Objective-C

     - (void)adLoader:(nonnull GADAdLoader 
    *)adLoader
        didFailToReceiveAdWithError:(nonnull NSError *)error; 
    
  • Called after adLoader has finished loading.

    Declaration

    Swift

     @MainActor optional func adLoaderDidFinishLoading(_ adLoader: GADAdLoader 
    ) 
    

    Objective-C

     - (void)adLoaderDidFinishLoading:(nonnull GADAdLoader 
    *)adLoader; 
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: