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 AdRequest response. Defaults to 0 which means that there is no specific expectation. Read-only.

    Declaration

    Swift

    @objc
    open private(set) var expectedAdsCount: UInt { get }
  • url

    The URL for the AdRequest server 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 AdRequest with optional analytics custom data to be used by custom AnalyticsConnector objects.

    Declaration

    Swift

    @objc
    public init(analyticsCustomData: AnalyticsCustomData? = nil)

    Parameters

    analyticsCustomData

    custom interface to pass in custom params when AnalyticsEvent entries are logged