An object containing an identifier to be used only for serving advertisements, and a flag indicating whether a user has limited ad tracking.
- iOS 6.0+
- macOS 10.14+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
This class is expected to be used by developers who are implementing a system for serving ads. These organizations typically provide app developers with the code that interacts with this class. App developers may need to link against the Ad Support framework to use that code, but they should not need to interact with the
ASIdentifier class directly.
To get the advertising identifier:
Get a reference to the shared instance of this class using the
Check whether advertising tracking is limited using the
Get the advertising identifier using the
advertisingproperty (note that when ad tracking is limited, the value of the advertising identifier is