GADPreloadDelegate
@protocol GADPreloadDelegate <NSObject>Delegate for preloading events.
-
Called when an ad becomes available for the preload ID.
Declaration
Swift
func adAvailable(forPreloadID preloadID: String, responseInfo: ResponseInfo)Objective-C
- (void)adAvailableForPreloadID:(nonnull NSString *)preloadID responseInfo:(nonnull GADResponseInfo *)responseInfo; -
Called when the last available ad is exhausted for the preload ID.
Declaration
Swift
func adsExhausted(forPreloadID preloadID: String)Objective-C
- (void)adsExhaustedForPreloadID:(nonnull NSString *)preloadID; -
Called when an ad failed to preload for the preload ID.
Declaration
Swift
func adFailedToPreload(forPreloadID preloadID: String, error: any Error)Objective-C
- (void)adFailedToPreloadForPreloadID:(nonnull NSString *)preloadID error:(nonnull NSError *)error;