The Android Developer Challenge is back! Submit your idea before December 2.

AdvertisingIdInfo

public abstract class AdvertisingIdInfo
extends Object

java.lang.Object
   ↳ androidx.ads.identifier.AdvertisingIdInfo


Advertising ID Information. Includes both the Advertising ID and the limit ad tracking setting.

Summary

Public methods

abstract String getId()

Retrieves the Advertising ID.

abstract String getProviderPackageName()

Retrieves the Advertising ID provider package name.

abstract boolean isLimitAdTrackingEnabled()

Retrieves whether the user has set Limit Advertising Tracking.

Inherited methods

Public methods

getId

public abstract String getId ()

Retrieves the Advertising ID.

This will be in UUID format, either Advertising ID Provider provided an Advertising ID in UUID format, or this developer library will normalize the Advertising ID to UUID format.

Returns
String

getProviderPackageName

public abstract String getProviderPackageName ()

Retrieves the Advertising ID provider package name.

Returns
String

isLimitAdTrackingEnabled

public abstract boolean isLimitAdTrackingEnabled ()

Retrieves whether the user has set Limit Advertising Tracking.

Returns
boolean