-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Banner ads mediation not working (:fire:) #2377
Comments
Could you propose this as a PR? |
I made the following code change to a local version of the package, it compiled ok but failed on the bundling when running the app. This could work: In RNFirebaseAdMobBanner:
|
Hello 👋, to help manage issues we automatically close stale issues.
|
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information. |
@smashappz Hi there, I'm trying to implement mediation as well. Have you tried this in IOS? I'm facing some compilation issue but I'm not sure if I have to install something else. |
specify "some compilation issues" (that is: paste the text of the full compilation error message inside triple-backticks here) and perhaps someone has seen it before and can help |
@mikehardy It's |
You'll need to be very careful with your xcodebuild build settings - you can set them in a post_install in your Podfile, and the trick is to include or exclude the right architectures. Those errors are typical when you are dealing with old libraries built before .xcframeworks existed and they only had one arm64 library slot so they filled it with the release (ios) version of the library not the debug (ios simulator) version because it's more important. If you're on apple silicon you might try doing the whole thing using rosetta 2. |
Issue (:fire:)
Similar to #1792 mediation not working with banners.
I've set up Admob with mediated Facebook ads. Testing with the Admob mediation test suite, I can get both ads. So I know my setup is OK.
Looking at the 5.5.4 branch it looks like the suggested fix is similar. That is from #1792
"Changing getContext() into getActivity() fixed the problem, however I do not know if this is the right solution. (I modified the following line)"
The official docs seem to point to using activity instead of context,
(Source: https://developers.google.com/admob/android/banner)
Looking at the firebase code I tried to figure out how to hotfix, but it seems similar to the interstitial fix:
I was looking to try to do something like:
Project Files
Android
Click To Expand
Have you converted to AndroidX?
No
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:5.5.4
Firebase
module(s) you're using that has the issue:Admob
TypeScript
?N
The text was updated successfully, but these errors were encountered: