void CBDidDismissRewardedVideo(CBLocation location) { if (mIsCBRewardedAdCompleted) { mIsCBRewardedAdCompleted = false; OnRewardedAdCompleted(AdPlacement.PlacementWithName(location.ToString())); } else { OnRewardedAdSkipped(AdPlacement.PlacementWithName(location.ToString())); } }
void CBDidDisplayInterstitial(CBLocation location) { MyDebug.Log(false, "AdsMGS::CBDidDisplayInterstitial: " + location); AdLocation al = GetPlacement("GameStart"); StoreInfo si = al.GetIdsFor(_store); if(si.CBLoation.Equals(location.ToString())) { isFirstTimeShow = false; MyDebug.Log(false, "Game Start Ads Shown at " + DateTime.UtcNow.ToString("O")); } }
void CBDidCloseInterstitial(CBLocation location) { MyDebug.Log(false, "AdsMGS::CBDidCloseInterstitial: " + location); AdLocation al = GetPlacement("BackFromBG"); StoreInfo si = al.GetIdsFor(_store); if(si.CBLoation.Equals(location.ToString())) { MyDebug.Log(false, "Back From BG Ads Shown at " + DateTime.UtcNow.ToString("O")); _lastBGAddShown = DateTime.UtcNow; } }
void FailToLoadInterstitial(CBLocation location, CBImpressionError error) { Debug.LogWarning("Ad fail to show at: " + location.ToString() + " with error: " + error.ToString()); }
private void onChartBoostVideoLoadFailed(CBLocation location, CBImpressionError error) { Debug.Log("Interstitial not loaded at location: " + location.ToString()); Debug.Log("with error: " + error.GetType()); }
void CBDidDismissInterstitial(CBLocation location) { OnInterstitialAdCompleted(AdPlacement.PlacementWithName(location.ToString())); }
void CBDidCloseRewardedVideo(CBLocation location) { if (isCBRewardedAdCompleted) { isCBRewardedAdCompleted = false; if (RewardedAdCompleted != null) { RewardedAdCompleted(RewardedAdNetwork.Chartboost, AdLocation.LocationFromName(location.ToString())); } } else { if (RewardedAdSkipped != null) { RewardedAdSkipped(RewardedAdNetwork.Chartboost, AdLocation.LocationFromName(location.ToString())); } } }
void CBDidCloseInterstitial(CBLocation location) { if (InterstitialAdCompleted != null) { InterstitialAdCompleted(InterstitialAdNetwork.Chartboost, AdLocation.LocationFromName(location.ToString())); } }
DidFailToLoadRewardedVideo(CBLocation location, CBImpressionError cbImpressionError) => CbError( what: "Rewarded video failed to load", location: location.ToString(), errorText: cbImpressionError.ToString());
private void DidFailToRecordClick(CBLocation location, CBClickError cbClickError) => CbError( what: "Failed to record click", location: location.ToString(), errorText: cbClickError.ToString());
private void DidFailToLoadInterstitial(CBLocation location, CBImpressionError cbImpressionError) => CbError( what: "Interstitial failed to load", location: location.ToString(), errorText: cbImpressionError.ToString());