//Invoked when the banner loading process has failed. //@param description - string - contains information about the failure. void BannerAdLoadFailedEvent(IronSourceError error) { //CanvasControl.Instance.IsShowBanner = false; Debug.Log("I got BannerAdLoadFailedEvent, code: " + error.getCode() + ", description : " + error.getDescription()); //GameHelper.Instance.Log("I got BannerAdLoadFailedEvent, code: " + error.getCode() + ", description : " + error.getDescription()); //GameHelper.Instance.IsBannerSwitchOn = false; }
//Invoked when the banner loading process has failed. //@param description - string - contains information about the failure. void BannerAdLoadFailedEvent(IronSourceError error) { Debug.Log("SDK:IronSourceSDK >>>> BannerAdLoadFailedEvent error:" + error.ToString()); Assert.IsTrue(m_BannerStatus == ADStatus.Loading); m_BannerStatus = ADStatus.NotReady; // BannerAdLoadFailedEvent error:606 : No ads to show }
void HandleonGetOfferwallCreditsFailedEvent(IronSourceError error) { if (mOfferWallCallback != null) { mOfferWallCallback(null); } }
// ******************************* Helper methods ******************************* public IronSourceError getErrorFromErrorString(string description) { IronSourceError sse; if (!String.IsNullOrEmpty(description)) { Dictionary <string, object> error = IronSourceJSON.Json.Deserialize(description) as Dictionary <string, object>; // if there is a IronSource error if (error != null) { int eCode = Convert.ToInt32(error [ERROR_CODE].ToString()); string eDescription = error [ERROR_DESCRIPTION].ToString(); sse = new IronSourceError(eCode, eDescription); } // else create an empty one else { sse = new IronSourceError(-1, ""); } } else { sse = new IronSourceError(-1, ""); } return(sse); }
//Invoked when the ad fails to show. //@param description - string - contains information about the failure. void InterstitialAdShowFailedEvent(IronSourceError error) { if (OnInterstitialEndedCallback != null) { OnInterstitialEndedCallback(); } }
public void onOfferwallShowFailed(string description) { if (_onOfferwallShowFailedEvent != null) { IronSourceError sse = getErrorFromErrorString(description); _onOfferwallShowFailedEvent(sse); } }
public void onInterstitialAdLoadFailed(string description) { if (onInterstitialAdLoadFailedEvent != null) { IronSourceError sse = IronSourceUtils.getErrorFromErrorObject(description); onInterstitialAdLoadFailedEvent(sse); } }
//Invoked when the Rewarded Video failed to show //@param description - string - contains information about the failure. void RewardedVideoAdShowFailedEvent(IronSourceError error) { if (debug) { Debug.Log(this + " RewardedVideoAdShowFailedEvent " + error); ScreenWriter.Write(this + " RewardedVideoAdShowFailedEvent " + error); } }
//Invoked when the Rewarded Video failed to show //@param description - string - contains information about the failure. void RewardedVideoAdShowFailedEvent(IronSourceError error) { LDebug.Log("RewardedVideoAdShowFailedEvent" + " " + (error != null ? error.getDescription() : "error is null")); if (RewardShowEventHandler != null) { RewardShowEventHandler(false); } }
//Invoked when the ad fails to show. //@param description - string - contains information about the failure. void InterstitialAdShowFailedEvent(IronSourceError error) { LDebug.Log("==InterstitialAdShowFailedEvent"); if (InterstitialShowEventHandler != null) { InterstitialShowEventHandler(false); } }
void onInterstitialAdShowFailed(string description) { if (this.OnInterstitialAdShowFailed != null) { IronSourceError ssp = IronSourceUtils.getErrorFromErrorObject(description); this.OnInterstitialAdShowFailed(ssp); } }
void onInterstitialAdLoadFailed(string args) { if (this.OnInterstitialAdLoadFailed != null) { IronSourceError err = IronSourceUtils.getErrorFromErrorObject(args); this.OnInterstitialAdLoadFailed(err); } }
public void onGetOfferwallCreditsFailed(string description) { if (OnGetOfferwallCreditsFailed != null) { IronSourceError sse = IronSourceUtils.getErrorFromErrorObject(description); OnGetOfferwallCreditsFailed(sse); } }
void onBannerAdLoadFailed(String args) { if (OnBannerAdLoadFailed != null) { IronSourceError error = IronSourceUtils.getErrorFromErrorObject(args); OnBannerAdLoadFailed(error); } }
void onRewardedVideoAdShowFailed(string description) { if (this.OnRewardedVideoAdShowFailed != null) { IronSourceError ssp = IronSourceUtils.getErrorFromErrorObject(description); this.OnRewardedVideoAdShowFailed(ssp); } }
// *******************************iOS Rewarded Video Events ******************************* public void onRewardedVideoAdShowFailed(string error) { if (onRewardedVideoAdShowFailedEvent != null) { IronSourceError ironSourceError = IronSourceUtils.getErrorFromErrorObject(error); onRewardedVideoAdShowFailedEvent(ironSourceError); } }
public void onBannerAdLoadFailed(string description) { if (_onBannerAdLoadFailedEvent != null) { IronSourceError sse = getErrorFromErrorObject(description); _onBannerAdLoadFailedEvent(sse); } }
public void onGetOfferwallCreditsFailed(string description) { if (_onGetOfferwallCreditsFailedEvent != null) { IronSourceError sse = getErrorFromErrorObject(description); _onGetOfferwallCreditsFailedEvent(sse); } }
public void onOfferwallShowFailed(string description) { if (onOfferwallShowFailedEvent != null) { IronSourceError sse = IronSourceUtils.getErrorFromErrorObject(description); onOfferwallShowFailedEvent(sse); } }
public void onRewardedVideoAdShowFailed(string description) { if (_onRewardedVideoAdShowFailedEvent != null) { IronSourceError sse = getErrorFromErrorObject(description); _onRewardedVideoAdShowFailedEvent(sse); } }
public void onInterstitialAdShowFailed(string description) { if (_onInterstitialAdShowFailedEvent != null) { IronSourceError sse = getErrorFromErrorObject(description); _onInterstitialAdShowFailedEvent(sse); } }
public void onGetOfferwallCreditsFailed(string description) { if (IronSourceEvents._onGetOfferwallCreditsFailedEvent != null) { IronSourceError errorFromErrorObject = getErrorFromErrorObject(description); IronSourceEvents._onGetOfferwallCreditsFailedEvent(errorFromErrorObject); } }
public void onBannerAdLoadFailed(string description) { if (IronSourceEvents._onBannerAdLoadFailedEvent != null) { IronSourceError errorFromErrorObject = getErrorFromErrorObject(description); IronSourceEvents._onBannerAdLoadFailedEvent(errorFromErrorObject); } }
public void onRewardedVideoAdShowFailed(string description) { if (IronSourceEvents._onRewardedVideoAdShowFailedEvent != null) { IronSourceError errorFromErrorObject = getErrorFromErrorObject(description); IronSourceEvents._onRewardedVideoAdShowFailedEvent(errorFromErrorObject); } }
public void onInterstitialAdShowFailed(string description) { if (IronSourceEvents._onInterstitialAdShowFailedEvent != null) { IronSourceError errorFromErrorObject = getErrorFromErrorObject(description); IronSourceEvents._onInterstitialAdShowFailedEvent(errorFromErrorObject); } }
//Invoked when the Rewarded Video failed to show //@param description - string - contains information about the failure. void RewardedVideoAdShowFailedEvent(IronSourceError error) { onAdEventInfo(new AdEventInfo() { adType = AdType.RewardedAd, eventType = AdEventType.REWARDED_AD_FAILED }); notRewardedCallback(mCurrentPlacementName); }
private void RewardedAdFailed(IronSourceError obj) { if (_onEndVideo != null) { TogglePauseOnAds(true); _onEndVideo.Invoke(false); } }
//Invoked when the initialization process has failed. //@param description - string - contains information about the failure. void InterstitialAdLoadFailedEvent(IronSourceError error) { Debug.Log("SDK:IronSourceSDK >>>> InterstitialAdLoadFailedEvent error:" + error.ToString()); Assert.IsTrue(this.m_InterstitialStatus == ADStatus.Loading); this.m_InterstitialStatus = ADStatus.NotReady; this.m_showInterstitialAfterLoaded = false; this.InvokeInterstitialHandlerAndClean(ADResult.InterstitialResult.UNAVAILABLE, true); }
//Invoked when the Rewarded Video failed to show //@param description - string - contains information about the failure. void RewardedVideoAdShowFailedEvent(IronSourceError error) { videoCancelled(); // Couldn't display Debug.LogFormat("<color=red>IronSource Rewarded Ad Show Failed: </color>" + error.ToString()); #if UNITY_IOS Time.timeScale = 1; #endif }
//Invoked when the ad fails to show. //@param description - string - contains information about the failure. void InterstitialAdShowFailedEvent(IronSourceError error) { if (debug) { Debug.Log(this + " Interstitial Failed To Show " + error); ScreenWriter.Write(this + " Interstitial Failed To Show " + error); } StartCoroutine(ReloadInterstitial(reloadTime)); }