IMAAdsLoaderDelegate
@protocol IMAAdsLoaderDelegateDelegate object that receives state change callbacks from IMAAdsLoader.
-
Called when ads are successfully loaded from the ad servers by the loader.
Declaration
Swift
func adsLoader(_ loader: IMAAdsLoader, adsLoadedWith adsLoadedData: IMAAdsLoadedData)Objective-C
- (void)adsLoader:(nonnull IMAAdsLoader *)loader adsLoadedWithData:(nonnull IMAAdsLoadedData *)adsLoadedData;Parameters
loaderthe IMAAdsLoader that received the loaded ad data
adsLoadedDatathe IMAAdsLoadedData instance containing ad data
-
Error reported by the ads loader when loading or requesting an ad fails.
Declaration
Swift
func adsLoader(_ loader: IMAAdsLoader, failedWith adErrorData: IMAAdLoadingErrorData)Objective-C
- (void)adsLoader:(nonnull IMAAdsLoader *)loader failedWithErrorData:(nonnull IMAAdLoadingErrorData *)adErrorData;Parameters
loaderthe IMAAdsLoader that received the error
adErrorDatathe IMAAdLoadingErrorData instance with error information