Class

ASIdentifierManager

An object containing an identifier to be used for serving advertisements, and a flag indicating whether a user has limited ad tracking.

Declaration

@interface ASIdentifierManager : NSObject

Overview

To get the advertising identifier, use the following procedure.

  1. Run the sharedManager method to retrieve a reference to the shared instance of the ASIdentifierManager class.

  2. Check whether advertising tracking is limited using the advertisingTrackingEnabled property.

  3. Use the advertisingIdentifier property to return the advertising identifier. When ad tracking is limited, the value of the advertising identifier is 00000000-0000-0000-0000-000000000000.

Topics

Getting the Shared Manager

+ sharedManager

The shared instance of the ASIdentifierManager class.

Getting the Advertising Identifier

advertisingIdentifier

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

advertisingTrackingEnabled

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

- clearAdvertisingIdentifier

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

Relationships

Inherits From