//public void StartCountDown() //{ // add = 0; // isRun = useReShow; //} //public void StopCountDown() //{ // isRun = false; //} public void Hide() { //StopCountDown(); onHide?.Invoke(); #if !UNITY_EDITOR if (this.mExpressBannerAd != null) { NativeAdManager.Instance().DestoryExpressAd(this.mExpressBannerAd.handle); this.mExpressBannerAd = null; } LoadExpressBannerAd(); #endif }
public void OnAdClose(ExpressAd ad) { Debug.Log("express OnAdClose,type:" + type); }
public void OnAdViewRenderSucc(ExpressAd ad, float width, float height) { Debug.Log("express OnAdViewRenderSucc,type:" + type); }
public void OnAdViewRenderError(ExpressAd ad, int code, string message) { Debug.Log("express OnAdViewRenderError,type:" + type); }
public void OnAdShow(ExpressAd ad) { banner.onShow?.Invoke(); Debug.Log("express OnAdShow,type:" + type); }
public void OnAdClicked(ExpressAd ad) { Debug.Log("express OnAdClicked,type:" + type); }
public void OnAdClose(ExpressAd ad) { Debug.LogError("express OnAdClose,type:" + type); this.example.information.text = "OnAdClose:" + type; }
public void OnAdViewRenderSucc(ExpressAd ad, float width, float height) { Debug.LogError("express OnAdViewRenderSucc,type:"+type); this.example.information.text = "OnAdViewRenderSucc:" + type; }
public void OnAdViewRenderError(ExpressAd ad, int code, string message) { Debug.LogError("express OnAdViewRenderError,type:" + type); this.example.information.text = "OnAdViewRenderError:" + message + ":" + type; }
/// <summary> /// Dispose the reward Ad. /// </summary> public void DisposeAds() { #if UNITY_IOS if (this.rewardAd != null) { this.rewardAd.Dispose(); this.rewardAd = null; } if (this.fullScreenVideoAd != null) { this.fullScreenVideoAd.Dispose(); this.fullScreenVideoAd = null; } if (this.nativeFeedAd != null) { this.nativeFeedAd.Dispose(); this.nativeFeedAd = null; } if (this.mExpressFeedad != null) { this.mExpressFeedad.Dispose(); this.mExpressFeedad = null; } //if (this.intersititialAd != null) //{ // this.intersititialAd.Dispose(); // this.intersititialAd = null; //} if (this.expressRewardAd != null) { this.expressRewardAd.Dispose(); this.expressRewardAd = null; } if (this.expressFullScreenVideoAd != null) { this.expressFullScreenVideoAd.Dispose(); this.expressFullScreenVideoAd = null; } if (this.iExpressBannerAd != null) { this.iExpressBannerAd.Dispose(); this.iExpressBannerAd = null; } #else if (this.rewardAd != null) { this.rewardAd = null; } if (this.fullScreenVideoAd != null) { this.fullScreenVideoAd = null; } if (this.mNativeAd != null) { this.mNativeAd = null; } if (this.mExpressFeedad != null) { NativeAdManager.Instance().DestoryExpressAd(mExpressFeedad.handle); mExpressFeedad = null; } if (this.mExpressBannerAd != null) { NativeAdManager.Instance().DestoryExpressAd(mExpressBannerAd.handle); mExpressBannerAd = null; } if (this.mExpressInterstitialAd != null) { NativeAdManager.Instance().DestoryExpressAd(mExpressInterstitialAd.handle); mExpressInterstitialAd = null; } #endif }