Example #1
0
    private void Start()
    {
        InterstitialAdManager.OnAdClosed += HandleAdClosed;

        if (!InterstitialAdManager.isLoaded && !InterstitialAdManager.isLoading)
        {
            InterstitialAdManager.CreateAndRequestAd();
        }
    }
Example #2
0
    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;
        });
    }