Is safeDrawing enough for AdMob banner or safeContent is required?

41 views
Skip to first unread message

iureaa iureaa

unread,
Jun 18, 2024, 3:35:15 PM (9 days ago) Jun 18
to Google Mobile Ads SDK Developers
Using Jetpack Compose's safeDrawing is significantly better in both portrait and landscape modes because it saves a lot of space compared to safeContent, which has excessive insets.

However, with safeDrawing some parts of the banner are sometimes obscured by the rounded corners of some devices.

1. Is safeDrawing enough for AdMob banner or safeContent is required?
2. Does AdMob monitor if the ad is obscured, and if so how?

gOEf7v1.png

Mobile Ads SDK Forum Advisor

unread,
Jun 19, 2024, 3:03:04 AM (9 days ago) Jun 19
to iur...@gmail.com, google-adm...@googlegroups.com
Hi,

Please find the answers below:
  • Is safeDrawing enough for AdMob banner or safeContent is required?
    • Make sure to separate the banner ad from interactive elements.
    • Separate the ad and content and allocate a fixed space for the ad.
    • Kindly refer to the Banner ad guidance for more information. 
  • Does AdMob monitor if the ad is obscured, and if so how?
    • AdMob uses a variety of signals and user interactions, to determine if an ad is visible or obscured.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJOMG:ref" (ADR-00242318)

Thanks,
 
Google Logo Mobile Ads SDK Team


iureaa iureaa

unread,
Jun 19, 2024, 7:38:03 AM (9 days ago) Jun 19
to Google Mobile Ads SDK Developers
Hi,

Thanks, I'm familiar with the "Banner ad guidance" support pages but none of the videos or text on these pages answer whether positioning banners within "safeDrawing" insets is enough.

Like you can see on my picture when "safeDrawing" is used it is significantly better in terms of space usage because "safeContent" and "safeGestures" both have significantly excessive insets from all sides. The green rectangles on my picture are what Jetpack Compose roughly returns, so the pictures are an accurate representation of "safeDrawing" and "safeContent" areas.

With "safeDrawing" on about 50-90% of Android phones the ad will be slightly obscured by the rounded corners of the device (not as much as on my exaggerated picture though).

So, is "safeDrawing" enough?

Please confirm with YES/NO if this code is OK (I hope it is because "safeDrawing" is significantly better):

Box(
    modifier = Modifier
        .fillMaxSize()
        .padding(WindowInsets.safeDrawing.asPaddingValues())
) {
    // AdMob banner here with either Alignment.TopCenter or Alignment.BottomCenter depending on whether the banner should be anchored to the very top or very bottom
}

Mobile Ads SDK Forum Advisor

unread,
Jun 19, 2024, 2:26:31 PM (8 days ago) Jun 19
to iur...@gmail.com, google-adm...@googlegroups.com

Hi,

Yes, the code is suitable and functional and SafeDrawing is enough for AdMob Banner. If any issues arise, do not hesitate to contact us.

Maintain adequate space between the ads and the page controls. It is important to note that when an app goes edge-to-edge, you need to ensure that important content and interactions are not obscured by the system UI. In the event that any issue occurs related to obscured, kindly follow the insets in Compose and Content obscuring Google-served ads

Reply all
Reply to author
Forward
0 new messages