Advertisements namespace

Hello (it’s my first post here ever! :))
Unfortunately I’ve come across an issue with activating Ads service in Unity
When active - the “example” script has errors.
When disable - the namespace exists normally…
(see attached file)

Unity version 5.5.0f3
Visual Studio 2015

Any ideas how to solve this?

EDIT:
It works when i switch my project to Android from PC/Mac/Standalone
So I have to comment out all Ads stuff when building for my PC friends :confused:

Hi,

Use UNITY_ADS conditional define, as shown in example code on e.g. https://docs.unity3d.com/ScriptReference/Advertisements.Advertisement.Show.html

/Rasmus