Exemplo n.º 1
0
 public void HandleRewardedAdFailedToLoad(object sender, AdErrorEventArgs args)
 {
     Debug.Log(
         "HandleRewardedAdFailedToLoad event received with message: "
         + args.Message);
     MobileAdsEventExecutor.ExecuteInUpdate(() =>
     {
         RewardAd_CallBack.Invoke(ADS_CALLBACK_STATE.FAIL);
     });
 }
Exemplo n.º 2
0
    public void HandleUserEarnedReward(object sender, Reward args)
    {
        MobileAdsEventExecutor.ExecuteInUpdate(() =>
        {
            string type   = args.Type;
            double amount = args.Amount;
            Debug.Log(
                "HandleRewardedAdRewarded event received for "
                + amount.ToString() + " " + type);
            FirebaseManager.instance.LogRewarded();
            timeLastShowReward = Config.GetTimeStamp();
            RewardAd_CallBack.Invoke(ADS_CALLBACK_STATE.SUCCESS);
        });

        //RequestAndLoadRewardedAd();
    }