max isready 空广告位判断

This commit is contained in:
juncong lee 2025-09-18 12:13:12 +08:00
parent 9832233dea
commit 2f5914671c
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ namespace WZ
private bool IsAdsAvailable(string adUnit, AdsType adsType) private bool IsAdsAvailable(string adUnit, AdsType adsType)
{ {
if (string.IsNullOrEmpty(adUnit)) return false;
if (adsType == AdsType.Rewarded) if (adsType == AdsType.Rewarded)
{ {
if (!_maxRewardedUnits.Contains(adUnit)) return false; if (!_maxRewardedUnits.Contains(adUnit)) return false;