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. For this reason you should not cache it.

See Also

Getting the Advertising Identifier

var isAdvertisingTrackingEnabled: Bool

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

func clearAdvertisingIdentifier()

An instance that clears the current advertising identifier, forcing the creation of a new advertising identifier the next time it is needed.