Advertising Identifier

This API is expected to be used by developers who are implementing a system for serving ads. Typically these organizations provide app developers with the code that interacts with this class. 

To get the advertising identifier:

Check whether advertising tracking is limited using the isAdvertisingTrackingEnabled property.


Get the advertising identifier using the advertisingIdentifier property (note that when ad tracking is limited, the value of the advertising identifier is 00000000-0000-0000-0000-000000000000).


If you are interested in obtaining more device info, see the Device Info article.