Anchored adaptive banners - Outdated Sample code documentation

99 views
Skip to first unread message

Diego

unread,
Mar 16, 2022, 11:50:31 AM3/16/22
to Google Mobile Ads SDK Developers

Hi,

I use adaptive banners in my App so far, but since Android 11, Google introduced the WindowMetrics API and deprecated these methods:
Display.getSize()
Display.getMetrics()

https://developer.android.com/about/versions/12/deprecations#renderscript

Now on android 12, as per the documentation Google continues to recommend using WindowMetrics and are deprecating these methods:
Display.getRealSize()
Display.getRealMetrics()

https://developer.android.com/about/versions/12/deprecations#renderscript

However, the reference documentation on the Admob page still contains implementation guidelines with the deprecated methods

https://developers.google.com/admob/android/banner/anchored-adaptive

Also, In the recommended Kotlin implementation documentation it is being referenced by import kotlinx.synthetic.main.activity_my.* But Kotlin Synthetics is also obsolete https://developer.android.com/topic/libraries/view-binding/migration


Mobile Ads SDK Forum Advisor

unread,
Mar 16, 2022, 10:19:43 PM3/16/22
to appsd...@gmail.com, google-adm...@googlegroups.com

Hello Diego,

Thank you for reaching out to us and for sharing your insights on these deprecated methods.

That said, allow me to raise this with the rest of the team instead. We will be updating this thread for any available information.

Regards,

Google Logo
Mark Kevin
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2YlvrY:ref

Diego

unread,
Mar 17, 2022, 11:09:26 AM3/17/22
to Google Mobile Ads SDK Developers
Hi

Ok,  Thank you.

Regards,
Diego 

Mobile Ads SDK Forum Advisor

unread,
Aug 31, 2022, 2:51:50 AM8/31/22
to appsd...@gmail.com, google-adm...@googlegroups.com

Hello Diego,

I hope you're doing well.

I just want to circle back on this. The team mentioned that this has been fixed. Feel free to come back to us if you still encounter any issues regarding this.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2YlvrY:ref
Reply all
Reply to author
Forward
0 new messages