YMAAdRequest Class Reference

Inherits from NSObject
Conforms to NSCopying
NSMutableCopying
Declared in YMAAdRequest.h

Overview

A class with data for a targeted ad request.

  1. location
  2. contextQuery
  3. contextTags
  4. gender
  5. age
  6. parameters
  7. – initWithLocation:contextQuery:contextTags:
  8. – initWithLocation:contextQuery:contextTags:parameters:

location

User location.

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

contextQuery

The search query that the user entered in the app.

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

contextTags

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

@property (nonatomic, copy, readonly, nullable) NSArray *contextTags

gender

The gender of the user. For a list of values, see the YMAGender section.

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

age

User age.

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

parameters

A set of arbitrary input parameters.

@property (nonatomic, copy, readonly, nullable) NSDictionary *parameters

– initWithLocation:contextQuery:contextTags:

Initializes an object of the YMAAdRequest class with the user’s location, search query, and tags.

- (instancetype)initWithLocation:(nullable CLLocation *)location
                    contextQuery:(nullable NSString *)contextQuery
                     contextTags:(nullable NSArray *)contextTags

Parameters

location

User location.

contextQuery

The search query that the user entered in the app.

contextTags

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

Return Value

An object of the YMAAdRequest class with the user’s location, search query, and tags.

– initWithLocation:contextQuery:contextTags:parameters:

Initializes an object of the YMAAdRequest class with the user’s location, search query, tags, and input parameters.

- (instancetype)initWithLocation:(nullable CLLocation *)location
                    contextQuery:(nullable NSString *)contextQuery
                     contextTags:(nullable NSArray *)contextTags
                      parameters:(nullable NSDictionary *)parameters

Parameters

location

User location.

contextQuery

The search query that the user entered in the app.

contextTags

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

parameters

A set of arbitrary input parameters.

Return Value

An object of the YMAAdRequest class with the user’s location, search query, tags, and input parameters.


Generated by appledoc 2.2.1 (build 1334).