Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Ads not working.

Discussion in 'Unity Ads & User Acquisition' started by BKGamesStudio, Dec 20, 2016.

Thread Status:
Not open for further replies.
  1. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Please start a new thread and provide device logs if possible, thanks :)

    /Rasmus
     
  2. yatharth8

    yatharth8

    Joined:
    Nov 22, 2018
    Posts:
    1
    I am stuck at Implementing ads for 5 days. Steps that I followed to solve the issue:
    -Setup my project again in my unity dashboard
    -Setup the code again using different GameID(Android)
    -Once done I could only see test ads in editor but then it would not parse Hex file and will not build an apk for testing
    -Had to delete UnityAds.aar and its meta from ProjectSettings
    -Eventually apk was created with no ads

    Now my editor shows only and only test ads and my android device won't show any ad at all.

    why do unityads suck this much at setup?
     
  3. pixel375

    pixel375

    Joined:
    Dec 2, 2018
    Posts:
    9

    Similar issue here. Started with 2 days trying to compile it (Due to errors such as multiple dex or something like that), support told me to use either the built in Unity Ads service window, OR Unity Monetization 3, can't use both.

    Once I successfully compiled the APK with the built in ads, I wouldn't get anything at all on my phone, so I changed back to the Unity Ads 3 asset, and now I can only see test ads, but no live ads if I force live ads. I contacted support with my gameID, and they said that the device is requesting ads, but there is none to be served (at least that's how I understood it) so gonna use StartApp to monetize my game for now till this issue is fixed.
     
  4. Mastermindbrothers

    Mastermindbrothers

    Joined:
    Dec 3, 2017
    Posts:
    3
    can i still see this in the 2018 unity editor
     
  5. pixel375

    pixel375

    Joined:
    Dec 2, 2018
    Posts:
    9
    See what? I'm using 2018.
     
  6. prabhjotlamba

    prabhjotlamba

    Joined:
    Jun 2, 2018
    Posts:
    6
    Hey, I'm having the same problem with Unity Ads. It is showing the demo ad in the editor but when I build my application and run it on android the ad doesn't load.

    I tried checking my android log and it showed this:

    12-22 15:56:22.823 18771 18790 I Unity : Initialised
    12-22 15:56:22.823 18771 18790 I Unity :
    12-22 15:56:22.823 18771 18790 I Unity : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    12-22 15:56:22.823 18771 18790 I Unity :
    12-22 15:56:22.905 18771 18790 E Unity : Initializing Unity Monetization.
    12-22 15:56:22.905 18771 18790 E Unity :
    12-22 15:56:22.905 18771 18790 E Unity : (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    12-22 15:56:22.905 18771 18790 E Unity :
    12-22 15:56:23.109 18771 18790 E Unity : AndroidJavaException: java.lang.ClassNotFoundException: com.unity3d.services.monetization.UnityMonetization
    12-22 15:56:23.109 18771 18790 E Unity : java.lang.ClassNotFoundException: com.unity3d.services.monetization.UnityMonetization
    12-22 15:56:23.109 18771 18790 E Unity : at java.lang.Class.classForName(Native Method)
    12-22 15:56:23.109 18771 18790 E Unity : at java.lang.Class.forName(Class.java:400)
    12-22 15:56:23.109 18771 18790 E Unity : at java.lang.Class.forName(Class.java:326)
    12-22 15:56:23.109 18771 18790 E Unity : at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    12-22 15:56:23.109 18771 18790 E Unity : at com.unity3d.player.UnityPlayer.c(Unknown Source)
    12-22 15:56:23.109 18771 18790 E Unity : at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source)
    12-22 15:56:23.109 18771 18790 E Unity : at android.os.MessageQueue.next(MessageQueue.java:392)
    12-22 15:56:23.109 18771 18790 E Unity : at android.os.Looper.loop(Looper.java:142)
    12-22 15:56:23.109 18771 18790 E Unity : at com.unity3d.player.UnityPlayer$e.run(Unknown Source)
    12-22 15:56:23.109 18771 18790 E Unity : Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.services.monetization.UnityMonetization" on path: DexPathList[[zip file "/data/app/com.Godlabs.AdsTesting-2/base.apk"],nativeLibraryDirectories=[/data/app/com.Godlabs.AdsTesting-2/lib/arm, /data/app/com.Godlabs.AdsTesting-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
    12-22 15:56:23.109 18771 18790 E Unity :


    Please Help!

    Thanks
     
  7. karthik_unity519

    karthik_unity519

    Joined:
    Oct 2, 2018
    Posts:
    1
    Looks like unity ads are notting added in the APK file.RUNTIME exception is coming for class not found in unity ads file
     
  8. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,518
    @karthik_unity519 (and everyone else)

    Please open a new thread with details for your specific issue.
     
Thread Status:
Not open for further replies.