AdRequest

@objc(YMAAdRequest)
@objcMembers
public class AdRequest : NSObject, NSCopying, NSMutableCopying

A class with data for a targeted ad request.

  • age

    User age.

    Declaration

    Swift

    public var age: NSNumber? { get }
  • The search query that the user entered in the app.

    Declaration

    Swift

    public var contextQuery: String? { get }
  • List of tags. Matches the context in which the ad will be displayed.

    Declaration

    Swift

    public var contextTags: [String]? { get }
  • The gender of the user. For a list of values, see the Gender section.

    Declaration

    Swift

    public var gender: String? { get }
  • User location.

    Declaration

    Swift

    public var location: CLLocation? { get }
  • Preferred ad theme.

    Declaration

    Swift

    public var adTheme: AdTheme { get }
  • Bidding data for ad loading from mediation.

    Declaration

    Swift

    public var biddingData: String? { get }
  • Header bidding data for ad loading from mediation.

    Declaration

    Swift

    public var headerBiddingData: String? { get }
  • A set of arbitrary input parameters.

    Declaration

    Swift

    public var parameters: [String : String]? { get }
  • Corresponding mutable representation of current ad request.

    Declaration

    Swift

    public var mutableRequest: MutableAdRequest { get }
  • Undocumented

    Declaration

    Swift

    override public convenience init()

NSCopying

  • Undocumented

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any

NSMutableCopying

  • Undocumented

    Declaration

    Swift

    public func mutableCopy(with zone: NSZone? = nil) -> Any