AdvertisingIdProvider

public interface AdvertisingIdProvider

androidx.ads.identifier.provider.AdvertisingIdProvider


The class for the AndroidX Advertising ID Provider that should provide the resettable ID and LAT preference should implement this interface. See AdvertisingIdProviderManager for more details.

Note: The implementation of this interface must be completely thread-safe.

Summary

Public methods

abstract String getId()

Retrieves the Advertising ID.

abstract boolean isLimitAdTrackingEnabled()

Retrieves whether the user has chosen to limit ad tracking (ads personalization).

Public methods

getId

public abstract String getId ()

Retrieves the Advertising ID.

This ID will be normalized to UUID format by the developer library if it isn't already.

Returns
String

isLimitAdTrackingEnabled

public abstract boolean isLimitAdTrackingEnabled ()

Retrieves whether the user has chosen to limit ad tracking (ads personalization).

Returns
boolean