Googleads-mobile-unity: OnUserEarnedReward is called after OnAdClosed in Unity editor

Created on 22 Feb 2021  路  2Comments  路  Source: googleads/googleads-mobile-unity

Step 1: Describe your environment

  • Unity version: 2018.4.30
  • Google Mobile Ads Unity plugin version: 5.4.0
  • Platform: Unity Editor
  • Platform OS version: --
  • Any specific devices issue occurs on: Unity Editor
  • Mediation ad networks used, and their versions: --

Step 2: Describe the problem

Steps to reproduce:

OnUserEarnedRewardevent is called after OnAdClosedin editor. When built to device OnUserEarnedRewardis called before OnAdClosed. After peeking around quite a bit online it seems as though OnUserEarnedRewardshould be called prior to OnAdClosedalways. If this is the case the implementation in editor should reflect this :)

Relevant Code:

https://github.com/googleads/googleads-mobile-unity/blob/7a9bc72d6441edfe170fb9b4985cfbeede388772/source/plugin/Assets/GoogleMobileAds/Platforms/Unity/RewardingAdBaseClient.cs#L74-L84

Most helpful comment

On top of what @thsbrown has mentioned, the RewardedAd prefab should have a button at all times to allow the user to close the ad without getting the reward.

All 2 comments

On top of what @thsbrown has mentioned, the RewardedAd prefab should have a button at all times to allow the user to close the ad without getting the reward.

I am using Google Mobile Ads Unity Plugin v6.1.0 and the issue described above is reproducible on my end as well. OnUserEarnedReward ought to be called before OnAdClosed

Was this page helpful?
0 / 5 - 0 ratings