Skip to content

Device IDs

Obaied edited this page Nov 2, 2016 · 2 revisions

Certain services (such as Google Analytics) require you to coordinate Device and Client IDs in order to prevent duplicate reporting.

Android

If you need to obtain the Google Advertising ID, you can call the function getGoogleAdId. To get it in the callback method you pass to the call:

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

Inside the callback method you will have access to the Google Advertising ID as the variable googleAdId.

iOS

To obtain the IDFA, call the function getIdfa in the same way as the method getGoogleAdId:

Adjust.getIdfa(function(idfa) {
    // Use idfa value.
});
Clone this wiki locally