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

How to troubleshoot Unity 5.5 integrations

Discussion in 'Unity Ads & User Acquisition' started by FritzH, Dec 1, 2016.

  1. FritzH

    FritzH

    Developer Relations Unity Technologies

    Joined:
    Aug 18, 2015
    Posts:
    45
    Hi folks,

    We've become aware of some issues with Ads when updating an existing project to Unity 5.5. (Ads Asset Package & editor integration)

    We are addressing these cases, but in the mean time, most issues can be cleared up by toggling Ads in the Services window.

    Disabling Ads will remove the Ads extension from the namespace (allowing the Asset package to own the namespace), while re-enabling it will refresh & update the extension.


    Part deux: If you experience issues with 5.5.0p3, check the following:

    - In build settings -> set build target to iOS or Android

    - In Ads service menu > open Advanced -> Toggle "Enable Ads extension"

    - Make sure you've included the correct library: "using UnityEngine.Advertisements;" (See code sample)

    If it still doesn't work...
    1. Edit > Project Settings > Editor
    2. Asset Serialization > mode -> Force text
    3. In Finder, open either [Unity project] > ProjectSettings > `UnityAdsSettings.asset` OR `UnityConnectSettings.asset`
    4. Locate these properties, and enable them like so:

    UnityAdsSettings:
    m_Enabled: 1
    m_InitializeOnStartup: 1
     
    zero_null likes this.
  2. dkillins

    dkillins

    Joined:
    Apr 20, 2016
    Posts:
    4
    After toggle off to on, I'm still unable to pull ads. It appears that Ads did not initialize. Any suggestions?
     
  3. mikaisomaa

    mikaisomaa

    Unity Technologies

    Joined:
    Sep 14, 2015
    Posts:
    365
    Hi,

    Can you provide your code responsible for handling Unity Ads?

    Did Ads not initialise at all or does it just take some time? (usually this takes a few seconds)
     
  4. zeroiq50

    zeroiq50

    Joined:
    Jun 15, 2013
    Posts:
    15
    Just wondering if there is an update on this issue?
    I have just updated my project from 5.4 to 5.5 and have had to remove Unity Ads due to the missing namespace error...
    I tried to toggle the Ads in the Services Manager (3 times) but had no luck, also deleted and re-built my project Library folder and finally re-installed 5.5. No joy yet though.
    I saw that there is a patch now available for 5.5 which includes an Ads binary update... is that intended to fix this issue?

    Thanks ever so much.
     
  5. instigator24

    instigator24

    Joined:
    Aug 13, 2012
    Posts:
    2
    This worked for me. Turn on unity ads in the service panel. Close Unity. Delete your Library folder then reload your project. I have been upgrading this project since Unity 5 came out and this was the only thing that got the integrated ads namespace to work
     
  6. zeroiq50

    zeroiq50

    Joined:
    Jun 15, 2013
    Posts:
    15
    A thanks instigator24, but alas I tried that (a few times times) and it had no effect for me.
    Having said that though, the namespace issue did fix itself about 2 weeks ago... after trying everything under the sun I found myself upgrading an old Unity 4.3 project for a bit of fun, and what do you know, when I toggled the inbuilt Unity Ads service the Namespace reappeared!! yay! and now it also works in my other projects (well the 2 I have tested anyhoo).
     
  7. kerem-yokuva

    kerem-yokuva

    Joined:
    Nov 21, 2015
    Posts:
    10
    When I enable unity ads in version 5.5.0f3 when i am building an apk for android.

    I get "Unable to convert classes into dex format. See the console for details" error (I guess it may be a warning too)

    upload_2017-1-18_15-43-10.png

    and the console shows

    upload_2017-1-18_15-45-6.png

    It was all fine when I was using 5.4.0 And it is fine again when I turn off ads and delete adcode.
    I am sure there's a solution to this problem. Bu I do not know how.

    So how can I fix this?
     
  8. Sievlar

    Sievlar

    Joined:
    Oct 3, 2012
    Posts:
    68
  9. Positivity

    Positivity

    Joined:
    Jan 24, 2017
    Posts:
    3


    worked perfectly for me thank youuuuu
     
  10. zero_null

    zero_null

    Joined:
    Mar 11, 2014
    Posts:
    159
    Thanks it helped
     
  11. proointan

    proointan

    Joined:
    Mar 5, 2017
    Posts:
    10
    it worked for me after adding this to the file too, to make sure it's active for both android and iOS:

    m_EnabledPlatforms: 4294967295