Upgrade from 5.6 to 2017.1 causing problems with Unity Ads

It seems I’m not alone in this, but none of the solutions outlined in any other Unity forums post do the trick for me, so I’ll do my best to outline what I’m seeing.

I have been integrated with Unity Ads through the Services window for many months now and haven’t had any issues until this upgrade. Upon going to 2017.1 I started noticing a bunch of problems, but here’s an attempted summary:

  • the #if UNITY_ADS directive no longer is defined anywhere and returns false on all platforms
  • “Could not load file or assembly ‘UnityEngine.Advertisements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies” shows up in any place I try to reference UnityEngine.Advertisements

I have logged in and out of Unity Services many times.
I have restarted Unity and/or MonoDevelop many times.
I have unlinked and relinked the project ID to my organization/project many times.
I’ve checked UnityConnectSettings.asset and Ads are indeed enabled.
The “Enabled built-in ads extension” under the Services Window is checked.
I’ve tried creating a brand new project, linking it, and copying over the UnityConnectSettings.asset.
I’ve done all of the above in many different permutations.

Another thing that I find odd is that if I logout of Unity Services, and log back in, the Ads service in the Services Window is no longer on. Regardless of how many times I check it, if I log out and login it reverts to being unchecked. I verified on the dashboard on the web that Ads are still enabled.

Thanks for the help.

[Edit] As a followup to this, I unchecked the “Enable built-in ads extension”, and installed v2.1.0 via the asset store and as far as I can tell things seem to work, but it doesn’t squash my concern that there is a problem here. There’s an awful lot of verbiage around Unity Docs that there is no need to install via the asset store beyond Unity 5.5 I believe, so the fact that it is potentially the goto solution now concerns me. If I go this route, do I continue to keep Unity Ads enabled in the Services window, uncheck that box, keep the asset from the asset store installed and move on with my life?

Hi, thanks for feedback. Unable to reproduce the issue here on Mac, but sounds like you have tried to do almost anything possible to fix the issue on your side. However just to make sure:

  • You have switched to Android or iOS as platform?
  • Mac or Windows?

Also please check that the values in your ProjectSettings/UnityConnectSettings.asset file matches The type or namespace name `Advertisements' does not exist in the namespace `UnityEngine'. - Unity Services - Unity Discussions, especially m_EnabledPlatforms

Thanks,
Rasmus

For some reason, the Ads toggle doesn’t work when pressing it just once at least on some editor versions. Have you retried enabling Ads (press the toggle a second time after it shows being disabled)?

If this doesn’t help - disable the internal ads extension from the services window and integrate the Asset Store package. Note that you need to initialise Ads manually when doing so.

Apologies for the inconvenience. Any further details or project files you provide might be helpful in investigating this - feel free to send a link to a zipped project to unityads-support@unity3d.com and we’ll take a look.

Thanks for the suggestions guys.

After a bit of thought we decided to not do the upgrade to 2017.1 at this time, b/c it appears that a lot of 3rd party plugins we’re integrated with aren’t fully compatible with it yet. We’ll head down this path again in a few months after 2017.2 is baked a bit.

That said… I’m happy to share a project synced to that commit with you guys if you think it could be helpful at all to mess around with. I’m on osx 10.12.6.