Search Unity

Unity ads invalid configuration request for gameid

Discussion in 'Unity Ads & User Acquisition' started by davinci79, Oct 20, 2021.

  1. davinci79

    davinci79

    Joined:
    Feb 4, 2021
    Posts:
    2
    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.

    Code (CSharp):
    1. public class BannerDisplay : MonoBehaviour
    2. {
    3.     string myGameIdAndroid;
    4.     bool testMode;
    5.     string myBannerPlacement;
    6.  
    7.     void Start()
    8.     {
    9.         myGameIdAndroid = GameManager.instance.pubMyGameIdAndroid;
    10.         testMode = GameManager.instance.pubTestMode;
    11.         myBannerPlacement = GameManager.instance.pubMyBannerPlacement;
    12.  
    13.         Advertisement.Initialize(myGameIdAndroid, testMode);
    14.         StartCoroutine(ShowBannerWhenReady());
    15.     }
    16.  
    17.     IEnumerator ShowBannerWhenReady()
    18.     {
    19.         while (!Advertisement.IsReady(myBannerPlacement))
    20.         {
    21.             yield return new WaitForSeconds(0.5f);
    22.         }
    23.  
    24.         Advertisement.Banner.Show(myBannerPlacement);
    25.     }
    26. }
    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
     
    Last edited: Oct 20, 2021
  2. Unity_Adamski

    Unity_Adamski

    Unity Technologies

    Joined:
    Jul 20, 2020
    Posts:
    110
    Hi, looking at that error it seems that the Game ID is incorrect. Feel free to DM me a link to a build of your application, or create support ticket. That way we can look at your build and tell you for certain if this indeed a case of a bad Game ID or if it is some other configuration issue.
     
  3. davinci79

    davinci79

    Joined:
    Feb 4, 2021
    Posts:
    2
    Thank you for your response.

    The Game ID is not working yet so I've just created a support ticket.