Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Unity Ads Showing Test Ads, But Not real

Discussion in 'Unity Ads' started by allycatman101, Aug 14, 2019.

  1. allycatman101

    allycatman101

    Joined:
    Feb 19, 2017
    Posts:
    1
    I am trying to show banner ads in my app and test ads work fine, but when i force turn of test ads in the dashboard no ads show up. The game id is correct and i got test mode set as false in the code. If anyone could help me that would be great.
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,387
    It's possible that there are no banner ads available for your region. We are working to improve the fill rate for banners. This is a high priority for many teams internally and we hope to have improvements deployed soon.

    FYI, you can use the errorCallback in the BannerLoadOptions to confirm if you are having fill issues (in addition to the device log):

    Code (CSharp):
    1. string placement = "banner";
    2.  
    3. public void LoadBanner()
    4. {
    5.     if(!Advertisement.Banner.isLoaded)
    6.     {
    7.         BannerLoadOptions loadOptions = new BannerLoadOptions
    8.         {
    9.             loadCallback = OnBannerLoaded,
    10.             errorCallback = OnBannerError
    11.         };
    12.         Advertisement.Banner.Load(placement, loadOptions);
    13.     }
    14. }
    15. void OnBannerLoaded()
    16. {
    17.     Debug.Log("Banner Loaded");
    18.     Advertisement.Banner.Show(placement);
    19. }
    20. void OnBannerError(string error)
    21. {
    22.     Debug.Log("Banner Error: " + error);
    23. }
     
unityunity