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
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,
|
||||||
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,
|
||||||