# GoogleMobileAds Framework Reference

# GADAdLoaderDelegate

    @protocol GADAdLoaderDelegate <NSObject>

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


  ### [-adLoader:didFailToReceiveAdWithError:](https://developers.google.com/admob/ios/api/reference/Protocols/GADAdLoaderDelegate#/c:objc(pl)GADAdLoaderDelegate(im)adLoader:didFailToReceiveAdWithError:)


  ` Called when adLoader fails to load an ad.

  #### Declaration

  Swift

      @MainActor func adLoader(_ adLoader: https://developers.google.com/admob/ios/api/reference/Classes/GADAdLoader.html, didFailToReceiveAdWithError error: any Error)

  Objective-C

      - (void)adLoader:(nonnull https://developers.google.com/admob/ios/api/reference/Classes/GADAdLoader.html *)adLoader
          didFailToReceiveAdWithError:(nonnull NSError *)error;

- `


  ### [-adLoaderDidFinishLoading:](https://developers.google.com/admob/ios/api/reference/Protocols/GADAdLoaderDelegate#/c:objc(pl)GADAdLoaderDelegate(im)adLoaderDidFinishLoading:)


  ` Called after adLoader has finished loading.

  #### Declaration

  Swift

      @MainActor optional func adLoaderDidFinishLoading(_ adLoader: https://developers.google.com/admob/ios/api/reference/Classes/GADAdLoader.html)

  Objective-C

      - (void)adLoaderDidFinishLoading:(nonnull https://developers.google.com/admob/ios/api/reference/Classes/GADAdLoader.html *)adLoader;