react-native-google-mobile-ads icon indicating copy to clipboard operation
react-native-google-mobile-ads copied to clipboard

[AppLovin Mediation] More steps?

Open robinshin opened this issue 3 years ago • 1 comments

Documentation Feedback

Hello,

I did setup the AppLovin mediation following the following tutoriels:

  • https://developers.google.com/admob/android/mediation/applovin
  • https://developers.google.com/admob/ios/mediation/applovin

However, in my AdMob mediation dashboard, I get like 10x less AppLovin ad source than AdMob both for iOS and Android.

Is there more steps to follow?

I found the following tutos:

  • https://dash.applovin.com/documentation/mediation/android/getting-started/integration
  • https://dash.applovin.com/documentation/mediation/ios/getting-started/integration
  • https://dash.applovin.com/documentation/mediation/react-native/getting-started/integration

Do I have to follow one of these tutos?

robinshin avatar Jan 13 '23 23:01 robinshin

@robinshin Have you managed to add AppLovin together with this library?

I read that for example, for Android, you have to add: implementation 'com.google.ads.mediation:applovin:11.11.3.0'

To the build.gradle together with implementation 'com.google.android.gms:play-services-ads:22.3.0'.

Inside the react-native-google-mobile-ads files, you can see that is being added the following lines:

dependencies {
  implementation("com.google.android.gms:play-services-ads:${googleMobileAdsVersion}") { force = true; }
  api "com.google.android.ump:user-messaging-platform:${googleUmpVersion}"
}

path is node_modules/react-native-google-mobile-ads/android/build.gradle

So I was wondering if this should not be like:

dependencies {
  implementation("com.google.android.gms:play-services-ads:${googleMobileAdsVersion}") { force = true; }
  implementation("com.google.ads.mediation:applovin:11.11.3.0") // <- ADDED HERE
  api "com.google.android.ump:user-messaging-platform:${googleUmpVersion}"
}

And then you do the rest of the configuration related to Admob/Applovin, and it should work.

The problem is that you would have to fork this library and modify it by yourself. I think that if you simply edit the build.gradle from your android project's folder it will not work.

frederikocmr avatar Aug 30 '23 13:08 frederikocmr