- Home /
Unity Ads error (asset or package?)
Im running the latest Unity editor 2019.4.2f1. I enabled Unity Ads in services then went to install Unity Monetization from asset store. Then all of a sudden I get 6 red errors (below):
Library\PackageCache\com.unity.ads@3.4.7\Runtime\Monetization\MonetizationPlatform.cs(33,17): error CS0433: The type 'UnityLifecycleManager' 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'
I looked online and some suggest to download it from the packages, not the asset store. i cannot find it in the packages (do know if it has different name).
Anyone know the solution to this problem? or faced similar issue? Thanks
Answer by segy0296 · Jul 22, 2020 at 03:26 PM
Found the probelm. It seems like the error only appears after importing the " Unity Monetization" asset. The latest Unity editor doesnt require you to import it from assets. Although, it is instead required to use the "Advertisement" package in the package manager.
Answer by Yerbol05 · Sep 12, 2020 at 03:53 PM
I am new here. Well, it is confusing which better to use, Advertisement Package or the Unity Monetization Asset from the asset store. What are the pros and cons, what is the difference? Unity should clarify this.
Answer by BonusB · Dec 11, 2020 at 09:03 AM
Use the Advertisement Package if you get this error else, use the Unity Monetization Asset from the asset store.