YMANativeAdLoader Class Reference

Inherits from NSObject
Declared in YMANativeAdLoader.h

Overview

This class is responsible for loading native ads.

  1. Properties
    1. blockID
    2. configuration
    3. delegate
  2. Methods
    1. – initWithBlockID:
    2. – initWithConfiguration:
    3. – loadAdWithRequest:

Properties

blockID

Block ID is a unique identifier in the R-M-XXXXXX-Y format, which is assigned in the Partner interface.

@property (nonatomic, strong, readonly) NSString *blockID

configuration

Configuration for loading native ads (YMANativeAdLoaderConfiguration).

@property (nonatomic, strong, readonly) YMANativeAdLoaderConfiguration *configuration

delegate

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

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

Methods

– initWithBlockID:

Initializes a new object of the YMANativeAdLoader class.

- (instancetype)initWithBlockID:(NSString *)blockID

Parameters

blockID

Block ID is a unique identifier in the R-M-XXXXXX-Y format, which is assigned in the Partner interface.

Return Value

An object of the YMANativeAdLoader class.

Discussion

Note: This method is deprecated. Use the [YMANativeAdLoader initWithConfiguration:] method.

– initWithConfiguration:

Initializes a new object of the YMANativeAdLoader class.

- (instancetype)initWithConfiguration:(YMANativeAdLoaderConfiguration *)configuration

Parameters

configuration

Configuration for loading native ads (YMANativeAdLoaderConfiguration).

Return Value

An object of the YMANativeAdLoader class.

– loadAdWithRequest:

Loads an ad with the specified targeting data.

- (void)loadAdWithRequest:(nullable YMAAdRequest *)request

Parameters

request

Data for targeting (YMAAdRequest).


Generated by appledoc 2.2.1 (build 1334).