How to get max admob size for current screen configuration?

Background

I want to show an ad using admob in my application, but I also want to show something there while it was loading (before it was shown) or, possibly, even when there was no Internet connection.

Problem

It seems that admob has a wide range of sizes for its ads, depending on the screen (link here ) you want to target, but there is no instruction on what you should use to choose the best size.

For example, they talk about tablets, but they do not determine what a tablet is in the table and what type. They don’t even explain what each type of ad means.

Question

Given a device with a specific configuration, how to choose the best ad size?

If I use BANNER will always be displayed? Will he automatically select others if there is enough space on the screen?

+4
source share
1 answer

I use different ad sizes for four different screen sizes (small, regular, large, xlarge). IMO makes sense to use more screen real estate for advertising on large screens and less on smaller screens, but it depends a lot on the application and on what part of the screen real estate you are willing to trade for larger ads (larger ads = higher income). Thus, it is really a matter of finding the right balance between usability and maximizing ad revenue. If the ad is too large and too intrusive, then usability, as well as the rating and, consequently, the number of downloads will suffer. If the ad is very small (the BANNER size on the xlarge screen is really very small), users will not even notice and may not click on it.

To use different ad formats for different screen sizes, I use the include tag to include the ad layout, which I define in layout layouts, layout layout, layout layout and layout layout. Thus, each of these folders contains ad.xml, and they have different admob: adSize and admob: adUnitId tags.

I also reserve space on the layout if the ad does not load (for example, there is no network). The dimensions of the space are the sizes of the various sizes of announcements: Banner: 320 * 50 IAB_BANNER: 468 * 60 IAB_LEADERBOARD: 728 * 90

I define the sizes in the dimensions.xml files located in the values, large values ​​and xlarge values ​​(small ones use BANNER in my applications too). Dimensions can be specified in your layout in the tag layout_width and layout_height, for example:

android:layout_width="@dimen/admob_ad_width" android:layout_height="@dimen/admob_ad_height" 

In fact, this is your decision about what sizes of ads you want to display on which device (Admob will use a specific adSize and not redefine your configuration). I use BANNER for small and regular screens, IAB_BANNER for large and IAB_LEADERBOARD for xlarge screens, but this solution is up to you. The approach that allows Admob to decide which size to display is not a good option for most applications, as they should make good use of screen real estate and know how big the ads will be when it comes to designing a screen layout.

+4
source

All Articles