|
|
|
|
- Authorization required
- Resetting the advertising identifier
AppleAdvertisingIdentifier (Function) In french: AppleIdentifiantPublicitaire Returns the device's advertising identifier (iOS only). The advertising identifier is a device-specific UUID. This identifier is only used for advertising. This string is used by advertisers, mainly for the following purposes: - limiting the number of exposures to an ad,
- assigning ads according to profiles,
- conversion (ads that lead to a visit to the site),
- estimating the number of unique users,
- detecting advertising fraud,
- debugging.
SWITCH AppleTrackingAuthorizationStatus() CASE atasNotDetermined AppleRequestTrackingAuthorizationAsynchronous(OnTracking) CASE atasAuthorized TrackUser(AppleAdvertisingIdentifier()) END
Syntax
<Result> = AppleAdvertisingIdentifier()
<Result>: UUID Device's advertising identifier. Remarks Authorization required - A specific authorization is required to get the device's advertising identifier. You can check if this authorization has been granted, using AppleTrackingAuthorizationStatus. If the authorization has not been granted, you can request it using AppleRequestTrackingAuthorizationAsynchronous.
- If the authorization has not been granted, the value of the identifier will be all zeros.
- This identifier is not available in the Xcode simulator.
Resetting the advertising identifier Users can reset their advertising identifier in the device settings: - From iOS 14 onwards:
- Go to Settings and select "Privacy".
- Scroll down and select "Apple Advertising".
- Disable "Personalized Ads".
- Before iOS 14:
- Go to Settings and select "Privacy".
- Select "Advertising" and tap "Reset Advertising Identifier...".
Business / UI classification: Neutral code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|