AdManager
@objc(AASDKAdManager)
public protocol AdManager
The AdManager
provides support while playing the ads.
-
Ad manager settings object
Declaration
Swift
@objc var adManagerSettings: AdManagerSettings { get set }
-
Ad Manager delegate
Declaration
Swift
@objc weak var delegate: AdManagerDelegate? { get set }
-
Ad Manager datasource
Declaration
Swift
@objc weak var datasource: AdManagerDatasource? { get set }
-
Ad Manager interstitial event datasource
Declaration
Swift
@objc weak var interstitialDatasource: AdManagerInterstitialEventDatasource? { get set }
-
Undocumented
Declaration
Swift
@objc weak var interactiveDelegate: InteractiveAdManagerDelegate? { get set }
-
Returns the array of VAST playable ads currently stored by the Ad manager object. May be empty if no ads were fetched.
ads
can safely be accessed right after the Ad Manager has been obtained, before callingprepare()
, or even during ad playback. A zero count means the Ad Manager will not play any ad.Declaration
Swift
@objc var ads: [AdData] { get }
-
Analytics interface for custom data that the AdswizzSDK will use for all
AnalyticsEvent
entries related to the ad lifecycle.Declaration
Swift
@objc var analyticsCustomData: AnalyticsCustomData? { get set }
-
Prepare and load the ads.
Declaration
Swift
@objc func prepare()
-
Play an ad when using the internal player.
Declaration
Swift
@objc func play()
-
Pause an ad when using the internal player.
Declaration
Swift
@objc func pause()
-
Whether an ad break is currently playing or not, skip it and resume content or move to the next ad.
Declaration
Swift
@objc func skipAd()
-
Whether an ad break is currently playing or not, skip it and resume content or move to the next ad. Additionally, the
AdManager
will notify back theerror
via theAdManagerDelegate
error callback and fire VAST errors.Declaration
Swift
@objc func skipAd(with error: Error)
-
Causes the Ad manager to stop all the ads.
Declaration
Swift
@objc func reset()