YMANativeAdLoaderConfiguration Class Reference

Inherits from NSObject
Declared in YMANativeAdLoaderConfiguration.h

Overview

This class is responsible for configuring native ad loading.

  1. blockID
  2. imageSizes
  3. shouldLoadImagesAutomatically
  4. – initWithBlockID:loadImagesAutomatically:
  5. – initWithBlockID:imageSizes:loadImagesAutomatically:

blockID

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

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

imageSizes

A set of preferred image sizes.

@property (nonatomic, copy, readonly) NSArray *imageSizes

shouldLoadImagesAutomatically

Flag for automatic image loading. Acceptable values: YES – Load automatically; NO – Load manually.

@property (nonatomic, assign, readonly) BOOL shouldLoadImagesAutomatically

Discussion

Warning: If the app simultaneously stores links to a large number of ads, we recommend using manual image loading.

– initWithBlockID:loadImagesAutomatically:

Initializes a new object of the YMANativeAdLoaderConfiguration class, i.e., configuration for loading native ads.

- (instancetype)initWithBlockID:(NSString *)blockID
        loadImagesAutomatically:(BOOL)shouldLoadImagesAutomatically

Parameters

blockID

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

shouldLoadImagesAutomatically

Flag for automatic image loading.

Return Value

An object of the YMANativeAdLoaderConfiguration class, i.e., configuration for loading native ads.

– initWithBlockID:imageSizes:loadImagesAutomatically:

Initializes a new object of the YMANativeAdLoaderConfiguration class, i.e., configuration for native ads.

- (instancetype)initWithBlockID:(NSString *)blockID
                     imageSizes:(NSArray *)imageSizes
        loadImagesAutomatically:(BOOL)shouldLoadImagesAutomatically

Parameters

blockID

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

imageSizes

A set of preferred image sizes.

shouldLoadImagesAutomatically

Flag for automatic image loading.

Return Value

Object of the YMANativeAdLoaderConfiguration class, i.e., configuration for native ads.


Generated by appledoc 2.2.1 (build 1334).