-1

Also Does the Device id change? If yes when?

(Used for Test Ads in addTestDevice() in adbuilder)

AdRequest adRequest = new AdRequest.Builder()
                .addTestDevice(DEVICE_ID)
                .setRequestAgent("android_studio:ad_template").build();

1 Answers1

0

I assume you're thinking of IMEI. The answer is maybe, its not guaranteed to be universally unique.

But, more on your point, Google has published their own official Best practices for unique identifiers. For your use case, identifying the device for advertising purposes, there's a AdvertisingIdClient that you should use.

nstosic
  • 2,584
  • 1
  • 17
  • 21