Instance Property

advertisingIdentifier

An alphanumeric string unique to each device, used only for serving advertisements.

Declaration

var advertisingIdentifier: UUID { get }

Discussion

Unlike the identifierForVendor property of the UIDevice, the same value is returned to all vendors. This identifier may change—for example, if the user erases the device—so you should not cache it.

If the value is nil, wait and get the value again later. This happens, for example, after the device has been restarted but before the user has unlocked the device.

See Also

Getting the Advertising Identifier

var isAdvertisingTrackingEnabled: Bool

A Boolean value that indicates whether the user has limited ad tracking.

class func shared()

Returns the shared instance of the ASIdentifierManager class.