YMAMutableNativeAdRequestConfiguration

Objective-C

@interface YMAMutableNativeAdRequestConfiguration
    : YMANativeAdRequestConfiguration

Swift

class YMAMutableNativeAdRequestConfiguration : YMANativeAdRequestConfiguration

An editable version of the YMANativeAdRequestConfiguration class. Sets native ad loader configuration parameters.

  1. age
  2. contextQuery
  3. contextTags
  4. gender
  5. location
  6. adTheme
  7. biddingData
  8. parameters
  9. shouldLoadImagesAutomatically

age

Age restrictions.

Declaration

Objective-C

@property (nonatomic, strong, nullable) NSNumber *age;

Swift

var age: NSNumber? { get set }

contextQuery

The search query that the user entered in the app.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *contextQuery;

Swift

var contextQuery: String? { get set }

contextTags

An array of tags. Matches the context in which the ad will be displayed.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSArray<NSString *> *contextTags;

Swift

var contextTags: [String]? { get set }

gender

The gender of the user. See the list of values in Constants.html.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *gender;

Swift

var gender: String? { get set }

location

User location.

Declaration

Objective-C

@property (nonatomic, copy, nullable) CLLocation *location;

Swift

@NSCopying var location: CLLocation? { get set }

adTheme

Preferred ad theme.

Declaration

Objective-C

@property (nonatomic) YMAAdTheme adTheme;

Swift

var adTheme: YMAAdTheme { get set }

biddingData

Bidding data for loading ads from mediation.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSString *biddingData;

Swift

var biddingData: String? { get set }

parameters

A set of arbitrary input parameters.

Declaration

Objective-C

@property (nonatomic, copy, nullable) NSDictionary<NSString *, NSString *> *parameters;

Swift

var parameters: [String : String]? { get set }

shouldLoadImagesAutomatically

A set of arbitrary input parameters.

Declaration

Objective-C

@property (nonatomic) BOOL shouldLoadImagesAutomatically;

Swift

var shouldLoadImagesAutomatically: Bool { get set }