Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Error with Unity Ads after updating?

Discussion in 'Editor & General Support' started by Kristen182, Jun 22, 2020.

  1. Kristen182

    Kristen182

    Joined:
    Aug 10, 2018
    Posts:
    42
    I have a published game that has been displaying ads and working fine, and I updated my unity and now I am getting a bunch of errors with ads. I currently have ads turned off in services, and initialize them using this line of code:

    Code (CSharp):
    1. Monetization.Initialize(gameId, testMode);
    The following is the main error I am getting, although I am getting a bunch of other conflicts as well:
    Library\PackageCache\com.unity.ads@3.4.5\Runtime\Monetization\MonetizationPlatform.cs(113,13): error CS0433: The type 'Advertisement' exists in both 'UnityEngine.Advertisements.Editor, Version=3.0.1.0, Culture=neutral, PublicKeyToken=null' and 'UnityEngine.Advertisements, Version=3.4.2.0, Culture=neutral, PublicKeyToken=null'

    An example of another conflict
    GUID [db87dc7dfd26443b898812877180d0a4] for asset 'Packages/com.unity.ads/Editor/Resources/Purchase.png' conflicts with:
    'Assets/Editor/Resources/Purchase.png' (current owner)
    We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.

    Why is this suddenly not working when I haven't changed anything?
     
  2. DonPiedro

    DonPiedro

    Joined:
    Jul 6, 2018
    Posts:
    4
    Last edited: Jun 22, 2020
    Kristen182 likes this.
  3. Kristen182

    Kristen182

    Joined:
    Aug 10, 2018
    Posts:
    42
    Thank you so much, that has removed the errors!