private void Start() { InterstitialAdManager.OnAdClosed += HandleAdClosed; if (!InterstitialAdManager.isLoaded && !InterstitialAdManager.isLoading) { InterstitialAdManager.CreateAndRequestAd(); } }
private void InitializeServices() { GPGSManager.Initialize(false); FirestoreManager.Initialize(); IAPManager.Initialize((status) => purchasesIsReady = true); MobileAds.Initialize((status) => { RequestConfiguration requestConfiguration = new RequestConfiguration.Builder().SetMaxAdContentRating(_maxAdContentRating).build(); MobileAds.SetRequestConfiguration(requestConfiguration); RewardedAdManager.CreateAndRequestAd(); InterstitialAdManager.CreateAndRequestAd(); adsIsReady = true; }); }