Additional Methods

You are here:
Estimated reading time: 1 min

These are the methods that you could use to get more information about of some ads

BANNERS

Return true when the banner is closed:

EasyGoogleAds.current.OnBannerClosed()

Return true if the banner fail at load:

EasyGoogleAds.current.OnBannerFailedToLoad()

Return true if the player is leaving the application while the banner is showed:

EasyGoogleAds.current.OnBannerLeavingApplication()

Return true when the banner is ready to be shown

EasyGoogleAds.current.OnBannerLoaded()

Return true while the banner is opening

EasyGoogleAds.current.OnBannerOpening()

Example:

if (EasyGoogleAds.current.OnBannerClosed()) {
            text.text = Banner Closed;
        }
        if (EasyGoogleAds.current.OnBannerFailedToLoad()) {
            text.text = Banner Failed To Load;

        }
        if (EasyGoogleAds.current.OnBannerLeavingApplication()) {
            text.text = Banner Leaving Application;

        }
        if (EasyGoogleAds.current.OnBannerLoaded()) {
            text.text = Banner Loaded;
        }
        if (EasyGoogleAds.current.OnBannerOpening()) {
            text.text = Banner Opening;
        }

INSTERSTITIAL

Return true when the interstitial is closed:

EasyGoogleAds.current.OnInterstitialClosed()

Return true if the interstitial fail at load:

EasyGoogleAds.current.OnInterstitialFailedToLoad()

Return true if the player is leaving the application while the interstitial is showed:

EasyGoogleAds.current.OnInterstitialLeavingApplication()

Return true when the interstitial is ready to be shown

EasyGoogleAds.current.OnInterstitialLoaded()

Return true while the interstitial is opening

EasyGoogleAds.current.OnInterstitialOpening()

Example:

if (EasyGoogleAds.current.OnInterstitialFailedToLoad()) {
            text.text = Interstitial Failed To Load;

        }
    
        if (EasyGoogleAds.current.OnInterstitialLoaded()) {
            text.text = Interstitial Loaded;
        }

if (EasyGoogleAds.current.OnInterstitialClosed()) {
            text.text = Interstitial Closed;
        }
        if (EasyGoogleAds.current.OnInterstitialLeavingApplication()) {
            text.text = Interstitial Leaving Application;

        }
        if (EasyGoogleAds.current.OnInterstitialOpening()) {
            text.text = Interstitial Opening;
        }

REWARDS VIDEO

Return true when the reward video is closed:

EasyGoogleAds.current.OnRewardVideoClosed()

Return true if the reward video fail at load:

EasyGoogleAds.current.OnRewardVideoFailedToLoad()

Return true if the player is leaving the application while the reward video is showed:

EasyGoogleAds.current.OnRewardVideoLeavingApplication()

Return true when the reward video is ready to be shown

EasyGoogleAds.current.OnRewardVideoIsLoaded()

Return true while the reward video is opening

EasyGoogleAds.current.OnRewardVideoOpening()

Example:

if (EasyGoogleAds.current.OnRewardVideoIsLoaded()) {
            text.text = Reward video Loaded;
        }
        if (EasyGoogleAds.current.OnRewardVideoFailedToLoad()) {
            text.text = Reward video Failed To Load;

        }

if (EasyGoogleAds.current.OnRewardVideoClosed()) {
            text.text = Reward video Closed;
        }
    
        if (EasyGoogleAds.current.OnRewardVideoLeavingApplication()) {
            text.text = Reward Video Leaving Application;

        }

        if (EasyGoogleAds.current.OnRewardVideoOpening()) {
            text.text = Reward video Opening;
        }

Was this article helpful?
Dislike 0
Views: 30