Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.

    Read our full announcement for more information and let us know if you have any questions.

Question None Reward Events Called

Discussion in 'Unity Mediation' started by doublehitgames, Oct 30, 2023.

  1. doublehitgames


    Mar 5, 2016
    Hey Guys, im trying it:

    Code (CSharp):
    1.  bool available = IronSource.Agent.isRewardedVideoAvailable();
    2.             if (available)
    3.             {
    4.                 IronSource.Agent.showRewardedVideo();
    5.             }
    6.             else
    7.             {
    8.                 IronSource.Agent.loadRewardedVideo();
    9.             }
    My Reward Video is showed correctly, but nove events from IronSourceRewardedVideoEvents is called. None. Im trying all events but none of them is called. At documentations there are these:
    Code (CSharp):
    1. //Add AdInfo Rewarded Video Events
    2. IronSourceRewardedVideoEvents.onAdOpenedEvent += RewardedVideoOnAdOpenedEvent;
    3. IronSourceRewardedVideoEvents.onAdClosedEvent += RewardedVideoOnAdClosedEvent;
    4. IronSourceRewardedVideoEvents.onAdAvailableEvent += RewardedVideoOnAdAvailable;
    5. IronSourceRewardedVideoEvents.onAdUnavailableEvent += RewardedVideoOnAdUnavailable;
    6. IronSourceRewardedVideoEvents.onAdShowFailedEvent += RewardedVideoOnAdShowFailedEvent;
    7. IronSourceRewardedVideoEvents.onAdRewardedEvent += RewardedVideoOnAdRewardedEvent;
    8. IronSourceRewardedVideoEvents.onAdClickedEvent += RewardedVideoOnAdClickedEvent;
    Im tryint others ads, like as BANNER and INTERSTITIAL, and all working the events but Rewards NONE.

    Im using Unity Unity 2022.3.12f1 And IronSource 7.5.2 upload_2023-10-30_16-33-9.png

    Whats im missing?

    My preview code is:

    Code (CSharp):
    1.    private void OnEnable()
    2.         {
    3.             Debug.LogError("ENNABLED BUTTON OF REWARD");
    5.             //Add AdInfo Rewarded Video Events (NONE WORKING)
    6.             IronSourceRewardedVideoEvents.onAdAvailableEvent += RewardedVideoOnAdAvailable;
    7.             IronSourceRewardedVideoEvents.onAdUnavailableEvent += RewardedVideoOnAdUnavailable;
    8.             IronSourceRewardedVideoEvents.onAdClosedEvent += RewardedVideoOnAdClosedEvent;
    9.             IronSourceRewardedVideoEvents.onAdShowFailedEvent += RewardedVideoOnAdShowFailedEvent;
    10.             IronSourceRewardedVideoEvents.onAdRewardedEvent += RewardedVideoOnAdRewardedEvent;
    11.             IronSourceRewardedVideoEvents.onAdOpenedEvent += RewardedVideoOnAdOpenedEvent;
    13.             //Add Interstitial events. (ALL WORK)
    14.             IronSourceInterstitialEvents.onAdLoadFailedEvent += OnInterstitialLoadFailed;
    15.             IronSourceInterstitialEvents.onAdShowFailedEvent += OnInterstitialShowFailed;
    16.             IronSourceInterstitialEvents.onAdReadyEvent += OnInterstitialReady;
    17.             IronSourceInterstitialEvents.onAdClosedEvent += OnInterstitialClosed;
    18.         }
    Last edited: Oct 30, 2023
  2. VirginieC


    Unity Technologies

    Aug 1, 2019
    Hey doublehitgames,
    You are in the wrong forum, this one is dedicated to the Unity mediation package (soon deprecated, see this post). You would be better to ask this question to the LevelPlay forum. Good luck!