I have set my banner size as 320*50. For the Retina display, I have set it as 640*100. It's not displaying the banner at all. Can you please let me know what mistake I have made? It works when the size is 320*50, but not when it is 640*100.
相关问题
- play-services-ads:18.1.0 Causing Fatal Error on An
- How to show AdMob banner in inappbrowser using Cor
- Admob under Floating Action Button
- Admob Interstitial ad on Button Click
- admob native ads will be shown?
相关文章
- Removing AdMob from app in Android Studio
- How to set adSize?
- AdRequest.Builder cannot be resolved to a type
- Interstitial Ad Loading After every 1 Minte
- How to show admob ads vertical in landscape mode?
- admob cannot be viewed in android
- How to use GADBannerViewDelegate to perform action
- Admob on surfaceview
Yes, you do use the same size on the Retina devices.
However you shouldn't be setting the specific size at all. If you decide to convert your app to iPad as well then your ad code will all of a sudden stop working as it will only stretch half way across the screen.
Use the Smart banner size, and Admob will work it all out for you. For instance, here is some code from one of my apps that places a banner at the bottom of the screen. Note in particular the use of kGADAdSizeSmartBannerPortrait, this allows the resize of the ad banner.
Use 320x50 on retina devices as well. It's the ad network's responsibility to come back with a 2x density image to fit onto your device, not your responsibility to make the frame twice as big.