Stay organized with collections
Save and categorize content based on your preferences.
AdServicesPermissions
open class AdServicesPermissions
Permissions used by the AdServices APIs.
Summary
Constants |
static String |
This permission needs to be declared by the caller of Advertising ID APIs.
|
static String |
This permission needs to be declared by the caller of Protected Signals APIs.
|
static String |
This permission needs to be declared by the caller of Attribution APIs.
|
static String |
This permission needs to be declared by the caller of Custom Audiences APIs.
|
static String |
This permission needs to be declared by the caller of Protected Signals APIs.
|
static String |
This permission needs to be declared by the caller of Topics APIs.
|
Constants
ACCESS_ADSERVICES_AD_ID
static val ACCESS_ADSERVICES_AD_ID: String
This permission needs to be declared by the caller of Advertising ID APIs.
Value: "android.permission.ACCESS_ADSERVICES_AD_ID"
ACCESS_ADSERVICES_AD_SELECTION
static val ACCESS_ADSERVICES_AD_SELECTION: String
This permission needs to be declared by the caller of Protected Signals APIs.
Value: "android.permission.ACCESS_ADSERVICES_AD_SELECTION"
ACCESS_ADSERVICES_ATTRIBUTION
static val ACCESS_ADSERVICES_ATTRIBUTION: String
This permission needs to be declared by the caller of Attribution APIs.
Value: "android.permission.ACCESS_ADSERVICES_ATTRIBUTION"
ACCESS_ADSERVICES_CUSTOM_AUDIENCE
static val ACCESS_ADSERVICES_CUSTOM_AUDIENCE: String
This permission needs to be declared by the caller of Custom Audiences APIs.
Value: "android.permission.ACCESS_ADSERVICES_CUSTOM_AUDIENCE"
ACCESS_ADSERVICES_PROTECTED_SIGNALS
static val ACCESS_ADSERVICES_PROTECTED_SIGNALS: String
This permission needs to be declared by the caller of Protected Signals APIs.
Value: "android.permission.ACCESS_ADSERVICES_PROTECTED_SIGNALS"
ACCESS_ADSERVICES_TOPICS
static val ACCESS_ADSERVICES_TOPICS: String
This permission needs to be declared by the caller of Topics APIs.
Value: "android.permission.ACCESS_ADSERVICES_TOPICS"
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# AdServicesPermissions\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions)\n\nAdServicesPermissions\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/adservices/common/AdServicesPermissions \"View this page in Java\") \n\n```\nopen class AdServicesPermissions\n```\n\n|---|------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.adservices.common.AdServicesPermissions](#) |\n\nPermissions used by the AdServices APIs.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCESS_ADSERVICES_AD_ID](#ACCESS_ADSERVICES_AD_ID:kotlin.String) This permission needs to be declared by the caller of Advertising ID APIs. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCESS_ADSERVICES_AD_SELECTION](#ACCESS_ADSERVICES_AD_SELECTION:kotlin.String) This permission needs to be declared by the caller of Protected Signals APIs. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCESS_ADSERVICES_ATTRIBUTION](#ACCESS_ADSERVICES_ATTRIBUTION:kotlin.String) This permission needs to be declared by the caller of Attribution APIs. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCESS_ADSERVICES_CUSTOM_AUDIENCE](#ACCESS_ADSERVICES_CUSTOM_AUDIENCE:kotlin.String) This permission needs to be declared by the caller of Custom Audiences APIs. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCESS_ADSERVICES_PROTECTED_SIGNALS](#ACCESS_ADSERVICES_PROTECTED_SIGNALS:kotlin.String) This permission needs to be declared by the caller of Protected Signals APIs. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ACCESS_ADSERVICES_TOPICS](#ACCESS_ADSERVICES_TOPICS:kotlin.String) This permission needs to be declared by the caller of Topics APIs. |\n\nConstants\n---------\n\n### ACCESS_ADSERVICES_AD_ID\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nstatic val ACCESS_ADSERVICES_AD_ID: String\n```\n\nThis permission needs to be declared by the caller of Advertising ID APIs. \n\n Value: \"android.permission.ACCESS_ADSERVICES_AD_ID\"\n\n### ACCESS_ADSERVICES_AD_SELECTION\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 12](https://developer.android.com/sdkExtensions) \n\n```\nstatic val ACCESS_ADSERVICES_AD_SELECTION: String\n```\n\nThis permission needs to be declared by the caller of Protected Signals APIs. \n\n Value: \"android.permission.ACCESS_ADSERVICES_AD_SELECTION\"\n\n### ACCESS_ADSERVICES_ATTRIBUTION\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nstatic val ACCESS_ADSERVICES_ATTRIBUTION: String\n```\n\nThis permission needs to be declared by the caller of Attribution APIs. \n\n Value: \"android.permission.ACCESS_ADSERVICES_ATTRIBUTION\"\n\n### ACCESS_ADSERVICES_CUSTOM_AUDIENCE\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nstatic val ACCESS_ADSERVICES_CUSTOM_AUDIENCE: String\n```\n\nThis permission needs to be declared by the caller of Custom Audiences APIs. \n\n Value: \"android.permission.ACCESS_ADSERVICES_CUSTOM_AUDIENCE\"\n\n### ACCESS_ADSERVICES_PROTECTED_SIGNALS\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 12](https://developer.android.com/sdkExtensions) \n\n```\nstatic val ACCESS_ADSERVICES_PROTECTED_SIGNALS: String\n```\n\nThis permission needs to be declared by the caller of Protected Signals APIs. \n\n Value: \"android.permission.ACCESS_ADSERVICES_PROTECTED_SIGNALS\"\n\n### ACCESS_ADSERVICES_TOPICS\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [Ad Services Extensions 4](https://developer.android.com/sdkExtensions) \n\n```\nstatic val ACCESS_ADSERVICES_TOPICS: String\n```\n\nThis permission needs to be declared by the caller of Topics APIs. \n\n Value: \"android.permission.ACCESS_ADSERVICES_TOPICS\""]]