Search Unity

Unity ads set up, but not showing on the AppStore.

Discussion in 'Unity Ads & User Acquisition' started by street9605, Jul 13, 2018.

  1. street9605

    street9605

    Joined:
    Jun 14, 2018
    Posts:
    5
    Hello!
    So my unity ads are all set up. In the unity simulator everything is working ("Everything seems to be working"). But now, my app is on the AppStore and there is no ads showing.
    Anyone who knows whats the problem ? Is it settings? Something in my code? please help :).

    Thx.
     
  2. street9605

    street9605

    Joined:
    Jun 14, 2018
    Posts:
    5
    I made it so ads are showing very 3th time player gets an "game over". And here is my code.

    Code (CSharp):
    1. using UnityEngine;
    2. using UnityEngine.Advertisements;
    3.  
    4. public class Ads : MonoBehaviour
    5. {
    6.    
    7.     static int loadCount = 0;
    8.  
    9.     void Start()
    10.     {
    11.         if (loadCount % 3 == 0)  // only show ad every third time
    12.         {
    13.             ShowAd();
    14.         }
    15.         loadCount++;
    16.     }
    17.  
    18.     public void ShowAd()
    19.     {
    20.         if (Advertisement.IsReady("video"))
    21.         {
    22.             Advertisement.Show("video");
    23.         }
    24.     }
    25. }
     
  3. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    For Android and/or iOS? When you just deploy to a device locally, does it show ads then? Also, which version of Unity and Unity Ads SDK are you using?

    /Rasmus
     
  4. street9605

    street9605

    Joined:
    Jun 14, 2018
    Posts:
    5
    The app is for iOS only. When I test it in unity, it shows ads perfectly. When I build projects and open the Xcode file and run on my iphone, then no ads will appear.

    Unity version: Unity 2018.1.6f1
    Unity ads version: (I do not know, are beginner :/ )
     
  5. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Check device log from Xcode when running your game and look for "UnityAds". Can you see that it initializes, or are there other error messages?

    /Rasmus
     
  6. street9605

    street9605

    Joined:
    Jun 14, 2018
    Posts:
    5
    Nothing with UnityAds are appearing in the log
     

    Attached Files: