- Home /
UnityAds Banner not showing up in production environment/build
Hello Unity3D Community,
First off, my problem is similar to this post: Banner ad not working by @stinkyboy
However, it lacks information and has also so far received no helpful (or any at all) comments or answers, so let me try this as well:
TL;DR
I've implemented Unity Monetization according to the Integration guide and in test mode, everything is working fine, but switching test mode off will make the banner not appear at all while the (rewarded) video advertisement is still working correctly and showing real ads. Is there a way to fix this? I need to make sure that when that build goes live in the iTunes and Playstore that the Monetization is working.
The Issue:
For a current project (Android + iOS App) I've been trying to get advertisements for monetization, I've followed the instructions here: Integration guide for Unity And was able to successfully implement the two types I wanted:
A rewarded video ad
A permanent banner ad
Which work fine in test mode. However, if I disable test mode, compile my app and install it on my (android) smartphone, it's not showing the banner. The Reward video works fine, but the banner is nowhere to be seen.
Current Implementation:
I have downloaded and imported the entirety of the Unity Monetization 3.1.0 SDK from the Asset Store.
At the beginning of my main script (singleton), I make sure to import the Advertisement API:
using UnityEngine.Advertisements;
And to distinguish between iOS and Android I run this logic:
// Monetization vars
#if UNITY_IOS
private string gameID = "[redacted]";
#elif UNITY_ANDROID
private string gameID = "[redacted]";
(the [redacted] values are obviously my proper project id's for the unity advertisement project)
Then in Start(), I try to show the banner ad:
// Check if there's currently a valid gameID in use and initialize the bottom ad banner
if (gameID != null)
{
Advertisement.Initialize(gameID, gameTestmode);
StartCoroutine(ShowBannerWhenReady());
}
My coroutine for the banner placement looks as follows:
// Banner advertisement
IEnumerator ShowBannerWhenReady()
{
while (!Advertisement.IsReady("BottomAds"))
{
yield return new WaitForSeconds(0.5f);
}
Advertisement.Banner.Show("BottomAds");
}
And this works! At least when being in test mode, but once I turn test mode off everywhere, compile and install/run it on my smartphone it's just not showing up.
I've also made sure that:
Unity Ads is "ON" in the Services Window of Unity (and the proper project is hooked to it)
Unity Ads Service "Enable test mode" is off / unchecked
Enable built-in Ads extension is also off (otherwise Gradle will have lots of duplicate classes due to the asset store plugin being installed)
In my project settings via operate.dashboard.unity3d.com I've set the test mode to FORCE OFF for both platforms
I wait after starting my App to give Unity ads a bit of time to prepare and cache the banner before showing it
My Smartphone has an internet connection
Everything is up-to-date (using Unity 2019.1.0f2 and Unity Monetization SDK 3.1.0)
So yeah I am kind of at the end of my wits, I hope anyone can help me figure this out or explain what is going on, also: let me know if there's anything else I should provide.
Thanks in advance!
Having the same issue here. So what is the coverage of Asia or Hong Kong? Is the banner function still "new" in 2021?
Answer by Cerbion_ · May 29, 2019 at 11:04 AM
Since no one in this community seemed to have an answer I contacted the official unity ads support and got a quick reply:
If your Ad works in Test mode it can work, however:
The Banner ads itself are pretty new and are still getting campaigns and more coverage for Europe, the engineer at Unity told me that NA was covered and they aim to have Europe covered by the end of this year, preferably until the end of Q3 but couldn't quite give me an official ETA, so take that with a grain of salt.
I hope this helps other people having a similar problem.
Same thing happend to me, im in europe as well so that makes sense. I think there should be a disclaimer somewhere about that, thankfuly your question cames first.
2021 and still nothing. I'll advice you guys to have a mediation with other providers like Admob or similar to cover the banners.
Answer by tsuyoung · Sep 11, 2020 at 12:16 AM
I was facing the same issue. I am located in India. After reading this thread, I tried using a VPN to change my location to North America and the banner ads started working! So I think the issue is just that Unity ads aren't available globally yet.,I am facing the same issue. I am located in India. So after reading this thread I tried using a VPN to change my location to North America and the ads started working! So I'm guessing Unity bammer ads just aren't working in other countries yet.
Answer by dontdiedevelop · May 24, 2019 at 12:55 PM
Set Unity Ads Service "Enable test mode" to true because you're testing it on your device buddy :D when publish your game in store you can set it to false
When using test mode it works, but if I test the RC on a real smartphone the reward video-type ad works fine and shows a real proper ad, but the banner just doesn't show up at all, that's why I am confused.
I initially tested this because I wanted to make sure that the advertisement system really works before release, the first few days/weeks are crucial in terms of ads.
Or are you saying that 100% the banner will work once released to the iTunes and Playstore?
Answer by tonOnWu · Jan 28, 2020 at 11:03 PM
Hello. I’m located in Canada, and today I’m having the same issue. This is really strange.
Answer by zugsoft · Feb 10, 2020 at 07:42 PM
Same for me, I have only a banner in test mode for Android. And I have some crash on some devices.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Unity rewarded ad is not giving reward 0 Answers