Quantcast
Viewing all articles
Browse latest Browse all 1416

Unity ads don't work

I decided to add reward ads to my game. So i downloaded the package, created the project and the placement in the dashboard, but when I start to code, exactly at this line inside the void Start() : --------------------------------------------------- if (Advertisement.IsReady("myAd") { } --------------------------------------------------- I get this error: Severity Code Description Project File Line Suppression State Error CS0433 The type 'Advertisement' exists in both 'UnityEngine.Advertisements.Editor, Version=3.4.6.0, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.Advertisements, Version=3.4.6.0, Culture=neutral, PublicKeyToken=null' Assembly-CSharp C:\Users\MyName\Documents\MyName\MyGame\Assets\Scripts\AdManagementScript.cs 26 Active ------------------------------------------------- I have no idea what's wrong... Could someone help me, please? Thank you, Zoedingl

Viewing all articles
Browse latest Browse all 1416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>