private void ShowAds(AdsPlacementType adsType) { switch (adsType) { case AdsPlacementType.rewardedVideo: if (Advertisement.IsReady(adsType.ToString())) { Advertisement.Show(adsType.ToString()); } else { Debug.LogWarning("Don't have any rewarded ads in the pool"); } break; case AdsPlacementType.bannerPlacement: Advertisement.Banner.SetPosition(BannerPosition.BOTTOM_CENTER); Advertisement.Banner.Show(adsType.ToString()); break; case AdsPlacementType.intersitialAds: if (Advertisement.IsReady()) { Advertisement.Show(); } else { Debug.Log("Havuz boş"); } break; } }
public static void TriggerPlayAds(AdsPlacementType type) { PlayAdsEvent?.Invoke(type); }