Google always tries to serve the best-sized native assets for optimal performance. To facilitate this, the sizing for your native ads should be predictable and consistent. Your media view asset should be the same size for every ad request on the same device. To accomplish this, set your media view to a fixed size, or set the media view to MATCH_PARENT and make the parent view a fixed size. Repeat this step for every parent view of the media view that is not a fixed size.
1. This is quite an impossible thing to do. By the time I get the native ad, the size that's available could be different than what we started with, as orientation can change, and the user might even switch to split screen. How could I have such a thing?
2. Not only that, but what does it really mean, that I should use MATCH_PARENT for width and height even if the aspect ratio of the media isn't perfectly fitting the one of the display?
3. There is no room for me to customize here the media at all, to still fit the size it can reach yet give me space for other things? For example, if the media it landscape, yet I'm on portrait, there are empty spaces around the media. I could put there other UI components that are needed. I could also move the media to the top or bottom, instead of always centered...
4. Is it ok for me to change the screen orientation when I got the ad, to fit the same aspect ratio as the ad?
If so, what happens if the screen changes the orientation when I got the ad and tried to bind to it (because sadly there is no API to detect if the request to change the orientation worked) ?
This can also occur if I decide to do the opposite, meaning to lock on current orientation from the beginning, because sadly the request to have a specific orientation doesn't mean it will work. It can be ignored...
5. Why can't Admob offer various accepted layouts and logic to use for this? It has various ones for rewarded ads and interstitial ads... We don't even have what was offered on the docs...
Even on the sample of it, it has a huge UI on top of the MediaView, which can hide important data behind, especially on landscape (which BTW can cause a crash when I switch the orientation):
https://github.com/googleads/googleads-mobile-android-examples/issues/934
6. Should I have one ad-unit-ID for portrait and another for landscape? It says this after all: "Your media view asset should be the same size for every ad request on the same device"...
Hi Liran,
Thank you for contacting the Mobile Ads SDK support team.
I will check with our team regarding your queries and one of my team members will reach out to you.
![]() |
Mobile Ads SDK Team |
[2025-10-10 04:59:09Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01u8mAq:ref" (ADR-00335088)