Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Android UnityAds won't show

Discussion in 'Unity Ads & User Acquisition' started by DarkToadster, Jul 23, 2017.

  1. DarkToadster

    DarkToadster

    Joined:
    Sep 10, 2015
    Posts:
    18
    Hey folks !
    I have some trouble getting UnityAds to work.
    I already testet the Service Tab Version of UnityAds as well as the Asset Store Version.
    Both did only show up the Advertisement in the Editor.
    The Game is already published on Google Play.
    On phone im only getting to the "is Initialized" Step. Not further.

    • Game ID in Code.
    • Debug Mode is disabled;
    • Dashboard is linked to Google Play
    • Rewarded Video is set to Standard
    • Ad Filtering is "empty"
    • Testmode is "Force test mode OFF (i.e. use production ads) for all devices"
    • Deliver Status is on

    CodeSnippet from my Game

    Code (CSharp):
    1.    
    2.  
    3.     public void ShowRewardedAd()
    4.     {
    5.         debug.text += "[Ad view started] ";
    6.         StartCoroutine(ShowAd());
    7.      
    8.     }
    9.  
    10. IEnumerator ShowAd()
    11.     {
    12.         if (!Advertisement.isInitialized)
    13.         {
    14.             debug.text += "[not init] ";
    15.             Advertisement.Initialize("1458674");
    16.             yield return null;
    17.         }
    18.         else
    19.         {
    20.             debug.text += "[isInit] ";
    21.             while (!Advertisement.IsReady("rewardedVideo"))
    22.                 yield return null;
    23.  
    24.             ShowOptions options = new ShowOptions();
    25.             options.resultCallback = HandleShowResult;
    26.  
    27.             Advertisement.Show("rewardedVideo", options);
    28.         }
    29.      
    30.     }
    31.  
    32.     private void HandleShowResult(ShowResult result)
    33.     {
    34.         debug.text += "[ad view finished] ";
    35.         switch (result)
    36.         {
    37.             case ShowResult.Finished:
    38.                 rewardPlayer();
    39.                 break;
    40.  
    41.             case ShowResult.Skipped:
    42.                 _chestDelay = 0;
    43.                 _chestActivated = false;
    44.                 chestPanel.anchoredPosition = new Vector2(175f, -228);
    45.                 break;
    46.  
    47.             case ShowResult.Failed:
    48.                 _chestDelay = 0;
    49.                 _chestActivated = false;
    50.                 chestPanel.anchoredPosition = new Vector2(175f, -228);
    51.                 break;
    52.         }
    53.     }
    You may have an Answer for me.
    Thanks in advance !
     
  2. DarkToadster

    DarkToadster

    Joined:
    Sep 10, 2015
    Posts:
    18
    Solution : Disable Adblocker...