Search Unity

Ads not running on android IL2CPP build

Discussion in 'Unity Ads & User Acquisition' started by tranos, Oct 25, 2020.

  1. tranos

    tranos

    Joined:
    Feb 19, 2014
    Posts:
    180
    Hello. The problem is when I build the app with IL2CPP armv7 arm64, ads don't run. Neither production ads nor test ads. Unity 2020.1.10, ads 3.5.0
     
    Last edited: Oct 27, 2020
  2. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    For which platform, Android or iOS?
     
  3. tranos

    tranos

    Joined:
    Feb 19, 2014
    Posts:
    180
    Android
     
  4. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Sorry, the title says

    I was building my own game this weekend for Android, however it was on 2019.4. I can upgrade it to 2020.1 and see if I experience any problems

    Did you check Android device logs?

    /Rasmus
     
  5. tranos

    tranos

    Joined:
    Feb 19, 2014
    Posts:
    180
    Update: nothing strange on adb log. Only that the Advertisement is not ready.

    I added a while loop to check when the ads are ready and for some reason in the MONO build the Advertisement is ready approximately 2min sooner than the IL2CPP build.
     
    Last edited: Oct 27, 2020
  6. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Thanks. Yes, I'm semi-able to reproduce.

    If videos are being downloaded (likely because not cached on device already), seems ad will be shown. Otherwise no ad.

    I'll talk with SDK dev team and investigate further.

    /Rasmus
     
    tranos likes this.
  7. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Hmm, I might have seen something else (network connectivity etc). SDK team is unable to reproduce, and now my own game works fine as well - has been able to watch ads several times in row...

    Can you output result of running

    adb logcat -v time UnityAds:V UnityAdsTest:V "*:S"

    /Rasmus
     
  8. tranos

    tranos

    Joined:
    Feb 19, 2014
    Posts:
    180
    My ads run fine as well now.
     
  9. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Thanks for update. Don't know what been problem, couldn't immediately find anything obvious