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. Properties
    1. location
    2. contextQuery
    3. contextTags
    4. gender
    5. age
    6. parameters
  2. Methods
    1. – initWithLocation:contextQuery:contextTags:
    2. – initWithLocation:contextQuery:contextTags:parameters:

Properties

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

An array 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. See the list of values in YMAGender.

@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

Methods

– 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

An array 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

An array 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).