コード例 #1
0
        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);
        }