AppSetId


public final class AppSetId


A unique, per-device, per developer-account user-resettable ID for non-monetizing advertising use cases.

Represents the appSetID and scope of this appSetId from the AppSetIdManager#getAppSetId() API. The scope of the ID can be per app or per developer account associated with the user. AppSetId is used for analytics, spam detection, frequency capping and fraud prevention use cases, on a given device, that one may need to correlate usage or actions across a set of apps owned by an organization.

Summary

Constants

static final int

The appSetId is scoped to an app.

static final int

The appSetId is scoped to a developer account on an app store.

Public constructors

AppSetId(@NonNull String id, int scope)

Public methods

boolean
equals(Object other)
final @NonNull String

The appSetID.

final int

The scope of the ID.

int
@NonNull String

Constants

SCOPE_APP

public static final int SCOPE_APP = 1

The appSetId is scoped to an app. All apps on a device will have a different appSetId.

SCOPE_DEVELOPER

public static final int SCOPE_DEVELOPER = 2

The appSetId is scoped to a developer account on an app store. All apps from the same developer on a device will have the same developer scoped appSetId.

Public constructors

AppSetId

Added in 1.0.0
public AppSetId(@NonNull String id, int scope)
Parameters
@NonNull String id

The appSetID.

int scope

The scope of the ID. Can be AppSetId.SCOPE_APP or AppSetId.SCOPE_DEVELOPER.

Public methods

equals

public boolean equals(Object other)

getId

Added in 1.0.0
public final @NonNull String getId()

The appSetID.

getScope

Added in 1.0.0
public final int getScope()

The scope of the ID. Can be AppSetId.SCOPE_APP or AppSetId.SCOPE_DEVELOPER.

hashCode

public int hashCode()

toString

public @NonNull String toString()

Welcome to the Kotlin bootcamp for programmers training course.

Updated Dec 9, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Apr 4, 2024

Over the years, Android devices have evolved to include a variety of sizes, shapes, and displays, among other features. Since the beginning, however, taking pictures with your phone has been one of the most important use cases. Today, camera capabilities are still one of the top reasons consumers purchase a phone.

Updated Apr 30, 2024