YMANativeAdLoader
Objective-C
@interface YMANativeAdLoader : NSObject
Swift
class YMANativeAdLoader : NSObject
This class is responsible for loading native ads.
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 }
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. |