NativeAdDelegate

@objc(YMANativeAdDelegate)
@MainActor
public protocol NativeAdDelegate : NSObjectProtocol

Undocumented

  • Notifies that the user has clicked on the ad.

    Declaration

    Swift

    @objc
    @MainActor
    func nativeAdDidClick(_ ad: NativeAd)

    Parameters

    ad

    A reference to the object that invoked the method.

  • Notifies delegate when an impression was tracked.

    Declaration

    Swift

    @objc(nativeAd:didTrackImpressionWithData:)
    @MainActor
    func nativeAd(_ ad: NativeAd, didTrackImpression impressionData: ImpressionData?)

    Parameters

    ad

    A reference to the object that invoked the method.

    impressionData

    Ad impression-level revenue data