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
static Future<String?> getAdid() async

Adjust generates a unique Adjust Device ID (ADID) for each device. Call the getAdid method to return this ID as a String.

Adjust.getAdid().then((adid) {
// Use adid string value.
});

ID For Advertisers

Method signature
static Future<String?> getIdfa() async

The ID for Advertisers (IDFA) is a device-specific identifier for Apple devices. Call the getIdfa method to return this ID as a String.

Adjust.getIdfa().then((idfa) {
// Use idfa string value.
});

ID For Vendor

Method signature
static Future<String?> getIdfv() async

The ID for Vendor (IDFV) is a device-specific identifier for Apple devices. You can return the device’s IDFV by calling the Adjust.getIdfv method with a callback function. The SDK fetches the information asynchronously and passes it to your callback function.

Adjust.getIdfv().then((idfv) {
// Use idfv string value.
});

Google Play Services Advertising ID

Method signature
static Future<String?> getGoogleAdId() async

The Google Play Services Advertising ID (GPS ADID) is a device-specific identifier for Android devices.

Users can opt out of sharing their GPS ADID by toggling the “Opt out of Ads Personalization” setting on their device. When a user enables this setting, the Adjust SDK returns a string of zeros when trying to read the GPS ADID.

You can access this value by calling the getGoogleAdId method in a background thread. Assign a delegate function to access the GPS ADID value.

Adjust.getGoogleAdId().then((googleAdId) {
// Use googleAdId string value.
});

Amazon Advertiser ID

Method signature
static Future<String?> getAmazonAdId() async

The Amazon Advertising ID (Amazon Ad ID) is a device-specific identifier for Android devices. Call the getAmazonAdId method to return this ID as a String.

Adjust.getAmazonAdId().then((amazonAdId) {
// Use amazonAdId string value.
});