Comments (15)
I just wanted to update this so everyone knows. That the latest version of the official admob-plugin works perfectly with play game services!
No need to fix the jar files anymore, plus you need the new one to continue using admob after august(2014).
Use the admob-plugin from this location:
https://github.com/googleads/googleads-mobile-plugins/
Best Regards!
from play-games-plugin-for-unity.
Could you include additional details? The dex is probably failing because both our JAR and the AdMob jar are probably including the same libraries, leading to duplicates. Could you please attach the full logs here? Thanks!
from play-games-plugin-for-unity.
I had this issue as well. But there is a simple temporary fix for this.
As jar-files are pretty much zip files. You can do the following:
Open the google-play-services.jar in ..\Assets\Plugins\Android\google-play-services_lib\libs
This one contains the same references as GoogleAdMobAdsSdk-6.4.1.jar, which you need for admob.
So delete these files from google-play-services.jar, as the game service is not using them.
After that everything will work in the build process! Also remember to forward the native events to the correct process, or the ads won't be clickable, in the androidmanifest.
Best Regards,
Erik
from play-games-plugin-for-unity.
I'm having the same issue, if I have "GoogleAdMobAdsSdk-6.4.1.jar" and "google-play-services.jar" in the same project.
JEOptimal I don't understand how do you fix it
from play-games-plugin-for-unity.
He said he opened the google services lib jar file as zip, and deleted the subfolders concerning ads in it. Then the conflicts with admob are gone.
The issue is that admob has been merged into the latest version of the google services lib, so if you use both, there's duplicates.
But in any case I don't think it's OK to do that, because from what I see on Google's website, they're now only allowing the new google services lib for ads, and not admob anymore. Not sure your app will pass if you use admob standalone.
from play-games-plugin-for-unity.
Also remember to forward the native events to the correct process, or the ads won't be clickable, in the androidmanifest.
Can you explain how to do that ?
I use my own jar plugin to integrate AdMob and other ad providers. I removed GoogleAdMobAdsSdk, and made changes in the code to use ads from Play Services jar, all compiles good, I see ad banner, but it not clickable.
I added in Manifest:
meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true"
But with no result.
from play-games-plugin-for-unity.
This could help:
http://forum.unity3d.com/threads/195169-Google-Admob-plugin-for-Unity-ad-is-not-clickable
I had the same problem and that solution fixed it.
from play-games-plugin-for-unity.
The solution of JEoptimal works perfectly. Thanks!
from play-games-plugin-for-unity.
Did implement solution given by JEoptimal but still cannot solve the issue. Other than the two ads folder in the google-play-services.jar is there anything else that has to deleted to get this working?
from play-games-plugin-for-unity.
@JEOptimal & @Gjjansen : Can you guys share me the google-play-services.jar or tell us what to delete? I tried to delete ads folder but it didn't work. Please help!
from play-games-plugin-for-unity.
here is the delete method
from play-games-plugin-for-unity.
@JEOptimal thanks a lot..!! it worked for me 👍
from play-games-plugin-for-unity.
Hi, I downloaded the zip file( the link above admob plugin) and I dont know what to this with this files, can anyone help me to add correctly this in my game and all the steps to config the admod plugin, if anyone can send me a tutorial , please sent anyone that is dont up to date!
from play-games-plugin-for-unity.
Simply remove your old Java Installation from Computer, Double Check you have installed multi Java installation in computer.
from play-games-plugin-for-unity.
@JEOptimal thanks a lot. It worked for me. Actually, in the new version of the Google Play Games plugin, they seperated play-services-ads.aar as a different aar file. Removing it just from build (uncheck the Android in import settings) solves the problem.
from play-games-plugin-for-unity.
Related Issues (20)
- Detect username change in Play Games app
- When will the version with the recall API be distributed?
- AppUpdateRequest is never Done after user minimizes app and reopens it through app drawer
- Unity Editor 2022.3.16f1 (LTS) project build Failed HOT 8
- play-games-pulugin-for-unity
- Bug reports
- Remove Plugin Completely HOT 1
- Known vulnerability detected
- Unity splash Auto Login
- [Bug] Non-secure network connections error
- How would this plugin behave when granular permissions of Google OAuth is enabled? HOT 6
- Can someone share sample for google play login? HOT 2
- Authentication failed. Prompt shows 400 Bad Request
- Sign in doesn't work. Returning an error code. HOT 11
- Only One Player data Saved
- Automated testing isn't possible with auto sign in as it hangs on the create profile screen
- Cloud saves sometimes deleted?
- `SavedGameMetadata` is closed after `CommitUpdate` HOT 1
- Is it possible to do a silent login with play games platform? HOT 1
- Errors on install from Package Manager (missing .meta files) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-games-plugin-for-unity.