NativeAdEventDelegate
@objc
public protocol NativeAdEventDelegate
A protocol for handling events related to native ads.
This protocol defines optional methods that can be implemented to handle various events associated with native ads, such as expiration, clicks, and impressions. Implementing this protocol allows for custom handling of these events within the native ad lifecycle.
-
Sent when the native ad is expired.
Declaration
Swift
@objc optional func adDidExpire(ad: NativeAd)
-
Sent when the native view is clicked by the user.
Declaration
Swift
@objc optional func adWasClicked(ad: NativeAd)
-
Sent when an impression is recorded for an native ad
Declaration
Swift
@objc optional func adDidLogImpression(ad: NativeAd)