private bool ShowRewardedAdFromNetwork(FullScreenAdsNetworks network) { switch (network) { case FullScreenAdsNetworks.Unity: if (unityAdsModule.IsRewardedAdLoaded()) { unityAdsModule.ShoRewardedAd(); return(true); } else { StatusShow.instance.ShowAdStatus("**. unity was not ready...."); return(false); } case FullScreenAdsNetworks.Admob: if (admobAdsModule.IsRewardedAdLoaded()) { admobAdsModule.ShowRewardedAd(); return(true); } else { StatusShow.instance.ShowAdStatus("**. Admob was not ready...."); return(false); } case FullScreenAdsNetworks.FBAudience: if (fbAudienceAdModule.IsRewardedAdLoaded()) { fbAudienceAdModule.ShowRewardedAd(); return(true); } else { StatusShow.instance.ShowAdStatus("**. FB was not ready...."); return(false); } default: StatusShow.instance.ShowAdStatus("**. required network was null"); return(false); } }
private bool IsRewardedAdLoadedFromNetwork(FullScreenAdsNetworks network) { switch (network) { case FullScreenAdsNetworks.Unity: if (unityAdsModule.IsRewardedAdLoaded()) { return(true); } else { return(false); } case FullScreenAdsNetworks.Admob: if (admobAdsModule.IsRewardedAdLoaded()) { return(true); } else { return(false); } case FullScreenAdsNetworks.FBAudience: if (fbAudienceAdModule.IsRewardedAdLoaded()) { return(true); } else { return(false); } default: return(false); } }