Android SDK - Issue detecting fluid creative in AdManagerAdView

264 views
Skip to first unread message

Alexandre Lision

unread,
Aug 16, 2021, 2:13:11 PM8/16/21
to Google Mobile Ads SDK Developers

Hi,

We are experimenting with fluid creatives and are running in an issue on the Android side.

Our goal is to detect when we receive a fluid creative and apply a different layout.

When running the iOS and Android sample apps we are able to reproduce the issue. On iOS when receiving the creative in the GADBannerViewDelegate function adViewDidReceiveAd we can make a check on the current adSize received:
GADAdSizeIsFluid(bannerView.adSize) // Returns true

On Android, when receiving the ad in our AdListener function onAdLoaded the corresponding check fails:
fluid_av_main.adSize?.isFluid // Returns false

The size returned on the Android side is wrong, ignoring the value set in XML. It is always 320x50_mb. I think the internal check to determine if the creative is Fluid or not must check the size, and in this case fails every time.

This is based on the same AdUnit, same AdRequest, same creative on both sides. See screenshot below with an iOS and an Android emulator:


Alexandre Lision

unread,
Aug 16, 2021, 2:14:04 PM8/16/21
to Google Mobile Ads SDK Developers
Mobile Ads API Demos.png
Message has been deleted

Alexandre Lision

unread,
Aug 16, 2021, 2:16:29 PM8/16/21
to Google Mobile Ads SDK Developers

Mobile Ads SDK Forum Advisor

unread,
Aug 17, 2021, 4:47:53 AM8/17/21
to google-adm...@googlegroups.com

Hello Alexandre,

Thank you for reaching out to us and providing us your sample implementation.

As I also check on both your implementation and our sample API demo app, I also encounter the isFluid function on android is returning false as the AdSize that being returned is the dp size value which is 320x50 and not the constant name FLUID. As per checking on the documentation, the value that being returned when using the AdSize get is the sizes of each density independent pixels. I will ask this to the rest of the team if checking the fluid function can get either the constant name or the density pixel value of AdSize.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Lng9V:ref

Alexandre Lision

unread,
Aug 30, 2021, 9:46:07 AM8/30/21
to Google Mobile Ads SDK Developers
Hello,

Thanks for your follow up, do you have any update on this?

Mobile Ads SDK Forum Advisor

unread,
Aug 30, 2021, 5:24:00 PM8/30/21
to google-adm...@googlegroups.com
Hi Alexandre,

Thank you for reaching back out to us. I poinged our team members concerning this issue, and have not heard back from them yet. Once we hear something back we will be certain to pass it along to you.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2Lng9V:ref

Mobile Ads SDK Forum Advisor

unread,
Apr 21, 2022, 11:14:27 AM4/21/22
to google-adm...@googlegroups.com

Hello Alexandre,

I hope you're doing well.

I just want to circle back on this. Can you confirm if you've followed the steps in https://support.google.com/admanager/answer/9178980 to set fluid size for native ads?

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 

 

ref:_00D1U1174p._5004Q2Lng9V:ref

Mobile Ads SDK Forum Advisor

unread,
Oct 26, 2022, 4:21:59 AM10/26/22
to google-adm...@googlegroups.com
Hi All,

I hope you're doing well.

I just want to circle back on this. The team mentioned that, requesting a fluid ad does not guarantee a fluid ad in response; Ad Manager will pick the best creative to serve and that creative may not be fluid. There is not a way to force the creative to be fluid. They also mentioned that this is work as intended.

Reply all
Reply to author
Forward
0 new messages