hi there, Joshua,
with lots of head banging and browsing over the Internet I get Google Play Services and Admob mediation get to work for Unity. To be honest I'm surprised how complex everything has been made, also the internal structure of Android project too and its Gradle dependencies. There are Play services resolvers and stuff that don't seem to do much work. I had to iterate over some of both GPGS and GoogleMobileAds xmls and templates and change stuff in order to build. One particular change I did was to change dependencies version in some AndroidManifest from "10+" to "11.2.2" (current version) to make it work. Needless to say, I figured that out with lots of searching over the Internet
On point, Vungle have given me this response:
"Currently to do that you will need our older version of the SDK, as our 5.x SDK requires placements, which are not currently supported by Admob's Unity plugin.
As such please follow the steps in this guide:
https://support.vungle.com/hc/en-us/articles/208073977-Integrating-AdMob-Mediation-Vungle-SDK-v-1-0-v-4-1-iOS-https://support.vungle.com/hc/en-us/articles/207604108-Integrating-AdMob-Mediation-Vungle-SDK-v-1-0-v-4-1-Android-"
So I did that. I had couple of problems with making my project build for both Android and iOS and spent couple of days in that.
For iOS:
- I had to exclude google play services from being built and included in the iOS build. I have no idea why it has support for iOS in the first place. To do that, I added NO_GPGS symbol for iOS builds. Too bad it was way down in the documentation so it took me some time and countless of threads on the Internet to figure it out. If you do allow GPGS for iOS, you will get yourself in lot of trouble - missing definitions, dependencies, etc.
- I had some other issues as well but I forgot them already as I went through a lot of stuff
for Android:
I am still not sure if I managed to make a workable build for Android, as I still haven't found an Android device to test on. However, I managed to make things work with Unity's internal build flow. If you get to generate a Gradle project for the means of Android studio, it is total hell. I faced lots of errors and unresolved dependencies, which after a lot of fine tuning and changing stuff I managed to reduce to just one.
This one was some kind of "method isInstantApp(java.lang.String) missing in class..." which I found out was added in API level 26. Basically that prevents me from building for older versions of Android.
If you try to add the Vungle integration from above to the Android studio Gradle project, it gets messy, lots of missing dependencies.
I managed to get it up and working for iOS, I'm yet to find an Android device and I will be able to provide more feedback.
Cheers,