-
Notifications
You must be signed in to change notification settings - Fork 69
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
Feat: Add support for Native Ads #110
Comments
Take a look at #88 this can not be done. |
Any alternatives you can suggest to implement native-like ads in hybrid apps? |
No idea really. It needs to be 100% Native to work. |
Hi @distante, it works well to embed native google maps into the content of an Ionic app. Why shouldn't it be possible with Admob ?
|
AFAIK google maps (even on native using a webview) renders an iframe with the map. I can be wrong about it thought. |
@distante with the new plugin of google maps it renders a native google maps, not a iframe, maybe we can copy to this plugin? |
I did a comment in another issue. I find the idea nice, but I do not have time at the moment due work and personal stuff, and it will be in this way for a couple of months. |
Found another plugin that claims to support Native Ads https://www.npmjs.com/package/capacitor-admob-ads I made it work for Capacitor 5 just to test the AdMob Native Ad capability and it worked flawlessly. A Native Ad is just a data payload object returned from the Mobile Ads API and then the client code decides what to do with it and how to render it, so I'm a bit confused why "it is impossible". |
@distante means, this issue is technical viewed possible? |
As I understand, and like @braincomb says, it is possible since you have control were it is rendered and plugins like Google maps do that. The thing is, you need to sync the webview with the ad native view scroll. Which is not that easy to do, AFAIK. I tried to check the repo of the plugin that @braincomb posted but it doesn't exists. |
@distante i think the easiest way to achieve that, is to manually update the native ad from the javascript code like: AdMob.updateBanner({ I found this plugin, which supports on cordova native ads: And yes, maybe its lags at scrolling. The solution could be to hide the ad at scroll start, |
Sadly it only support |
@KiddoV you can find the code here: https://www.npmjs.com/package/capacitor-admob-ads?activeTab=code |
@orestis-z Thanks, but I wouldn't use a library that is no longer maintained. |
Hi
I need to implement Native Ads in my Capacitor app. But couldn't find any solution.
I really appreciate if you consider adding this feature to this plugin.
The text was updated successfully, but these errors were encountered: