Android.AdServices.Topics Namespace

Provides access to user interest topics through the Android Topics API.

Classes

Name Description
EncryptedTopic

Encrypted form of android.adservices.topics.Topic.

GetTopicsRequest

Get Topics Request.

GetTopicsRequest.Builder

Builder for GetTopicsRequest objects.

GetTopicsResponse

Represent the result from the getTopics API.

GetTopicsResponse.Builder

Builder for GetTopicsResponse objects.

Topic

Represent the topic result from the getTopics API.

TopicsManager

TopicsManager provides APIs for App and Ad-Sdks to get the user interest topics in a privacy preserving way.

Remarks

Use TopicsManager to request topics with a GetTopicsRequest and receive a GetTopicsResponse. A Topic identifies an interest category and includes the versions of its taxonomy and classifier model. EncryptedTopic contains an encrypted topic and the key information needed to decrypt it.

The Topics API derives interest categories from app activity. A request can record that its caller has observed the host app's topics. This observation is used to determine whether the caller can receive the topic in the next epoch, a period of topic computation.

The Android Topics APIs are deprecated in API level 37 and have no direct replacement. Applications should stop using them because future Android releases will reject calls.

For more information, see the Android Topics API reference and the Topics on Android guide.