YMAMutableAdRequest
Objective-C
@interface YMAMutableAdRequest : YMAAdRequest
Swift
class YMAMutableAdRequest : YMAAdRequest
An editable version of the YMAAdRequest
class with data for a targeted ad request.
User age.
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSNumber *age;
Swift
var age: NSNumber? { get set }
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 }
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 }
The gender of the user. See the list of values in Constants.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *gender;
Swift
var gender: String? { get set }
User location.
Declaration
Objective-C
@property (nonatomic, copy, nullable) CLLocation *location;
Swift
@NSCopying var location: CLLocation? { get set }
Preferred ad theme.
Declaration
Objective-C
@property (nonatomic) YMAAdTheme adTheme;
Swift
var adTheme: YMAAdTheme { get set }
Bidding data for loading ads from mediation.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *biddingData;
Swift
var biddingData: String? { get set }
Header bidding data for loading ads from mediation, contains the bid ID.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *headerBiddingData;
Swift
var headerBiddingData: String? { get set }