- Home /
Unity Ads plugin works perfectly fine in the editor, but fails in android
Hi, I am facing an issue with the Unity Ads plugin. It seems to work perfectly fine in the editor but initialization fails in the Android build.
While debugging, I can see these 2 errors for some reason. 2020-11-28 07:44:40.375 14485-14508/? E/Unity: Unable to find UnityAdsAndroidPlugin 2020-11-28 07:44:40.375 14485-14508/? E/Unity: Unable to find UnityAds
But later I can also see the logs: 2020-11-28 07:44:43.072 14485-14508/? I/UnityAds: com.unity3d.services.UnityServices.initialize() (line:126) :: Initializing Unity Services 3.5.1 (3510) with game id XXXXXXX in test mode 2020-11-28 07:44:43.075 14485-14508/? I/UnityAds: com.unity3d.services.UnityServices.initialize() (line:146) :: Unity Services environment check OK
When I try to show any type of ad, it throws an error log saying: Interstitial Ad not ready or Video Ad not ready.
I initially tried the Advertisement plugin from Package Manager. Later I removed it completely and tried the Unity Monetization package from Asset Store.
I had read somewhere that the project version needs to be changed. I tried doing that as well. Initially, I was working with 2020.1.11. I changed that to 2019.4.15(LTS). Still no luck.
Answer by ahmedaniss · Nov 28, 2020 at 04:33 PM
to use unity ads : https://youtu.be/_0z0sPw688A to use admob ads : https://youtu.be/R5zi1-t_y98