InteractiveAdManagerDelegate

@objc(AASDKInteractiveAdManagerDelegate)
public protocol InteractiveAdManagerDelegate

@protocol

The InteractiveAdManagerDelegate protocol defines the methods used to retrieve information about interactive ads.

  • This callback is triggered immediately after the coupon has been downloaded (the download of the coupon may be triggered by a shake event). It gives the host application a chance to take control over presenting coupons. This callback is always triggered on the main thread.

    Declaration

    Swift

    @objc
    func interactiveAdManager(_ adManager: AdManagerOwner, shouldPresentCoupon pkpassData: Data)

    Parameters

    adManager

    The AdManagerOwner that sent the event

    pkpassData

    The coupon in NSData format

  • Called when there is an event with the current ad in the ad manager

    Declaration

    Swift

    @objc
    func interactiveAdManager(_ adManager: AdManagerOwner, didReceiveAdEvent event: InteractiveAdEvent)

    Parameters

    adManager

    The AdManagerOwner that sent the event

    event

    interactive event