YMANativeAdLoader

Objective-C

@interface YMANativeAdLoader : NSObject

Swift

class YMANativeAdLoader : NSObject

This class is responsible for loading native ads.

  1. Properties
  2. delegate
  3. Methods
  4. -loadAdWithRequestConfiguration:

Properties

delegate

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

Declaration

Objective-C

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

Swift

weak var delegate: YMANativeAdLoaderDelegate? { get set }

Methods

-loadAdWithRequestConfiguration:

Loads an ad with the specified targeting data.

Declaration

Objective-C

- (void)loadAdWithRequestConfiguration:
    (nonnull YMANativeAdRequestConfiguration *)requestConfiguration;

Swift

func loadAd(with requestConfiguration: YMANativeAdRequestConfiguration)

Parameters

requestConfiguration

Data for targeting.

requestConfiguration

Data for targeting.