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 2024-04-11 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 2024-04-11 UTC."],[[["`GADAdLoaderDelegate` is a base protocol for handling ad loading events in Google Mobile Ads SDK."],["It provides methods to handle ad load failures and notify when the ad loading process is complete."],["Developers need to implement the `adLoader:didFailToReceiveAdWithError:` method to handle ad loading errors."],["Optionally, they can implement `adLoaderDidFinishLoading:` to get notified when the ad loader has finished."]]],[]]