Skip to content
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

Getting the height of the SMART_BANNER #85

Open
arjes opened this issue May 10, 2020 · 3 comments
Open

Getting the height of the SMART_BANNER #85

arjes opened this issue May 10, 2020 · 3 comments

Comments

@arjes
Copy link

arjes commented May 10, 2020

I'm trying to have an element of my app float just above the ad but since the SMART_BANNER type is different sizes on different screens I've got some banners covering the content.

Is there a way to programmatically get the loaded ad size? I saw the ios code (https://github.com/EddyVerbruggen/nativescript-admob/blob/master/src/admob.ios.js#L34) has the expected sizes, but in Android that just becomes the string constant.

Alternatively, I tried using the view option for createBanner but was unsure what exactly to pass into that parameter. (I'm using the angular wrapper).

@kakha13
Copy link

kakha13 commented Jul 5, 2020

hey i think i found solution my gist How to get nativescript-plugin-firebase admob SMART_BANNER height

@ReazerDev
Copy link

@kakha13 Thank you so much! You saved me hahaha. Can confirm that it works perfectly on android!

@kakha13
Copy link

kakha13 commented Apr 19, 2021

@kakha13 Thank you so much! You saved me hahaha. Can confirm that it works perfectly on android!

Yea it works but i found better solution with Placeholder
Monetize your NativeScript apps with AdMob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants