- Home /
Admob. Size of ad.
Hi, Unity users! Recently i have expirienced the problem of converting device independent pixels (dip) to device ones (for offset because of ad). I've found the way for android devices with AndroidJavaClass, but i still have the problem of determining whether it is phone or tablet, because smartbanner size for them differs (https://developers.google.com/mobile-ads-sdk/docs/admob/smart-banners?hl=en). Some people suggest that devices with diag more than 6" is tablet, but maybe another way exists. Also i can not find any solution for iPad, iPhone and Windows Phone devices similar to getting device screen dencity via AndroidJavaClass. Maybe it is just tha lack of luck during googling. Help me, guys
Answer by unimechanic · Oct 01, 2014 at 03:52 PM
Also ask to AdMob support, they should have more information on how to achieve this.