AdropNativeAdDelegate

protocol AdropNativeAdDelegate {

    @objc func onAdReceived(_ ad: AdropAds.AdropNativeAd)

    @objc func onAdFailedToReceive(_ ad: AdropAds.AdropNativeAd, _ errorCode: AdropAds.AdropErrorCode)

    @objc func onAdClicked(_ ad: AdropAds.AdropNativeAd)
}

Delegate called when there is a change in the AdropNativeAd.


Public functions

func onAdReceived(_ ad: AdropNativeAd)

func onAdReceived(_ ad: AdropNativeAd)

This method gets invoked in the UI thread when the AdropNative receives an ad.

func onAdFailedToReceive(_ ad: AdropNativeAd, _ errorCode: AdropErrorCode)

func onAdFailedToReceive(_ ad: AdropNativeAd, _ errorCode: AdropErrorCode)

This method gets invoked in the UI thread when the AdropNative fails to receive an ad.

func onAdClicked(_ ad: AdropNativeAd)

func onAdClicked(_ ad: AdropNativeAd)

This method gets invoked in the UI thread when the AdropNative is clicked.

Last updated