I’m glad to hear that it now compiles without errors!
That’s strange about the SDK version errors from Google Play Console because I already updated the dependencies from 18.1.0 to 22.6.0 in the AndroidAdvertising_APL.xml file I shared. Here’s the section for reference: