I made a mobile game in which i am able to display the test ads without any problem or difficulty.
But when I tried to show real ads nothing appeared. I made sure that the test ads were disabled both on the dashboard, in the project settings and in the script doing the initialization.
The ids are correct and the project is correctly tied to unity ads, and is indeed monetized.
I tried it after building the app into an apk file and using it on my phone and after I tried it by making an internal test on google play console.
I am writing here because i don’t see what to do to solve the problem and found nothing on the internet.
here is the code I use to initialize the ads:
using UnityEngine;
using UnityEngine.Advertisements;
public class AdsInitializer : MonoBehaviour, IUnityAdsInitializationListener
{
[SerializeField] string _androidGameId = "5267275";
[SerializeField] string _iOSGameId = "5267274";
[SerializeField] bool _testMode = false;
private string _gameId;
void Awake()
{
InitializeAds();
}
public void InitializeAds()
{
_gameId = _androidGameId;
Advertisement.Initialize(_gameId, _testMode, this);
}
public void OnInitializationComplete()
{
Debug.Log("Unity Ads initialization complete.");
}
public void OnInitializationFailed(UnityAdsInitializationError error, string message)
{
Debug.Log($"Unity Ads Initialization Failed: {error.ToString()} - {message}");
}
}
If you see the test banners in Test Mode, then your integration is likely correct. The most common cause of not getting banner ads is lack of available banner demand. This would be expressed as “No fill for placement” errors.
Many of our banner advertisers will only bid into games that have implemented the app-ads.txt file correctly. This file is a standard that has been developed over the last few years to combat fraud and create transparency in the advertising market. More info can be found in our documentation: https://unityads.unity3d.com/help/resources/app-ads-txt-support
However, even with app-ads.txt implemented, the availability of banners will vary greatly by region. We continue to ramp up banner demand, but a lot of that improvement has been focused in specific regions, so not all countries are seeing banners available.
If banners represent a major issue for you, I would recommend investigating other options. Unity Ads is supported in all of the top mediation platforms, and many do have support for our banner ads: https://unityads.unity3d.com/help/resources/mediation
I am not sure I understand what it means by the root of the developer’s website. For example, I want to put my game on the app store, for that i am using the google play console. What link do I put, is it just the one of the app when it is released for the public?
I made a small site to put in here:
since the url is not accepted it appears i am missing on some requirements.
Do you know why my link is not accepted, and could you tell me what kind of links are accepted by unity ads?