Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

"rewardedVideoZone" never ready during testing.

Discussion in 'Unity Ads & User Acquisition' started by Aaron_T, Feb 28, 2016.

  1. Aaron_T

    Aaron_T

    Joined:
    Sep 30, 2014
    Posts:
    123
    Hello,

    I recently started implementing Unity Ads into my game and I'm testing rewarded ads. I have the standard code to show rewarded video and an else clause for debugging like so.

    Code (CSharp):
    1. if (Advertisement.IsReady("rewardedVideoZone"))
    2. {
    3.     ShowOptions options = new ShowOptions { resultCallback = HandleShowResult };
    4.     Advertisement.Show("rewardedVideoZone", options);
    5. }
    6. else
    7.     Debug.Log("Is initialized: " + Advertisement.isInitialized + ". Is supported: " + Advertisement.isSupported + ". gameId: " + Advertisement.gameId);
    But, when that code is run it logs "Is initialized: True. Is supported: True. gameId: [redacted]", meaning that the advertisement never is ready.

    I added another function to show non-rewarded videos (with no parameters for Advertisement.IsReady and Advertisement.Show) and that runs successfully every time.

    Do rewarded ads not work in test mode or is there some other issue?
     
    Last edited by a moderator: Feb 28, 2016
  2. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Aaron_T likes this.
  3. Aaron_T

    Aaron_T

    Joined:
    Sep 30, 2014
    Posts:
    123
    Works like a charm with the updated parameter, thanks!
     
    rasmus-unity likes this.
  4. christianstrang

    christianstrang

    Joined:
    Aug 6, 2013
    Posts:
    29
    Had the same issue, hope the docs get updated soon!