Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Unity Ads not Initializing on Android

Discussion in 'Unity Ads & User Acquisition' started by ry511, Mar 21, 2022.

  1. ry511

    ry511

    Joined:
    Jul 24, 2016
    Posts:
    62
    Hey all,

    In implementing rewarded ads in for my game and am running into an issue with Advertisement.Initialize(gameId, testMode, this). On desktop with test mode I Console.Log isInitialized and get "true" as well as load the test ad screen.

    On Android IL2CPP Release build however Advertisement.Initialize never completes, Console.Log isInitialized equals false, and I get a timeout error when trying to load the ad "Unity Error loading Ad Unit Rewarded_Android: TIMEOUT - [UnityAds] Timeout while loading Rewarded_Android". I have tried initialization in a Coroutine with WaitForSeconds(5) to both wait and see if isInitialized is ever true and to retry Advertisement.Initialize then wait but I have never gotten isInitialized equals "true".

    My target build platform is Android, I'm in the USA, have set things up in the dashboard, and have internet connectivity. I have not found any other possible causes/solutions searching around so am feeling a bit stuck. Is there anything else I could be missing or some way to better diagnose the issue?

    Thanks in advance!