AdManagerDatasource
@objc(AASDKAdManagerDatasource)
public protocol AdManagerDatasource
@protocol
The AdManagerDatasource protocol defines the methods used to provide the SDK with various data.
-
Called when the SDK is about to fire tracking URLs for a specific VAST tracking event. The SDK will receive your custom tracking URLs and fire them along with VAST URLs.
Declaration
Swift
@objc optional func adManager(_ adManager: AdManager, ad: AdData, trackingEventUrls event: VastTrackingEvent) -> [URL]Parameters
adManagerThe AdManager that sent the event
adThe ad that is being played
eventThe VAST tracking event for which to fire the URLs
-
Called when the SDK is about to fire tracking URLs for a specific VAST error. The SDK will receive your custom tracking URLs and fire them along.
Declaration
Swift
@objc optional func adManager(_ adManager: AdManager, ad: AdData, trackingErrorUrls errorCode: VastErrorCode) -> [URL]Parameters
adManagerThe AdManager that sent the event
adThe ad that is being played
errorCodeThe VAST error code for which to fire the URLs
-
Called when the SDK is about to fire the impression URLs. The SDK will receive your custom tracking URLs and fire them along.
Declaration
Parameters
adManagerThe AdManager that sent the event
adThe ad that is being played
-
Called when the SDK is about to fire the companion click tracking URLs. The SDK will receive your custom click tracking URLs and fire them along.
Declaration
Parameters
adManagerThe AdManager that sent the event
adThe ad that is being played
companionThe
Companionfor which to fire the URLs -
Called when the SDK is about to fire the video click tracking URLs. The SDK will receive your custom click tracking URLs and fire them along.
Declaration
Parameters
adManagerThe AdManager that sent the event
adThe ad that is being played