Centering Ads on multiple devices

Talk about anything and everything game dev-related here!
I was wondering if you guys knew how to center ads in the bottom center of the screen. It is normal size banner ad from admob which says the dimensions are 320x50. I have the coding right now get the device width and divide it by 2 then subtract 320. Then I get the height and subtract it by 50. I'm using the code GoogleMobileAds_AddBannerAt. My Samsung Tablet is pretty close, but not close enough. My Droid Turbo though is way off you can only see a little bit of the top the rest is off the screen. Thanks for the help!

User avatar
 
Posts: 5

Return to Game Dev

Who is online

Users browsing this forum: No registered users and 1 guest