I am attempting to integrate Admob Mediation with Unity Ads, what I mean is I would like the Admob Unity SDK to drive the mediation and decide if it should display the Admob or Unity Ad based on highest revenue.
As my starting point I am using this tutorial
Although it is out of date I was able to account for the differences in the dashboard and complete all the steps.
On the Unity Side was unable to simply turn on the Unity Ads service as this gave me errors. After some email exchanges with Unity Support I was told that instead I had to import the package from the Unity Asset Store which I did.
My understanding is that as long as the Admob SDK is in my Unity Project along the side of the Unity Ads SDK and the Mediation is setup correctly on the Admob Dashboard then the Admob SDK should be able to correctly choose the best paying ad and display it.
Although I am calling the Admob SDK code as usual I am not making any calls or initiations to the Unity SDK (I am not sure that is correct)
However in reality all I ever get are Admob Ads with 0 Unity Ads impressions even after several weeks of running.
I should ad that I am not using Rewarded Ads just Interstitial ads.
I tried contacting Unity Support about this but it has now been 1 week since I received a reply (despite several emails asking for more help).
Because I see the Network Request coming through the mediation window in Admob & Unity Ads I feel like I am close but I must me missing something because I never get any impressions.
Iām not sure how the admob mediation SDK works with unity, but you can simplify your integration by using Enhance.
We support admob and a wide range of networks and integration takes only minutes. With Enhance, you can take the guesswork and time out of integrating SDKs.
Now that we got the commercial offers out of the way, is there someone that has done this that can point me in the right direction? Anyone from Unity? This should be super simple why is there no documentation about how to implement this?
The only code you need to write is the code you would usually implement to show Admob Ads. Once you get that working importing the second plugin and setting Mediation up correctly on the Admob Dashboard is enough.
IMPORTANT: You do not import the Unity Ads plugin from the Asset Store. Doing that will not work, I have spend a month hitting my head against that door. You also do not enable the Unity Ads service in the services window.
It looks like I may be hitting the same issue, I have everything seemingly set up correctly and I can see 100ās of requests being made for Unity Ads but no impressions. However as you mentioned Iāve installed the Unity Ads plugin and have Unity Ads enabled in the services window.
Are you saying that simply deselecting Unity Ads in the services window within the editor worked for you? Or did you have to uninstall the Unity Ads plugin as well?
What went wrong:
Execution failed for task ā:processReleaseResourcesā.
Android resource linking failed
Output: C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml:36: error: unexpected element found in .
Command: C:\Users\UMI.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\3612db01bb1b889c1b09c4fb3b8aca3f\aapt2-3.2.0-4818971-windows\aapt2.exe link -I
C:\ANDROID_SDK\platforms\android-30\android.jar
āmanifest
C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml
-o
C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\intermediates\processed_res\release\processReleaseResources\out\resources-release.ap_
-R @C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\intermediates\incremental\processReleaseResources\resources-list-for-resources-release.ap_.txt
āauto-add-overlay
ājava
C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\generated\not_namespaced_r_class_sources\release\processReleaseResources\r
ācustom-package
com.gamexis.googlemedtest
-0
apk
-0
.unity3d
-0
.ress
-0
.resource
-0
.obb
āoutput-text-symbols
C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\intermediates\symbols\release\R.txt
āno-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
Output: C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml:36: AAPT: error: unexpected element found in .
Command: C:\Users\UMI.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\3612db01bb1b889c1b09c4fb3b8aca3f\aapt2-3.2.0-4818971-windows\aapt2.exe link -I
C:\ANDROID_SDK\platforms\android-30\android.jar
āmanifest
C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml
-o
C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\intermediates\processed_res\release\processReleaseResources\out\resources-release.ap_
-R @C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\intermediates\incremental\processReleaseResources\resources-list-for-resources-release.ap_.txt
āauto-add-overlay
ājava
C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\generated\not_namespaced_r_class_sources\release\processReleaseResources\r
ācustom-package
com.gamexis.googlemedtest
-0
apk
-0
.unity3d
-0
.ress
-0
.resource
-0
.obb
āoutput-text-symbols
C:\PROJECTS\Google Mobile Mediation\Temp\gradleOut\build\intermediates\symbols\release\R.txt
āno-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.