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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGADAdLoaderDelegate\u003c/code\u003e is a base protocol for handling ad loading events in Google Mobile Ads SDK.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to handle ad load failures and notify when the ad loading process is complete.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers need to implement the \u003ccode\u003eadLoader:didFailToReceiveAdWithError:\u003c/code\u003e method to handle ad loading errors.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, they can implement \u003ccode\u003eadLoaderDidFinishLoading:\u003c/code\u003e to get notified when the ad loader has finished.\u003c/p\u003e\n"]]],[],null,["GADAdLoaderDelegate \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 Called when adLoader fails to load an ad. \n\n Declaration \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 Called after adLoader has finished loading. \n\n Declaration \n Swift \n\n optional func adLoaderDidFinishLoading(_ adLoader: ../Classes/GADAdLoader.html)\n\n Objective-C \n\n - (void)adLoaderDidFinishLoading:(nonnull ../Classes/GADAdLoader.html *)adLoader;"]]