Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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
0
Question by Ricardopp21 · May 08, 2017 at 01:27 PM · unity 5ads

Unity 5.6 - Problem with Unity Ad (not showing ads)

I have a problem with Unity Ad. Before updating Unity to 5.6, Ad was working very fine in my game. But now, I can't make it work at all. I re-imported Unity Ad extension, checked if "builtin Ads extension" and "test mode" were enabled, but nothing happened. Uninstalled Unity and return to the previous version I had (5.5.2f1), but with no results. And the console show me no errors. I didn't touch anything in my code or game itself... Anybody knows if there's any problem with Ads ? Thank you very much for your answers !!

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by G-Power · May 18, 2017 at 01:46 AM

I meet same problem!

Comment
Add comment · 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
1

Answer by moh13777 · May 21, 2017 at 04:43 PM

I Have Same problem

Comment
Add comment · 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
1

Answer by NightmaresDev · May 26, 2017 at 06:01 PM

Your problem might be the same as mine...

It's that whenever you start the game The Unity Ads are not able to initialize in time, therefore, you get a message in the console when starting the game in unity.

      UnityAdsEditor: Initialize("GameID", False);
      UnityEditor.Advertisements.UnityAdsEditor:EditorOnLoad()

If it says false = it won't works!
If it says true = It supposedly should work!

It was true the first time I integrated ads! But once I Updated my game to a new version it turned into false.

Comment
Add comment · Show 1 · 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 Ricardopp21 · May 28, 2017 at 07:01 PM 0
Share

Hi, NightmareTD. Actually, my console don't show any errors (in fact, it doesn't show me nothing), so I can't figure out what's the problem. Before the Unity version update, the console showed me that UnityAd was initialized. But now, I get no messages. $$anonymous$$aybe, my problem is the same as yours (despite my defective console). Did you solved the problem ? Thank you for the answer !!

avatar image
0

Answer by Ricardopp21 · Jul 16, 2017 at 01:14 AM

ANSWER:

I finally resolve my problem with Unity Ads... After trying different things, I did the following:

https://unityads.unity3d.com/help/monetization/2.0-upgrade-guide-unity

Before updating Unity to 5.6, I didn't needed that script, but with it, Ads are now working... So...

I hope all of you can resolve your problems too with this !!

Comment
Add comment · 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 incenseman · Jan 15, 2018 at 12:22 AM 0
Share

I have the same issue. Your link gives: 404 Whoops. Looks like this page doesn't exist.

avatar image Ricardopp21 incenseman · Jan 15, 2018 at 05:18 PM 0
Share

Hi !! Yes, the link is broken now... But, in summary, what I had to do was to disable Unity Ads from the Services tab, and activate it through a script. It was the only way to solve it. I hope it helps you !! Regards !!

I copy the content of the script to activate Unity Ads. Where it says "put your Android ID" or "put your ios ID", you have to put your respective ID's.

Blockquote

using UnityEngine; using UnityEngine.Advertisements;

public class UnityAdsInitializer: $$anonymous$$onoBehaviour {      [SerializeField]      private string          androidGameId = "put your Android ID",          iosGameId = "put your ios ID";

     [SerializeField]      private bool test$$anonymous$$ode;

     void Start ()      {          string gameId = null;

if UNITY_ANDROID

        gameId = androidGameId; #elif UNITY_IOS          gameId = iosGameId; #endif

         if (Advertisement.isSupported &&! Advertisement.isInitialized)          {              Advertisement.Initialize (gameId, test$$anonymous$$ode);          }      } }

Blockquote

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.

Follow this Question

Answers Answers and Comments

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

Disabling button when Ads not available? 0 Answers

disable ads admob with iap 0 Answers

Trouble with closing Unity 5 ads 0 Answers

AndroidJavaException: java.lang.ClassNotFoundException: com.google.unity.ads.UnityInterstitialAdCallback 1 Answer

I can't add google play store id to my game, any help ? 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