private void HandleShowResultReward(ShowResult result) { switch (result) { case ShowResult.Finished: CLog.Log(this, "The ad was successfully shown."); AdsMaster.OnCompletedReward(ProviderID.UnityAd, true); break; case ShowResult.Skipped: CLog.Log(this, "The ad was skipped before reaching the end."); AdsMaster.OnCompletedReward(ProviderID.UnityAd, false); break; case ShowResult.Failed: CLog.Err(this, "The ad failed to be shown."); AdsMaster.OnCompletedReward(ProviderID.UnityAd, false); break; } AdsMaster.OnDimissAd(AdType.Rewarded); }
/// <summary> /// Thông báo kết của của hành động xem video /// </summary> /// <param name="success"></param> protected void DidCompletedVideo(bool success) { AdsMaster.OnCompletedReward(providerId, success); }
private void didCompleteRewardedVideo(CBLocation location, int reward) { //CLog.Log(this, "didCompleteRewardedVideo"); AdsMaster.OnCompletedReward(ID, true); }