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
2
Question by Atenrev · Nov 21, 2015 at 02:28 PM · adsadmobgoogle play games

Google mobile ads not working after installing google play services

Hi there, I had added the Google Mobile Ads plugin (https://github.com/googleads/googleads-mobile-unity) and the google-play-services_lib to the game and it worked but when I added the Play Games for Unity (https://github.com/playgameservices/play-games-plugin-for-unity) the adds stopped working. Well, before I could test them I had to move the admob attrs, admob styles and admobs strings from the google-play-services_lib/res/values to plugins/android/googlemobileads/res/values to compile the game. Now, the play games services works properly but no adds are showed as before. In the unity console appears the log correctly as it's creating the banners but in the mobile no adds are shown. Also, I used the android sdk monitor and it looks like the plugin isn't working, there aren't logs about the GMA. I configured the test ads but neither work. What can I do?

  • I've found this in the Debugger:

    I/Unity﹕ AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.gms.ads.AdSize at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in :0 at UnityEngine.AndroidJNISafe.CallStaticObjectMethod (IntPtr clazz, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in :0 at UnityEngine.AndroidJavaObject._CallStatic[AndroidJavaObject] (System.String methodName, System.Object[] args) [0x00000] in :0 at UnityEngine.AndroidJavaObject.CallStatic[AndroidJavaObject] (System.String methodName, System.Object[] args) [0x00000] in :0 at UnityEngine.AndroidJavaObject.FindClass (System.String name) [0x00000] in :0 at UnityEngine.AndroidJavaObject._AndroidJavaObject (System.String className, System.Object[] args) [0x00000] in :0 at UnityEngine.AndroidJavaObject..ctor (System.String className, System.Object[] args) [0x00000] in :0 at GoogleMobileAds.Android.Utils.Get

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by LameZ · Nov 21, 2015 at 08:50 PM

if its the last build (0.9.27) it removes the directory google-play-services_lib and admob isn't working anymore ... i trying to fix this few days and still no success.

this didin't help in my case ,but you can try it anyway. https://www.bountysource.com/issues/28237470-google-play-game-service-and-admob-ads Cheers!

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 Atenrev · Nov 21, 2015 at 11:41 PM 0
Share

Damn. Well, thanks anyway, I'll try and I'll tell you if it worked :)

avatar image Wajdi-azar Atenrev · Feb 02, 2016 at 07:29 PM 1
Share

guys any luck solving this damn problem?

avatar image
0

Answer by Atenrev · Nov 22, 2015 at 12:35 AM

IT WORKED! I love you so hard! I did what Claywilkinson said, thanks!!

Comment
Add comment · 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 LameZ · Nov 22, 2015 at 06:46 AM 1
Share

yep ... btw it wors for me too , but cost me all night long :)) Cheers mate!!!

avatar image siddharth3322 · Feb 03, 2016 at 04:11 PM 0
Share

What is the actual solution for this? I am getting same error right now.

avatar image slametnhd · Feb 05, 2016 at 04:21 AM 0
Share

thx. i'll try

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

38 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

Related Questions

Admob interstitial ads - Deleted a jar file 0 Answers

Admob Unity Plugin - Mute interstitial ads 1 Answer

Admob Banner Has Shown Only Twice in Two Weeks 0 Answers

Admob ads not showing on android devices 0 Answers

How to make an Ad Repeat after 5minutes iOS 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