capacitor-community / admob

Community plugin for using Google AdMob
MIT License
205 stars 66 forks source link

Can't dynamically adjust margin value or have multiple banner ads throughout app #312

Open gldstrrbt opened 4 months ago

gldstrrbt commented 4 months ago

A clear and concise description of what the bug is.

I'm trying to conditionally set the margin key's value for the banner ad options and am unable to do so. The plan was to have a banner ad display above the navigation on the first level views, then on secondary views have a banner ad display above a toolbar that has a different height, which would require the banner ad to have a new margin in order to be flush with the top of the toolbar.

However, it looks like it's not possible to dynamically/conditionally set the margin value. Nor does it appear that multiple banners can be used throughout an app.

Please let me know if these assumptions are wrong and point me in the right direction. Any help would be greatly appreciated. Thank you in advance!

I'm using reactjs (version prior to hooks...),capacitorjs v3, and exporting for Android