I’ve done some research online and in these forums, and i can’t seem to find a good answer for why the banners are not showing up.
when I’m trying it in-game mode I can always see it:
but when I test it on my device as a real APK, and even when I published the game, I still can’t see the banners.
is it possible that there are really no banners available? I verified with a few of my friends who also downloaded it.
Yes, the most common reason banner ads don’t show is that we don’t have inventory available. We are still working to ramp up advertisers to improve availability of ads.
I do have a couple of suggestions though:
Make sure you implement an app-ads.txt file in your website. This file is a standard that has been developed over the last few years to combat fraud and create transparency in the advertising ecosystem. Many of our banner advertisers will only bid into games that have this implemented correctly. More info can be found in our documentation: https://unityads.unity3d.com/help/resources/app-ads-txt-support
If you implement banners using the BannerLoadOptions, you get better insight into why banners are not showing.
string placement = "banner";
public void LoadBanner()
{
//Note: Banner.SetPosition can only be called once per session.
// It should be called before Load or Show to prevent issues.
//Advertisement.Banner.SetPosition(BannerPosition.CENTER);
if(!Advertisement.Banner.isLoaded)
{
BannerLoadOptions loadOptions = new BannerLoadOptions
{
loadCallback = OnBannerLoaded,
errorCallback = OnBannerError
};
Advertisement.Banner.Load(placement, loadOptions);
}
}
void OnBannerLoaded()
{
Debug.Log("Banner Loaded");
Advertisement.Banner.Show(placement);
}
void OnBannerError(string error)
{
Debug.Log("Banner Error: " + error);
}