[Android, Compose] Interstitial Ads do not cover the whole screen when using with enableEdgeToEdge()

276 views
Skip to first unread message

Cong Vu

unread,
Jul 16, 2024, 1:47:18 PM7/16/24
to Google Mobile Ads SDK Developers
Hi folks,
I'm having a UI bug related to displaying inter ads in android app with compose and enableEdgeToEdge() api and want to introduce to Google devs to fix. Please see producible video video for more clarifications.
 
Description: The AdActivity that displays over my Compose Activity is transparent, making the app content underneath visible. Furthermore, the AdActivity causes the Compose Activity behind it to receive incorrect status bar inset values, resulting in its content not being positioned correctly. For instance, the 'AppBar' text composable moves up when an interstitial ad is shown.

Here are my project dependencies:
- Gradle 8.7
- AGP 8.5.0
- compileSdk 34
- targetSdk 34
- emulator: Pixel 8 API 34
- androidx.activity:activity:1.9.0
- androidx.compose 1.6.8
- kotlin 2.0.0
- play-services-ads: 23.2.0

Reproducible steps:
1. in app/AndroidManifest.xml, add android:windowSoftInputMode="adjustResize"
2. in Compose Activity, add enableEdgeToEdge() after super.onCreate()
3. add composable `TopAppBar(title = { Text(text = "AppBar") })` which uses WindowInsets.systemBars under the hood
4. run the app and show inter ads

The issue is also addressed in this Github comment. If you need more information, please let me know. I'm looking forward to receiving your response soon. Happy coding :)

Diki Septian

unread,
Jul 16, 2024, 3:31:35 PM7/16/24
to congv...@gmail.com, google-adm...@googlegroups.com

Kabar iklan saya?


--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/1acce5b1-fb6f-4e93-9d9b-6f620302b2acn%40googlegroups.com.

Mobile Ads SDK Forum Advisor

unread,
Jul 16, 2024, 8:08:54 PM7/16/24
to sdik...@gmail.com, google-adm...@googlegroups.com, congv...@gmail.com

Hi,

Please be informed that our support channel can only best assist you with regards to Google Mobile Ads SDK implementation and technical issues. Having said that, would you be able to confirm if you have any issues with the SDK? If so, kindly elaborate it here and give full context of your concern so we can guide you accordingly.

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

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages