YMANativeBulkAdLoaderDelegate
Objective-C
@protocol YMANativeBulkAdLoaderDelegate <NSObject>
Swift
protocol YMANativeBulkAdLoaderDelegate : NSObjectProtocol
The protocol defines the methods of the delegate that tracks ad loading.
Called when the ads are loaded.
Declaration
Objective-C
- (void)nativeBulkAdLoader:(nonnull YMANativeBulkAdLoader *)nativeBulkAdLoader
didLoadAds:(nonnull NSArray<id<YMANativeAd>> *)ads;
Parameters
nativeBulkAdLoader | A reference to the object of the |
ads | An array of loaded ads. |
nativeBulkAdLoader | A reference to the object of the |
ads | An array of loaded ads. |
Called if ad loading failed.
Declaration
Objective-C
- (void)nativeBulkAdLoader:(nonnull YMANativeBulkAdLoader *)nativeBulkAdLoader
didFailLoadingWithError:(nonnull NSError *)error;
Swift
func nativeBulkAdLoader(_ nativeBulkAdLoader: YMANativeBulkAdLoader, didFailLoadingWithError error: Error)
Parameters
nativeBulkAdLoader | A reference to the object of the |
error | Information about the error (for details, see |
nativeBulkAdLoader | A reference to the object of the |
error | Information about the error (for details, see |