NativeAdRequestConfiguration
@objc(YMANativeAdRequestConfiguration)
@objcMembers
public class NativeAdRequestConfiguration : 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 }
-
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 }
-
Flag for automatic image loading. Acceptable values:
true
– Load automatically;false
– Load manually.Warning
If the app simultaneously stores links to a large number of ads, we recommend using manual image loading.Declaration
Swift
public var shouldLoadImagesAutomatically: Bool { get }
-
Corresponding mutable representation of current native ad request configuration.
Declaration
Swift
public var mutableConfiguration: MutableNativeAdRequestConfiguration { get }
-
Initializes a new object of the
NativeAdRequestConfiguration
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
NativeAdRequestConfiguration
class, configuration for loading native ads.
-
Undocumented
Declaration
Swift
public func copy(with zone: NSZone? = nil) -> Any
-
Undocumented
Declaration
Swift
public func mutableCopy(with zone: NSZone? = nil) -> Any