Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug 'UnsupportedRewardedAd' does not implement interface member

Discussion in 'Unity Mediation' started by romandutov, Feb 15, 2022.

  1. romandutov

    romandutov

    Joined:
    Sep 18, 2015
    Posts:
    16
    I got this message. Because UNITY_EDITOR directive not defined.

    Code (CSharp):
    1. Library\PackageCache\com.unity.services.mediation@0.4.0-preview.1\Runtime\Platform\Unsupported\UnsupportedRewardedAd.cs(6,35): error CS0535: 'UnsupportedRewardedAd' does not implement interface member 'IRewardedAd.Show(RewardedAdShowOptions)'
     
  2. MonishGupta

    MonishGupta

    Unity Technologies

    Joined:
    May 30, 2018
    Posts:
    9
    Hey roman!

    Can you tell us what version of Unity you're on?
     
  3. romandutov

    romandutov

    Joined:
    Sep 18, 2015
    Posts:
    16
    Hello, unity version 2020.3.23f1. Mediation services - 0.4.0-preview.1

    I understand that the problem is most likely on my side, maybe it's in the project.
    But the fact is that the IRewardedAd interface has a method declaration void Show(RewardedAdShowOptions showOptions = null); but its inherites (UnsupportedRewardedAd : IRewardedAd)
    implements public void Show() {} - without the RewardedAdShowOptions parameter.
    Most likely this is the problem.
     
  4. jcGrenier

    jcGrenier

    Unity Technologies

    Joined:
    Feb 23, 2021
    Posts:
    145
    My apologies, this one is on me.
    It does indeed seem like I forgot to check the unsupported version.
    On the plus side, the supported versions should work ;)
     
  5. jcGrenier

    jcGrenier

    Unity Technologies

    Joined:
    Feb 23, 2021
    Posts:
    145
    Just a quick note regarding this, 0.4.0-preview.2 was published yesterday, and should fix this issue.
    Cheers!