Unity is asking me to update Unity Ads (and it doesn't work)

Hi!

I’m using the embedded Unity Ads library (Enable build-in ads extension, from the Services menu), but every day Unity asks me to update it. Is that because I’m still with Unity 5.6.2? Since my release is really close, I’m don’t want to upgrade just now. Is it safe to just switch to the asset store version?

I’m also noticing this on the Android logcat.

I/Unity   (11828): AndroidJavaException: java.lang.ClassNotFoundException: com.unity3d.ads.IUnityAdsListener
I/Unity   (11828): java.lang.ClassNotFoundException: com.unity3d.ads.IUnityAdsListener
I/Unity   (11828):     at java.lang.Class.classForName(Native Method)
I/Unity   (11828):     at java.lang.Class.forName(Class.java:308)
I/Unity   (11828):     at java.lang.Class.forName(Class.java:272)
I/Unity   (11828):     at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
I/Unity   (11828):     at com.unity3d.player.UnityPlayer.c(Unknown Source)
I/Unity   (11828):     at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source)
I/Unity   (11828):     at android.os.Handler.dispatchMessage(Handler.java:98)
I/Unity   (11828):     at android.os.Looper.loop(Looper.java:145)
I/Unity   (11828):     at com.unity3d.player.UnityPlayer$c.run(Unknown Source)
I/Unity   (11828): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.ads.IUnityAdsListener" on path: DexPathList[[zip file "/data/app/com.soulgit.bananas-1/base.apk"],nativeLibraryDirectories=[/data/app/com.soulgit.bananas-1/lib/arm, /vendor/lib, /system/lib]]

By that, looks like it’s not even included in the build. Advertisement.Show() works onny in the Editor, not on Android builds.

And now I noticed AdMob (which I’m using for mediation with a few other networks) is giving that error. I can’t be certain if Unity Ads is delivering or not to AdMob.

W/Ads     (20538): Fail to instantiate adapter com.google.ads.mediation.unity.UnityAdapter

Hi,

Sorry to hear that.

If you experience this after e.g. updating the project, just disable the internal extension and use the Asset Store package. Note that you need to initialise Ads manually in that case.

Seems to be working now with the plugin.
Thanks!

Good to hear you got it solved, however I’m curious about which update notification message you got in Unity. To my knowledge, the editor itself has an update check, but not Unity Ads SDK. If you have a screenshot or anything, please share.

Thanks,
Rasmus

@rasmus-unity , from my memory, it says Unity Ads is outdated, giving me 3 options: Update now, Go to the Asset Store, or Cancel.