Android 12 Developer Preview is here! Try it out, and give us your feedback!

androidx.ads.identifier

Classes

AdvertisingIdClient Client for retrieving Advertising ID related info from an AndroidX ID Provider installed on the device. 
AdvertisingIdInfo Advertising ID Information. 

Exceptions

AdvertisingIdNotAvailableException Indicates an AndroidX Advertising ID is not available.