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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

The type or namespace name 'Monetization' does not exist in the namespace 'UnityEngine

Discussion in 'Unity Ads & User Acquisition' started by SmolChrissy, Dec 30, 2018.

Thread Status:
Not open for further replies.
  1. SmolChrissy

    SmolChrissy

    Joined:
    Dec 30, 2018
    Posts:
    1
    I've tried to implement unity ads monetization into my game but after adding the integration code, it returns this:

    error CS0234: The type or namespace name 'Monetization' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
     
  2. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Have you selected either iOS or Android as active platform in Unity?

    /Rasmus
     
    sprint-sols likes this.
  3. hayq_

    hayq_

    Joined:
    Apr 25, 2018
    Posts:
    2
  4. Zaine7673

    Zaine7673

    Joined:
    Feb 15, 2018
    Posts:
    238
    Also make sure you put

    Using UnityEngine.Monetization;

    At the top of your script.
     
  5. impheris

    impheris

    Joined:
    Dec 30, 2009
    Posts:
    1,516
    Last edited: Jan 29, 2019
  6. sprint-sols

    sprint-sols

    Joined:
    Nov 12, 2018
    Posts:
    1
    Dim4ik2008, hayq_ and CoCoNutti like this.
  7. philou3

    philou3

    Joined:
    Mar 14, 2019
    Posts:
    1
    I have same problem, but I don't have Package Manager in Window menu...
     
  8. StartStart

    StartStart

    Joined:
    Jan 2, 2013
    Posts:
    150
    @philou3 Update Unity to lastest version.
     
  9. alisharpasand

    alisharpasand

    Joined:
    Jan 28, 2019
    Posts:
    2
    Package Manager seems to be hidden when you have errors in your project. I commented out parts of my code to get rid of errors and it appeared in the menu.
     
Thread Status:
Not open for further replies.