Wrong ad sizes on Android

54 views
Skip to first unread message

str8tsandsudoku

unread,
Jul 9, 2024, 2:53:29 PMJul 9
to Google Mobile Ads SDK Developers
Hi, my Android app (developed in Android Studio with Java) shows banner ads and interstitial ads. Both ad types are displayed correctly on API level 32, 33 and 34 (Android 12.1, 13 and 14).
I did not test with API level 31. But on API levels 29 and 30 (Android 10 / 11), the ads are wrong scaled, so they do not fit on the display. See attached screenshots.

Is there anybody who can help?
interstitial.png
banner.png

Mobile Ads SDK Forum Advisor

unread,
Jul 9, 2024, 5:14:52 PMJul 9
to strtsan...@gmail.com, google-adm...@googlegroups.com

Hi,

It's always recommended to keep the SDKs up to date. As of today the latest version is 23.2.0. Please refer to these Google Mobile SDK release notes and Deprecation and sunset documentation.

Feel free to contact us, if you face any difficulties with latest SDK.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJpn4:ref" (ADR-00245842)

Thanks,
 
Google Logo Mobile Ads SDK Team


str8tsandsudoku

unread,
Jul 10, 2024, 1:53:30 PMJul 10
to Google Mobile Ads SDK Developers
Hi,

I am using version 23.2.0, so this should be fine.

Can you tell me whether the following is the correct entry in build.gradle?

implementation 'com.google.android.gms:play-services-ads:23.2.0'

Thanks!

Mobile Ads SDK Forum Advisor

unread,
Jul 10, 2024, 5:10:13 PMJul 10
to strtsan...@gmail.com, google-adm...@googlegroups.com

Hi,

Yes, the mentioned build.gradle is correct. We have ran our Goggle sample project with test IDs and able to load ad successfully for mentioned API levels. The mentioned issue mainly depends upon ad inventory and we do not have control on it. The next step for you would be to reach out to the Product Support Team for further assistance regarding the ad serving concern.

str8tsandsudoku

unread,
Jul 21, 2024, 9:16:54 PM (6 days ago) Jul 21
to Google Mobile Ads SDK Developers
Hi,

thank you for your advices.

In the meantime, I implemented calls to the ConsentManager (which I did not use before). And it turned out that even the ConsentManager dialog is somehow "wrong scaled", see the screenshot below!
.
Therefore, I cannot imagine that ad serving is the reason. What can be the cause of this behaviour?

ConsentManager_wrongScale.png

Mobile Ads SDK Forum Advisor

unread,
Jul 22, 2024, 3:59:14 AM (6 days ago) Jul 22
to strtsan...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for getting back to us.

As stated earlier the mentioned issue “wrong ad sizes” is not replicating in our Google Android sample apps in the API LEVEL 29, 30, 31, 32, and 33. The next step to proceed further or make progress on this issue is that we need confirmation from your end whether the mentioned issue is replicating in our Google sample apps with your app ID and ad unit ID in the devices you have mentioned above. If yes, Kindly provide the sample project reproducing the issue privately , so that we can check your implementation, debug find the root cause, and may provide the solution.

You can provide the following details via reply privately to the author option or directly provide it to the link below.

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002tJpn4QAC&entry.80707362=00245842

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link. 

Reply all
Reply to author
Forward
0 new messages