B
B
bodyaodin2019-09-03 00:32:14
Android
bodyaodin, 2019-09-03 00:32:14

Why doesn't the Unity Ads banner work after uploading to the Google Play Console?

Hello. Please tell me why the Unity Ads banner does not work after the game has been uploaded to the Google Play Console, although it shows the banner in the Unity editor itself. Other ads work both in the editor and after uploading.
Here's the code, just in case:

void Start()
    {
    // Banner Ads initializing
    if (PlayerPrefs.GetString ("NoAds") != "yes") {
      if (Advertisement.isSupported) {
        Advertisement.Initialize (gameId, testMode);
        StartCoroutine (ShowBannerWhenReady ());
      } else {
        Debug.Log ("Advertisement do not supported!");
      }
    }
    }

  IEnumerator ShowBannerWhenReady () {
    if (PlayerPrefs.GetString ("NoAds") != "yes") {
      while (!Advertisement.IsReady (placementId)) {
        yield return new WaitForSeconds (0.5f);
      }
      Advertisement.Banner.Show (placementId);
    }
  }

I did everything according to this article:
https://unityads.unity3d.com/help/unity/integratio...
If something is wrong or blunted somewhere, tell me pliz.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Surzhko, 2020-04-13
@Kalimbet

I have the same problem. This may be due to the region, put vpn on your phone, select the US region and start the game. After such manipulations, my banner showed me, now I need to look for an alternative, otherwise such conditions do not suit me very well.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question