Skip to content

AdListener

The AdListener class allows you to listen to lifecycle events for banner ads loaded via AdView and native overlay ads loaded via NativeOverlayAd.

Properties

All properties are callable delegates (or action delegates in C#) that trigger when the respective ad event occurs:

on_ad_clicked / OnAdClicked

Triggered when the user clicks the ad.

var on_ad_clicked: Callable
public Action OnAdClicked { get; set; }

on_ad_closed / OnAdClosed

Triggered when the user closes the overlay of an ad or returns to the application.

var on_ad_closed: Callable
public Action OnAdClosed { get; set; }

on_ad_failed_to_load / OnAdFailedToLoad

Triggered when the ad fails to load. Receives a LoadAdError detailing the error.

var on_ad_failed_to_load: Callable # Receives LoadAdError
public Action<LoadAdError> OnAdFailedToLoad { get; set; }

on_ad_impression / OnAdImpression

Triggered when an ad impression is recorded.

var on_ad_impression: Callable
public Action OnAdImpression { get; set; }

on_ad_loaded / OnAdLoaded

Triggered when the ad is loaded successfully.

var on_ad_loaded: Callable
public Action OnAdLoaded { get; set; }

on_ad_opened / OnAdOpened

Triggered when the ad opens a full-screen overlay overlaying the application.

var on_ad_opened: Callable
public Action OnAdOpened { get; set; }