Answer the question
In order to leave comments, you need to log in
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);
}
}
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question