YMANativeGenericAd Protocol Reference

Conforms to NSObject
Declared in YMANativeGenericAd.h

Overview

The protocol provides methods for managing an ad and getting the values ​​of the ad assets.

  1. Properties
    1. delegate
    2. info
  2. Methods
    1. – addImageLoadingObserver:
    2. – removeImageLoadingObserver:
    3. – adType
    4. – adAssets
    5. – loadImages

Properties

delegate

An object implementing the YMANativeAdDelegate protocol that receives events triggered by the user’s interaction with the ad.

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

info

Any string in the ad (set in the Partner interface).

@property (nonatomic, copy, readonly) NSString *info

Discussion

Note: This property is only used for working with ADFOX.

Methods

– addImageLoadingObserver:

Adds an observer that receives notifications about the image loading process.

- (void)addImageLoadingObserver:(id<YMANativeAdImageLoadingObserver>)observer

Parameters

observer

The observer of the image loading process (YMANativeAdImageLoadingObserver).

– removeImageLoadingObserver:

Removes the observer that receives notifications about the image loading process.

- (void)removeImageLoadingObserver:(id<YMANativeAdImageLoadingObserver>)observer

Parameters

observer

The observer of the image loading process (YMANativeAdImageLoadingObserver).

– adType

Type of native ad. See acceptable values in YMANativeAdTypes.

- (NSString *)adType

Return Value

Returns the type of a native ad.

– adAssets

An object with ad assets (YMANativeAdAssets).

- (YMANativeAdAssets *)adAssets

Return Value

Returns an object containing the ad assets.

– loadImages

Loads images if manual loading is selected.

- (void)loadImages

Discussion

Note: All images are cached, but they can be deleted at any time, so you need to call this method before every ad impression.


Generated by appledoc 2.2.1 (build 1334).