AdRequestConfiguration

@objc(YMAAdRequestConfiguration)
@objcMembers
public class AdRequestConfiguration : NSObject, NSCopying, NSMutableCopying

This class is responsible for configuring native ad loading.

  • The AdUnit ID is a unique identifier in the R-M-XXXXXX-Y format, which is assigned in the Partner interface.

    Declaration

    Swift

    public var adUnitID: String { get }
  • 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 }
  • A set of arbitrary input parameters.

    Declaration

    Swift

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

    Declaration

    Swift

    public var mutableConfiguration: MutableAdRequestConfiguration { get }
  • Initializes a new object of the AdRequestConfiguration class.

    Declaration

    Swift

    @objc(initWithAdUnitID:)
    public convenience init(adUnitID: String)

    Parameters

    adUnitID

    The AdUnit ID is a unique identifier in the R-M-XXXXXX-Y format, which is assigned in the Partner interface.

    Return Value

    An object of the AdRequestConfiguration class, configuration for loading native ads.

NSCopying

  • Undocumented

    Declaration

    Swift

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

NSMutableCopying

  • Undocumented

    Declaration

    Swift

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