//-------------------------------------- // EVENTS //-------------------------------------- public void OnBannerAdLoaded() { if (destroyOnLoad) { AN_GoogleAdProxy.DestroyBanner(id); return; } _IsLoaded = true; if (ShowOnLoad && firstLoad) { Show(); firstLoad = false; } _OnLoadedAction(this); }
//-------------------------------------- // EVENTS //-------------------------------------- public void OnBannerAdLoaded() { if (destroyOnLoad) { AN_GoogleAdProxy.DestroyBanner(id); return; } _IsLoaded = true; if (ShowOnLoad && firstLoad) { Show(); firstLoad = false; } _OnLoadedAction(this); dispatch(GoogleMobileAdEvents.ON_BANNER_AD_LOADED); }
public void DestroyBanner(int id) { if (_banners != null) { if (_banners.ContainsKey(id)) { AndroidADBanner banner = _banners[id]; if (banner.IsLoaded) { _banners.Remove(id); AN_GoogleAdProxy.DestroyBanner(id); } else { banner.DestroyAfterLoad(); } } } }