adjust-icon

Get device information

The Adjust SDK contains helper methods that return device information. Use these methods to add details to your callbacks and improve your reporting.

Adjust device identifier

Method signature
+ (void)adidWithCompletionHandler:(nonnull ADJAdidGetterBlock)completion;

Adjust generates a unique Adjust Device ID (ADID) for each device. You can return the device’s ADID by calling the [Adjust adidWithCompletionHandler] method with a completion handler. The SDK fetches the information asynchronously and passes it to your completion handler.

ID For Advertisers

Method signature
+ (void)idfaWithCompletionHandler:(nonnull ADJIdfaGetterBlock)completion;

The IDFA (ID for Advertisers) is a device-specific identifier for Apple devices. You can return the device’s IDFA by calling the [Adjust idfaWithCompletionHandler] method with a completion handler. The SDK fetches the information asynchronously and passes it to your completion handler.

ID For Vendors

Method signature
+ (void)idfvWithCompletionHandler:(nonnull ADJIdfvGetterBlock)completion;

The IDFV (ID For Vendors) is a unique identifier for all apps on a single device that are from the same publisher/vendor. You can return the device’s IDFV by calling the [Adjust idfvWithCompletionHandler] method with a completion handler. The SDK fetches the information asynchronously and passes it to your completion handler.

Adjust SDK version getter

Method signature
+ (void)sdkVersionWithCompletionHandler:(nonnull ADJSdkVersionGetterBlock)completion;

To read the version of the Adjust SDK, pass a callback function to the [Adjust sdkVersionWithCompletionHandler] method. The SDK fetches the information asynchronously and passes it to your completion handler.