"can the size of our ad area be determined prior to requesting a smart banner ad with resource size qualifiers of some sort that will match the AdMob's smart banner sizing code?"
--
---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/--82_o4HTrU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"In certain cases, if a device has height more than 720dp but is a phone, the height of the SMART_BANNER will remain at 50dp."?
Hi,
After some further testing and investigation I now know why "values-h720dp" didn't work on the problematic device and it appears to be due to the fact that it appears AdMob uses DisplayMetrics for the height which is a different value than "values-h720dp" which doesn't contain some other UI elements such as system bar. So I understand that aspect of previously not being able to properly detect it and can work around that part.However could you elaborate on what you said in #2 - "In certain cases, if a device has height more than 720dp but is a phone, the height of the SMART_BANNER will remain at 50dp."?Specifically what criteria would you use in those cases to determine if the device is a "phone" or not? The reason I ask is because the initial report of the problem was on a "OnePlus 3", which is a phone, and have seen similar reports on these forums and elsewhere about similar behavior on "Samsung Galaxy Note" models which are phones as well. Is the criteria that you use in these cases something I can query myself as well?Darryl
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
I'm sorry but saying "if the device has a screen height of more than 720 dp and if it's a phone, then the height of the SMART_BANNER would be 50dp" is simply not true and is what prompted the original question for detecting this.The device previously mentioned (OnePlus 3) is a "phone" with default display settings but has a height greater than 720dp and the result of the ad request for SMART_BANNER is a 90dp ad height. This behavior can also be replicated on a virtual device with a specific smallest width.So either the criteria is height alone, or there's some other criteria you're using to make that decision that may not be correct on all devices and situations.Darryl
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.