Trying to add Applovin to Admob mediation in a Unity project.The app already had Admob ads working. I imported the Applovin SDK, and was able to build it without problems. Then I imported the Google Applovin Ads Mediation package. I set the Admob key as instructed in the Android Manifest, but now it won't compile.
When I build I get this error.
"The attribute activity#com.applovin.adview.AppLovinInterstitialActivity#configChanges=orientation|screenSize|smallestScreenSize|screenLayout in :com.applovin.applovin-sdk-9.9.1: collides with another value"
Then it says:
"Attribute activity#com.applovin.adview.AppLovinInterstitialActivity#configChanges value=(orientation|screenSize|smallestScreenSize|screenLayout) from [:applovin-sdk:] AndroidManifest.xml:17:13-91 is also present at [:com.applovin.applovin-sdk-9.9.1:] AndroidManifest.xml:17:13-59 value=(orientation|screenSize).
Suggestion: add 'tools:replace="android:configChanges"' to element at AndroidManifest.xml:15:9-19:50 to override."
I am not sure where they want me to place this. Any suggestions?
Ok so after 2 days of searching I found the solution - add this to your manifest:
<activity
android:name="com.applovin.adview.AppLovinInterstitialActivity"
android:configChanges="orientation|screenSize"
tools:replace="android:configChanges"
/>
Remember to put the implementation of the SDK to pull in the latest version.
Related
In my flutter app , admob ads are already showing , I want to show unity ads via admob mediation.
How to setup unity ads in flutter app via admob mediation?
There is official doc from google admobs that very much explains the Unity Ads integration using mediation.
There are several tutorial videos on youtube aswell. Please try the steps and asks specifically if you face issue in any of those steps or if any step is confusing.
eg. https://www.youtube.com/watch?v=mnr4mlVctXw
A generic guide for mediation in Flutter is documented here.
Also, it is noteworthy that the dependencies need to be added in android gradle file and ios Podfile separately as mentioned here: Add dependencies for partner networks
I've integrated https://pub.dev/packages/firebase_admob into my app and implemented rewarded ads. My problem now is that I'd like to use mediation via this plugin. The only thing is that I know (from developing Android apps and also it says in the Admob docs) that one needs to include the mediated networks' SDKs in the app.
Does this plugin even support mediation? I wasn't able to find anything relating to this.
Or does the mediation only come from the admob dashboard, just by setting up the add-unit with mediation and you're not really required to add the SDKs?
I couldn't find any adapters for this plugin, so ... don't really have anything to integrate in the app.
I'm very confused. Does anyone know how to use mediation or if it even works with the current firebase_admob` flutter plugin?
You can use firebase_admob and that dependency supports mediation. You you would like to add mediation there is a guide over here:
Android - https://developers.google.com/admob/android/mediate
iOS - https://developers.google.com/admob/ios/mediate
You can select the ad network you would like to integrate and read the steps on how to do so. Sometimes the documentation can be outdated so just make sure you cross-check the steps with the ad network you want to integrate on their github repo.
If you are integrating it for Android you have to add the dependencies in your app level build.gradle file and it will automatically install that particular ad networks SDK in your Flutter app.
If you are adding the same for iOS just install the Cocoapod for the ad network at the end of your Podfile.
For integrating Unity Ads within my AdMob mediation setup, I have followed this guide from first to last and follow exactly same steps:
Integrating Unity Ads with Mediation
Now I want to make sure whether I require to enable Unity Ads within Unity Services section or not??
I want to make sure whether I did proper setup for Unity Ads or not because other ad networks already integrated so I can't able to make sure all steps implemented properly.
I'm trying to add chartboost ads into my unity project, after adding app id and app signature when i click on setup android sdk i got this pop screen which shows the error google play services could not be found see the screen shot below..
Have you included Google Play Services in your Android Manifest? The button you mentioned should automatically install GPS painlessly into your project.
What version of the SDK are you using?
I'd like to perform mediation with the AdMob Unity plugin.
But I couldn't find any way to perform mediation with Custom Event.
Is it possible?
see also: googleads-mobile-unity, AdMob mediation support