• 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 /
avatar image
Question by imrankhanswati · Jul 05, 2017 at 07:00 AM · unity5adscloudadvertisingservice

Advertisements does not exist

Hello every body..

Might be this is stupid to ask this question over again but i am not able to fixe it.

Basically i want to use unity advertisement but it alway show that "advertisement does not exist" exact error is:

"Assets/Scripts/Ads/UnityAds.cs(2,19): error CS0234: The type or namespace name Advertisements' does not exist in the namespace UnityEngine'. Are you missing an assembly reference?"

Though i already enabled the advertisement form services and set my build setting to "IOS". When i try to download the unity advertisement from asset store then my unity cloud build alway got failed and showing the error:

[Unity] Assets/Scripts/Ads/UnityAds.cs(30,29): error CS0433: The imported type `UnityEngine.Advertisements.ShowResult' is defined multiple times

[Unity] /UNITY_PATH/Unity/Unity-5_6_2f1/Unity.app/Contents/UnityExtensions/Unity/Advertisements/UnityEngine.Advertisements.dll (Location of the symbol related to previous error)

Any kind of help will be appreciated.

Reference images :

alt text alt text

screen-shot-2017-07-05-at-114641-am.png (21.7 kB)
screen-shot-2017-07-05-at-114700-am.png (42.5 kB)
Comment
PEZO19

People who like this

1 Show 0
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

8 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by imrankhanswati · Jul 20, 2017 at 07:40 AM

I find the solution for this after long time.

  1. Delete Library folder form your project. path for the folder is: Project \Library

  2. And also delete UnityConnectSettings file from your project path for the file is: Project \ProjectSettings\ UnityConnectSettings.asset

  3. Now open the unity project and let unity reconfigure your project. this will create Library folder and UnityConnectSetting.asset over again for you.

  4. now from unity service window enable unity Advertisement.

  5. if you imported unity Advertisement form unity asset store then remove it before doing above. by using unity asset "package uninstaller".

But make sure that unity is not open by doing the above process.

Comment
GunLengend
MianAbdul

People who like this

2 Show 3 · 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 GunLengend · Aug 04, 2017 at 03:44 AM 0
Share

This answer fix for same problem happen on Unity 5.6.0f3. Just comment for anyone facing same problem will fix asap

avatar image PEZO19 · Jan 14, 2019 at 09:42 PM 0
Share

Does not work for me (5.6.3p2)

avatar image PEZO19 · Jan 14, 2019 at 10:17 PM 1
Share

What solved for me: I updated from 5.6.3p2 to 2018.3.0f2. Now "using UnityEngine.Advertisements" is not marked as a problem.

avatar image

Answer by Vollmondum · Jul 05, 2017 at 07:59 AM

Open services, turn ads off and then on again. That's a simple Unity glitch. Happens when you work offline and then get back online.

Comment
imrankhanswati
rmail2006
TractGames

People who like this

3 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 imrankhanswati · Jul 20, 2017 at 07:15 AM 1
Share

I tried this many time but it didn't worked for me.

avatar image imrankhanswati · Jul 20, 2017 at 07:15 AM 0
Share

thanks for your reply.

avatar image

Answer by Soniya_unity · Jul 20, 2017 at 07:32 AM

which version of unity you used?

Comment

People who like this

0 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 imrankhanswati · Jul 20, 2017 at 07:36 AM 0
Share

thanks for your replay and i am using unity 5.6.2f1.

avatar image Soniya_unity imrankhanswati · Jul 20, 2017 at 07:46 AM 0
Share

delete all related folder and plugin of unity ads, close the unity , again sign in to your account and on the ads.

avatar image

Answer by junaidijaz · Oct 01, 2017 at 05:51 PM

just go to ->Windows->sevices and enable adds .. it will take just time and all done .. or after that restart unity . (ctrl+O (windows)).

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
avatar image

Answer by mmortall · May 14, 2018 at 07:40 PM

Just commented out all compilation errors. If you have links to Advertising namespace comment this links. Then Enable Ads in Windows->Sevices. Only after this Unity will install missing DLLs. You will see compilation progress. After it has done uncomment usage of Advertising namespace.

Only this solution works for me. My Unity 5.6.4f1

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
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

83 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 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 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

my app has impression more than 5K but ecpm is too low....How it increases ?? 1 Answer

Advertisement.Initialize() NullReferenceException. 2 Answers

admob related question 2 Answers

Mobile Ads Frameworks that support unity 0 Answers

Ad Callback 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