AI-generated Key Takeaways
-
The
GADAdLoaderDelegate
protocol acts as the foundation for handling ad loading processes in Google Mobile Ads SDK. -
It provides methods like
adLoader:didFailToReceiveAdWithError:
to handle ad loading failures. -
It offers an optional method,
adLoaderDidFinishLoading:
, to signal the completion of ad loading by theadLoader
.
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;