SliderAdDelegate

@objc(YMASliderAdDelegate)
@MainActor
public protocol SliderAdDelegate : NSObjectProtocol

Undocumented

  • Notifies that the user has clicked on the ad.

    Declaration

    Swift

    @objc
    @MainActor
    func sliderAdDidClick(_ ad: SliderAd)

    Parameters

    ad

    A reference to the object that invoked the method.

  • Notifies delegate when an impression was tracked.

    Declaration

    Swift

    @objc(sliderAd:didTrackImpressionWithData:)
    @MainActor
    func sliderAd(_ ad: SliderAd, didTrackImpression impressionData: ImpressionData?)

    Parameters

    ad

    A reference to the object that invoked the method.

    impressionData

    Ad impression-level revenue data