• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
Question by LABoy · Sep 15, 2015 at 09:39 PM · erroradsapplicationunityads

the imported type UnityEngine.Advertisements.Advertisement is defined multiple times

So I have been making an app for the past week and I have finally completed it... well... almost. All I need to do now is add in ads. I have the system for it all put in already and everything, all I have to do is write "Advertisement.Show()". However, I can't. Every time I add the script in it gives me the error "the imported type 'UnityEngine.Advertisements.Advertisement' is defined multiple times". I have only been able to find a fourm saying to remove the unity ads assets out of the project because unity ads is built-in now (on unity 5.2, which is what I'm using). However when I do that I get problems where it says I'm missing files and blah blah blah. And when I try and use the package uninstaller, the option to uninstall isn't there. So either what files should I delete to get ads to work, or how do I get rid of the "the imported type 'UnityEngine.Advertisements.Advertisement' is defined multiple times" error. Thank you

Comment
PAUMAR
thenipponese
ninjabit

People who like this

3 Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AhmedZia · Feb 16, 2017 at 08:13 AM 0
Share

i have the same problem plz help me ...

3 Replies

  • Sort: 
avatar image

Answer by rasmus-unity · Dec 25, 2015 at 10:00 AM

From Unity 5.2 and above, Unity Ads has been integrated into the Unity engine and can be enabled using the Services window in Unity. If you previously had used the Unity Ads asset store package and enables Unity Ads from the services window, you must remove the asset store package from your project, otherwise you'll get the above compile error.

See also http://docs.unity3d.com/Manual/UnityAdsHowTo.html

Comment
arunkarnann
DevPz
thenipponese
ninjabit
ozergul
Matdrox
developertoshin
rodrigopereiramelo

People who like this

8 Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image arunkarnann · May 17, 2016 at 10:25 AM 0
Share

it worked for me. Please consider using Package uninstaller to remove that packages here

avatar image ozergul · Dec 18, 2016 at 08:43 AM 0
Share

Thank you.

avatar image

Answer by PAUMAR · Sep 18, 2015 at 12:00 AM

LABoy

I have the same issue, I only create a new project and thats it! I wish you solve this problem. Thank you, Myat Fox Games
Comment
ozborn

People who like this

1 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by dannypb · Sep 30, 2015 at 03:07 PM

Just re-import the unity ads library. it is now included with Unity 5.2 and the latest version will work with it being included in the bundle.

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

33 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

OnUnityAdsShowComplete doesn't trigger, why? 0 Answers

Application.logMessageReceived issues on Android 0 Answers

Application not installed 0 Answers

I can not build my project after I imported Ironsource SDK. 2019.4.5f1 0 Answers

Rewarded video takes 3+ clicks to load 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges