You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make BannerAd components take their parent views width (not the entire window's width) and I'm not getting much success. I know you can get the ads to scale to the window's width (by using BannerAdSize.ADAPTIVE_BANNER or BannerAdSize.SMART_BANNER), but I really want the ad to scale to a specified width (which in my case would be Dimensions.get('window').width - 30).
Is there a known "hackish" way to achieve said behavior ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I'm trying to make BannerAd components take their parent views width (not the entire window's width) and I'm not getting much success. I know you can get the ads to scale to the window's width (by using
BannerAdSize.ADAPTIVE_BANNER
orBannerAdSize.SMART_BANNER
), but I really want the ad to scale to a specified width (which in my case would beDimensions.get('window').width - 30
).Is there a known "hackish" way to achieve said behavior ?
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions