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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Cant override unity ads client test mode

Discussion in 'Unity Ads & User Acquisition' started by DarkVito, May 2, 2020.

  1. DarkVito

    DarkVito

    Joined:
    May 21, 2019
    Posts:
    5
    Hello, i have game in google play and testflight. In dashboard i override test mode OFF 6 hours ago, and i still see test ads in my game. I tested it on lot of device, and no happens. I doublechek game ID, and list of test device. But test ads work perfect and i dont see real ads. There is link at Google Play: https://play.google.com/store/apps/details?id=com.threehundredsec.panelka You need lose twice to wiev ads


    upload_2020-5-2_19-9-49.png



    There is my simple code which refers to UnityADS.

    Code (CSharp):
    1. #if UNITY_IOS
    2.     private string gameId = "34500**";
    3. #elif UNITY_ANDROID
    4.     private string gameId = "34500**";
    5. #endif
    6.  
    7. void Start()
    8.     {
    9.             Advertisement.Initialize(gameId, true);      
    10.     }
    11.  
    12.  
    13.  
    14.  
    15. if(GameOver)
    16. {
    17. Advertisement.Show("video");
    18.  
    19.  
    20. }

    What i shall to do?
     
    Last edited: May 2, 2020
  2. DarkVito

    DarkVito

    Joined:
    May 21, 2019
    Posts:
    5
    Sorry, i await and my problem was sloved. Migth be you need whait 6+ hours to override test mode
     
  3. kyle-unity

    kyle-unity

    Unity Technologies

    Joined:
    Jan 6, 2020
    Posts:
    336
    @DarkVito I'm glad you got it working! I'll also add that you are initializing the SDK on line 9 with the second parameter as "true" which will try to initialize in test mode. However, as you said, you are overriding this from the dashboard, so it's working as expected for you.
     
  4. yassinechater03

    yassinechater03

    Joined:
    Apr 26, 2020
    Posts:
    1
    SO if i want to show real ads to my users should i just uncheck ovveride client mode . or should i force test mode off.
    please i need answer am new here
     
  5. kyle-unity

    kyle-unity

    Unity Technologies

    Joined:
    Jan 6, 2020
    Posts:
    336
    Either one of those should work. The dashboard option is just an override to what you set in the code.
     
  6. whitedrow

    whitedrow

    Joined:
    Mar 31, 2008
    Posts:
    15
    Hi,
    I've overrided the TestMode in from the dashboard. How can I reset the dashboard to the initial settings?

    Because right now I only have the options to:
    force test mode ON
    force test mode OFF


    I would like to have to standard behaviour back.

    Or is it so, that TestMode only works in development build and in release Builds there is no TestMode and/or Override?

    [EDIT]
    Sorry - it all works pretty well. After some time (reloads, browser cache clearings - cant tell anymore) I was able to untick the override checkbox. So I will leave this comment for those who would ran into the same problem.
     
    Last edited: Feb 22, 2021