What's the size of the actual ad in a GADBannerView?

32 views
Skip to first unread message

Eric Slosser

unread,
Sep 13, 2021, 8:32:12 PM9/13/21
to Google Mobile Ads SDK Developers
Inside a GADBannerView, the ad is frequently rendered inside of borders. 

Is there a supported way to get the actual size of the ad, without the borders?

Mobile Ads SDK Forum Advisor

unread,
Sep 14, 2021, 3:36:39 AM9/14/21
to google-adm...@googlegroups.com
Hi Eric,

Thank you for reaching out to us. Let me do the best I can to assist you in this.

With regard to your concern, you may specify the banner sizes upon ad request and you can also define a custom size that you prefer which you can find here. You may use the information provided as a reference on what ad size you will receive. 

On the other hand, I'm afraid that you cannot get the ad size excluding the border. Please do note that certain creative sizes might not fill the complete size that you requested and in certain cases, there will always be padding/border which is part of the ad itself.

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 
 

ref:_00D1U1174p._5004Q2NTrCO:ref
Reply all
Reply to author
Forward
0 new messages