// Rewarded Ad public void OnShowRewardedAd() { // Check whether a rewarded ad is ready if (!Enhance.IsRewardedAdReady()) { return; } }
public void ShowRewarded() { Debug.Log("rewarded"); if (Enhance.IsRewardedAdReady()) { Enhance.ShowRewardedAd(OnRewardGranted, OnRewardDeclined, OnRewardUnavailable); } }
// Rewarded Ad public void OnShowRewardedAd() { // Check whether a rewarded ad is ready if (!Enhance.IsRewardedAdReady()) { writeLog("Rewarded ad is not ready"); return; } // The ad is ready, show it Enhance.ShowRewardedAd(OnRewardGranted, OnRewardDeclined, OnRewardUnavailable); writeLog("Showing rewarded ad"); }
/** * Check if a rewarded ad is ready * * @return true if a rewarded ad is ready, false if not */ public static bool IsRewardedAdReady(string placement = REWARDED_PLACEMENT_NEUTRAL) { return(Enhance.IsRewardedAdReady(placement)); }