Search Unity

Getting Google Advertiser ID (GUID, advertisingIdentifier, vendorIdentifier)

Discussion in 'Android' started by jesusluvsyooh, Jul 20, 2017.

  1. jesusluvsyooh

    jesusluvsyooh

    Joined:
    Jan 10, 2012
    Posts:
    377
    I know how to get deviceUniqueIdentifier, but would also like to get the Google Advertiser ID (GUID), advertisingIdentifier or vendorIdentifier.

    Users have been force changing their UID's, or get new ones when reinstalling apps, the above identifiers would be handy as a backup solution.

    iOS has UnityEngine.iOS.Device.advertisingIdentifier but need the Android equivalent.

    How would one get it?
    JS or C# will do.
    Thanks.