AI-generated Key Takeaways
- 
          
IMAAdsLoaderDelegate is a delegate object that receives state change callbacks from IMAAdsLoader.
 - 
          
The
adsLoader:adsLoadedWithData:method is called when ads are successfully loaded by the loader. - 
          
The
adsLoader:failedWithErrorData:method is called when the ads loader fails to load or request an ad. 
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