Native Ad - Image Responsiveness Issues
See original GitHub issuePlugin Version
google_mobile_ads: ^1.2.0
Steps to Reproduce
- Create a Native Ad
- Create a listview with cards
- Try to make the native ad look like the cards like this example: https://lh3.googleusercontent.com/KtEoccHt7kwMVm4GdhwA-DyEcd2DEQCqWZuiQi0z2OoBQOUkD0OUIgnb75iGqHSPCHmsoPjTvVS3LprzHGGDlR2S2YUrIt7fPJZ9=w0
- First issue - I was only able to find 2 templates?! Small and medium sizes? The Flutter version of the official documentation is not really clear about it.
- I used the medium size template, and just tried to move the image banner to the top of the ad to look more like a card using the xml template file.
- Seems easy but to my surprise I was not able to make the banner image fit the card, the image is not using the full size horizontally or vertically properly. And since phone screens are different, the image banner always looks weird on different screens. Screenshot example here: https://drive.google.com/file/d/1AI-hXibMXlQv8_DYQaICfE6XrRdk3RUL/view?usp=sharing
- Tried to change the xml file, and tried different sizes in the AdWidget without any success. I’m sure I’m missing something probably simple, but I was not able to find anything about it in the official documentation or examples.
Expected results:
Trying to make the Native Ad to look like a card. Example: https://lh3.googleusercontent.com/KtEoccHt7kwMVm4GdhwA-DyEcd2DEQCqWZuiQi0z2OoBQOUkD0OUIgnb75iGqHSPCHmsoPjTvVS3LprzHGGDlR2S2YUrIt7fPJZ9=w0
Actual results:
The image inside the Native does not fit the card properly, and always looks out of place on different mobile screens: Screenshot example here: https://drive.google.com/file/d/1AI-hXibMXlQv8_DYQaICfE6XrRdk3RUL/view?usp=sharing
I changed the xml template file several times, and tried different sizes in the AdWidget without any success. I’m sure I’m missing something probably simple, but I was not able to find anything about it in the official documentation or examples.
Logs
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
About advanced format options for responsive display ads
Do not overlay text, logos, or buttons. Native ad formats images should have the product be the main focus of the image ;...
Read more >Native Advertising: A Guide for Businesses
Of course, this Guide can't cover every issue associated with native advertising. Nor does it provide a safe harbor from potential liability ...
Read more >Native Ads | Real-time Bidding - Google Developers
Native ads are ads formatted to fit the surrounding content and visual design, making them more likely to be viewed and clicked by...
Read more >The pros and cons of Responsive Display Ads - Bannerwise
What exactly are Responsive Display Ads? · What are the benefits of using Responsive Display Ads? · Responsive Display Ads are quick to...
Read more >Create Native Ads with Images - Yahoo Developer Network
Know if Your Native Ads are Working¶ ... Yahoo Native recommends that you continuously test and rework your image strategy and update your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The standard size for medium rectangle ads is 300x250. This size tends to have more ad inventory available from advertisers. The fixed sizes that tend to have more ad inventory available (and are therefore more likely to serve) follow IAB standard ad size specifications.
Since native ads can be of arbitrary size, there will be whitespace around the ad image whenever the native ad image container is larger than the image asset. For Fluid native assets, whitespace can still occur around the image if the native ad image container has an aspect ratio that doesn’t match the image asset aspect ratio.
@ldobreira - since you’re using AdMob, I suspect this issue is occurring because the native image asset doesn’t match the image container precisely. Unfortunately this is working as intended as not all advertisers campaigns are capable for supporting fluid.
I’ll close this issue but feel free to reopen if you think there is a problem with native rendering (e.g. image asset in ad response should actually fit the native ad image container).
I’m just using Admob… what should be the standard size for the medium templates?