Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question None Reward Events Called

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

  1. doublehitgames

    doublehitgames

    Joined:
    Mar 5, 2016
    Posts:
    96
    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");
    4.  
    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;
    12.  
    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

    VirginieC

    Unity Technologies

    Joined:
    Aug 1, 2019
    Posts:
    17
    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!