GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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
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
optional func adLoaderDidFinishLoading(_ adLoader: GADAdLoader)
Objective-C
- (void)adLoaderDidFinishLoading:(nonnull GADAdLoader *)adLoader;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGADAdLoaderDelegate\u003c/code\u003e protocol acts as the foundation for handling ad loading processes in Google Mobile Ads SDK.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods like \u003ccode\u003eadLoader:didFailToReceiveAdWithError:\u003c/code\u003e to handle ad loading failures.\u003c/p\u003e\n"],["\u003cp\u003eIt offers an optional method, \u003ccode\u003eadLoaderDidFinishLoading:\u003c/code\u003e, to signal the completion of ad loading by the \u003ccode\u003eadLoader\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# GoogleMobileAds Framework Reference\n\nGADAdLoaderDelegate\n===================\n\n @protocol GADAdLoaderDelegate \u003cNSObject\u003e\n\nBase ad loader delegate protocol. Ad types provide extended protocols that declare methods to\nhandle successful ad loads.\n- `\n ``\n ``\n `\n\n ### [-adLoader:didFailToReceiveAdWithError:](#/c:objc(pl)GADAdLoaderDelegate(im)adLoader:didFailToReceiveAdWithError:)\n\n `\n ` \n Called when adLoader fails to load an ad. \n\n #### Declaration\n\n Swift \n\n func adLoader(_ adLoader: ../Classes/GADAdLoader.html, didFailToReceiveAdWithError error: any Error)\n\n Objective-C \n\n - (void)adLoader:(nonnull ../Classes/GADAdLoader.html *)adLoader\n didFailToReceiveAdWithError:(nonnull NSError *)error;\n\n- `\n ``\n ``\n `\n\n ### [-adLoaderDidFinishLoading:](#/c:objc(pl)GADAdLoaderDelegate(im)adLoaderDidFinishLoading:)\n\n `\n ` \n Called after adLoader has finished loading. \n\n #### Declaration\n\n Swift \n\n optional func adLoaderDidFinishLoading(_ adLoader: ../Classes/GADAdLoader.html)\n\n Objective-C \n\n - (void)adLoaderDidFinishLoading:(nonnull ../Classes/GADAdLoader.html *)adLoader;"]]