PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV Mobile 27 feature!
  • Authorization required
  • Resetting the advertising identifier
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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.
Example
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
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment