Instance Property


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


var advertisingIdentifier: UUID { get }


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.

func clearAdvertisingIdentifier()

Clears the app's current advertising identifier, forcing the creation of a new advertising identifier the next time you need one.