-
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
[📚] AdMob - use @invertase/react-native-google-ads
#5329
Comments
Try this link |
This came up as a comment on an unrelated issue and I think I may understand the confusion now - pasting in my comment from there: Ah - sorry, we've already merged the change where Admob is removed from firebase following it's removal upstream, and the documentation site goes live immediately after merges to main branch. It is not as great of an experience but for now until we have the admob code re-hosted in a non-firebase repo you can go direct to the usage docs and types / API reference from the v11.5.0 (current stable) tag https://github.com/invertase/react-native-firebase/tree/v11.5.0/docs/admob Normally it's a great thing that the docs site is updated immediately between releases, but in this case it means the documentation for a module that is still live (and will always be, in that version) is gone. I'll have to think on that to see if there's some better way we can keep docs for old versions alive as they are still quite useful |
I've pinned this issue for others |
@mikehardy Thanks for clarification! |
@mikehardy Sorry it may seem stupid question but please help me. |
@Kamani v11.5.0 contains admob. That is the current latest release so you may use the command you mention. |
@mikehardy Thank you for your reply. I really appriciate. Admob will be again integrade in future release? Or you guys are planning to remove it permenantly? |
It's gone from upstream. The Google Firebase team have removed it. We track them. It will never be in react-native-firebase again. We have plans to re-host the code on an external repository, but you will not be able to update react-native-firebase and use admob at the same time until we do so This may not be great to hear but please understand we are downstream consumers of the SDKs. This is not our decision. |
@mikehardy I can understand. Thank you for explaining in detail. May be this detailed comment will be also useful for new users. |
Maybe someone knows great alternative admob libraries which are supported today? |
V11.5 was just fine 2 days ago and is still fine today? Please be a little patient and the code will be in a new repo. Or there is react-native-admob I think? |
Oh, if you are going to create separate library then it is cool.
|
@mikehardy Thank you for your hard work and responses. Do you have an expected timeline for |
Unfortunately not, and with admob it's a little tricky because even before the most recent change the code here was already in need of a breaking forward port #5150 - that forward port itself means that step 1 is simply to move the code, step 2 is then to forward port it (otherwise there will be collisions for folks trying to use up to date GoogleAppMeasurement symbols - which Firebase Analytics shares). This is all unfunded work so it's a lower priority - I do love making things work but I have to prioritize as there is of course an infinite task queue ;-). If you wanted to help it would be really really welcome and even before moving (step 1 as I listed it) it is actually possible to start with what I listed as step 2 by branching from the v11.5.0 tag here and beginning the forward port based on google documentation. Any work done here can then be merged onto a branch and I'll just use the branch for the repo extraction, but the forward port work will have the support of all our E2E testing / test app infrastructure which is tremendously helpful I think. |
That offer is open to anyone of course! Any future admob repo will have to have a large community participation to move forward, but the test infrastructure and CI and build/release tooling and stuff - that's what we / the future repo will get all for free so it's easy to contribute I hope. |
setDebugGeography dosen't reflect even when i whitelist my deviceId |
Use react-native-admob-next for admob this is based on expo-ads-admob. |
That sounds good and could be a good solution @spazfeed do you know if it's already forward-ported to the new AdMob breaking changes? I'm just curious, because we are not forward-ported here, and if that library already is then it is ahead of anything we'd have by splitting the previous code here out |
Most probably not. It's still on v19 (Android) & v7 (iOS). |
I just create pull request for update Mobile Ads SDK here or you can use it directly from my fork |
It seems like @invertase/react-native-admob has huge advantage (comparing to react-native-admob-next) as it allows to create few interstitial instances and react-native-admob-next does not (correct me if I am wrong) |
Still on the radar as something to port out yes but I was curious yes if it still had value compared to any other efforts, thanks for chiming in |
Any plans to update AdMob & IID to the latest version? Stuck on 11.5.0 due to both. |
How can I use your fork? How to install it? |
Just FYI, we're getting close here, I'm at the "setting up e2e testing" part but the module from previous code here / extracted moved is public now https://github.com/invertase/react-native-google-ads/ next steps are finish a quick e2e bringup to verify functionality, then forward port No documentation is available yet and it's not on npmjs.com but git references should work for the migration the general idea is "admob" is now "googleAds" / "AdMob" in types is now "GoogleAds" etc, and the example app shows how to use It's my current project here, it will be finished before I move to something else |
Found a great alternative which also supports app open ads. |
Glad to hear that 🎉 Looking forward to first release 👀 |
@mikehardy any update? when https://github.com/invertase/react-native-google-ads/ will be released? Will you also support app open ads? |
When it's released it will hopefully support the entire API surface area of google ads, and one of the reasons to do a native module wrapper vs pure JS is that if it's possible with the SDK natively (app open ads, for example) it will be possible with the wrapper. As for progress the last time I had a good chunk of hours to throw at it, I thought it was pretty close 🤷 - it is slow going though, I do understand. Only so many hours in the day and I have a couple hot work projects at the moment |
@mikehardy I've a question regarding to: one of the reasons to do a native module wrapper vs pure JS is... The previous library ( Thanks PD: Thank you so much for your hard work! |
Hi @RodolfoGS - the previous incarnation of admob in |
@mikehardy Any update? I understand you must be very busy, I'm just wondering if I should wait out a bit more or switch to another package. |
I submitted a few PR's which makes the new repo usable (at least on iOS). For the time being (no npm package yet) it can be added to your projects package.json using: Thanks for getting those in fast @mikehardy! |
Happy to help! Thanks for helping get out the door. Sorry I did not have the time but I do want to make it clear that the goal is for the package to be alive, and I will look at and merge any PRs that help get it there, as I have with those from @dylancom :-) |
The new repo is alive and updated to the latest SDKs for AdMob now. It's still moving very quickly and you should test carefully before deploying on it, but it's alive. I'm going to close this, cheers |
@invertase/react-native-google-ads
Do you have any idea if it is being updated, or are you planning to update the library in the future? version 11.5.0 is the latest stable version and it works perfectly, but I have doubts if updating the @react-native-firebase/app core to version 14.5.0 makes the application stop working. Have you used admob v11.5.0 with app v14.5.0? |
@Ronald3217 you are in luck! It was peeled out to https://github.com/invertase/react-native-google-mobile-ads and has gone through a few revisions so it is all up to date, it now appears to be stable and we're consolidating the rest of the react-native admob packages in to it (by working with / collaborating with their maintainers) Go grab that package and move forward with admob, fully separate from Firebase |
Oh, and as for versioning, never mix versions of react-native-firebase: https://invertase.io/blog/react-native-firebase-versioning |
i am working with @react-native-firebase/app and @react-native-firebase/admob versions 11.5.0 (in released apps) but building one and using firestore and app v14.5.0. From what I understand you no longer recommend working with the /admob module and instead use react-native-google-mobile-ads (because I've been using the /admob module for a long time and I'm used to its implementation) but it is better implement the new library, I'll have to learn how to use it. |
@Ronald3217 https://github.com/invertase/react-native-google-mobile-ads, as of its v4.2.0 is just RN Firebase 11.5.0 is almost one year old at this point, still using it you are probably missing some performance / features because of older underlying SDKs, and keep around some bugs fixed since then. |
Reading the documentation, I don't see that dependencies need to be implemented in build.gradle app and project. Thanks in advance for taking the time to respond. |
Yeah, just follow the docs. I believe, there is nothing to do in gradle config for this lib. |
@mikehardy thank you very much, have a nice afternoon. |
Hello, I have a question for you, have you implemented the new library https://docs.page/invertase/react-native-google-mobile-ads? I've been trying all day but I couldn't. I have sdk 29, do you think that is the problem. If so, which one should I use? |
@Ronald3217 if you have a problem with that library, please post in that library. Prior to doing so, please examine the example app (and/or the example construction script - it's scripted: https://github.com/invertase/react-native-google-mobile-ads/blob/main/refresh-example.sh) to make sure you are following best practices and that your local environment is not busted in some way |
I know this is closed but @mikehardy and Team over at invertase have done a fantastic job with the new admob package and made migrating from this package super simple (removed firebase admob from package.json cleared dependencies for ios and node_modules reinstalled and added my app id to my app.json) I personally strongly encourage anyone who hasn't yet migrated to do so. Thanks again to @mikehardy and team for putting for the effort to keep this package running. |
AdMob documentation availability
Hi there! I've noticed that AdMob documentation is not available on the official website: https://rnfirebase.io/admob
There is a 404 error:
Is there any issue with that or this part of documentation turned off intentionally?
Thanks!
The text was updated successfully, but these errors were encountered: