Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

(android) added bannerHeight to banner LOAD event (#361) #373

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

syonip
Copy link
Contributor

@syonip syonip commented Jun 29, 2019

Same change implemented on android

@syonip
Copy link
Contributor Author

syonip commented Aug 2, 2019

Hi, any progress on this?

@pipboy9000
Copy link

please merge this fix!! it's extremely helpful!

@123dma
Copy link

123dma commented Aug 23, 2019

please merge.. I need it

@aabdolla
Copy link

What does it help with?

@pipboy9000
Copy link

having the height in the LOAD event is very useful since the height varies, it saves doing unnecessary calculations for the layout after the the banner is loaded


data.put("bannerHeight", heightDp);
} catch (JSONException e) {
e.printStackTrace();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if this propagates to the webview console too.

@luigi37
Copy link

luigi37 commented Jan 29, 2020

Hi, needed also here. I have a jquery cordova app that needs to be properly resized and if banner is shown I loose bottom buttons...

@junbonglee
Copy link

Any progress on this?

@f18nfz
Copy link

f18nfz commented Jul 3, 2020

Just noticed if I test on a device running API 30 or API R the banner height that gets returned is actually the device height (so in this case 14400) - is it just me or are others seeing the same issue? Any ideas?

loadUrl(javascript:cordova.fireDocumentEvent('admob.banner.events.LOAD',{"bannerHeight":14400});)

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

Successfully merging this pull request may close these issues.

8 participants