AdInfo
@objc(YMAAdInfo)
@objcMembers
public final class AdInfo : NSObject, Sendable
A class with information data for ad.
-
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 } -
Any string in the ad (set in the Partner interface).
Warning
This property is only used for working with ADFOX.Declaration
Swift
@available(*, deprecated, message: "`info` property is deprecated. Use `adAttributes` property of ad class instead.") public var data: String? { get } -
Size of downloaded ad.
Declaration
Swift
public var adSize: AdSize? { get } -
Undocumented
Declaration
Swift
@objc(initWithAdUnitId:adSize:) public convenience init(adUnitId: String, adSize: AdSize?)