YMANativeBulkAdLoader

Objective-C

@interface YMANativeBulkAdLoader : NSObject

Swift

class YMANativeBulkAdLoader : NSObject

This class is responsible for loading native ads.

  1. Properties
  2. delegate
  3. Methods
  4. -loadAdsWithRequestConfiguration:adsCount:

Properties

delegate

An object that implements the YMANativeBulkAdLoaderDelegate protocol that tracks the progress of native ad loading.

Declaration

Objective-C

@property (nonatomic, weak, nullable) id<YMANativeBulkAdLoaderDelegate> delegate;

Methods

-loadAdsWithRequestConfiguration:adsCount:

Loads an ad with the specified targeting data.

Declaration

Objective-C

- (void)loadAdsWithRequestConfiguration:
            (nonnull YMANativeAdRequestConfiguration *)requestConfiguration
                               adsCount:(NSUInteger)adsCount;

Swift

func loadAds(with requestConfiguration: YMANativeAdRequestConfiguration, adsCount: UInt)

Parameters

requestConfiguration

Data for targeting.

adsCount

The number of requested ads.

requestConfiguration

Data for targeting.

adsCount

The number of requested ads.