Hi
I’m trying to integrate and test a simple banner ad on my game. I got 2 errors:
- Invalid configuration request for gameId
- The remote server returned an error: (404) Not Found.
public class BannerDisplay : MonoBehaviour
{
string myGameIdAndroid;
bool testMode;
string myBannerPlacement;
void Start()
{
myGameIdAndroid = GameManager.instance.pubMyGameIdAndroid;
testMode = GameManager.instance.pubTestMode;
myBannerPlacement = GameManager.instance.pubMyBannerPlacement;
Advertisement.Initialize(myGameIdAndroid, testMode);
StartCoroutine(ShowBannerWhenReady());
}
IEnumerator ShowBannerWhenReady()
{
while (!Advertisement.IsReady(myBannerPlacement))
{
yield return new WaitForSeconds(0.5f);
}
Advertisement.Banner.Show(myBannerPlacement);
}
}
I wrote the ID correctly and the code worked in another project without problem.
I have been looking for a solution in the forum and found that IDs are working 12 hours after you activate ads. I did it yesterday so IDs should be valid right now. I am missing something?
Unity version: 2020.3.8f1
Ads package: 3.7.5
Thanks in advance