How to troubleshoot Unity 5.5 integrations

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

1 Like

After toggle off to on, I’m still unable to pull ads. It appears that Ads did not initialize. Any suggestions?

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)

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.

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

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).

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)

and the console shows

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?

This may help you find the problem:

worked perfectly for me thank youuuuu

Thanks it helped

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