The Developer Preview for Android 11 is now available; test it out and share 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.