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

    adManager

    The AdManager that sent the event

    ad

    The ad that is being played

    event

    The 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

    adManager

    The AdManager that sent the event

    ad

    The ad that is being played

    errorCode

    The 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

    Swift

    @objc
    optional func adManagerImpressionUrls(_ adManager: AdManager, ad: AdData) -> [URL]

    Parameters

    adManager

    The AdManager that sent the event

    ad

    The 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

    Swift

    @objc
    optional func adManagerCompanionClickTrackingUrls(_ adManager: AdManager, ad: AdData, _ companion: Companion) -> [URL]

    Parameters

    adManager

    The AdManager that sent the event

    ad

    The ad that is being played

    companion

    The Companion for 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

    Swift

    @objc
    optional func adManagerVideoClickTrackingUrls(_ adManager: AdManager, ad: AdData) -> [URL]

    Parameters

    adManager

    The AdManager that sent the event

    ad

    The ad that is being played