AdRequest
@objc(AASDKAdRequest)
open class AdRequest : NSObject
The AdRequest is a base class that encapsulates the components of a request used to fetch ads from an ad server.
Use AdswizzAdRequest for a complete implementation that can be used to fetch ads from an Adswizz ad server.
-
The expected number of ads returned by the
AdRequestresponse. Defaults to 0 which means that there is no specific expectation. Read-only.Declaration
Swift
@objc open private(set) var expectedAdsCount: UInt { get } -
The URL for the
AdRequestserver call.Declaration
Swift
@objc open private(set) var url: URL? { get } -
Designated initializer for a plain
AdRequestobject.Declaration
Swift
public override init() -
Initialize a plain
AdRequestwith optional analytics custom data to be used by customAnalyticsConnectorobjects.Declaration
Swift
@objc public init(analyticsCustomData: AnalyticsCustomData? = nil)Parameters
analyticsCustomDatacustom interface to pass in custom params when
AnalyticsEvententries are logged