wrong ads display in RTL locale

33 views
Skip to first unread message

in

unread,
Jan 28, 2025, 2:15:12 PM1/28/25
to Google Mobile Ads SDK Developers
Hi,
I'm using  Inline adaptive banners and anchored adaptive banner ads in my app. In the anchored ads I'm using collapsible option. 

com.google.android.gms:play-services-ads:23.6.0

I noticed that if I set the App to RTL locale, some ads are aligned wrongly to right, making the left side empty (attached images below).
To workaround this, I set 

adContainerView.setLayoutDirection(View.LAYOUT_DIRECTION_LTR);

to each ad container. This fixed the issue with the inline and anchored ad, but not in collapsible mode.

1. Is it correct workaround? or is there any other way?
2. How to fix it for collapsible mode, too?
Thanks.
collapsible ad 2.png
collapsible ad 1.png
inline ad.png

Mobile Ads SDK Forum Advisor

unread,
Jan 28, 2025, 6:52:11 PM1/28/25
to inma...@gmail.com, google-adm...@googlegroups.com
Hi,

We were unable to reproduce the issue from our end, for us to further investigate kindly provide us below details via "Reply to author" option:
  • app ID
  • ad unit ID
  • SDK version
  • steps to reproduce the issue or a sample project where the issue can be observed.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGyqE:ref" (ADR-00286182)

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5


 


Reply all
Reply to author
Forward
0 new messages