Features
GET accounts/:account_id/features¶
Retrieve the collection of granted features accessible by this ads account. Features are indicated by a descriptive feature key and are only exposed on this endpoint if they are introduced in beta or an otherwise limited release and are available in the Ads API. Features that do not meet this criteria will not be exposed on this endpoint.
Note: This endpoint serves to aid Ads API ecosystem development by improving visibility into client access to beta releases. API developers can not request access to features on behalf of an advertiser. These requests can only be made by the advertiser to their Twitter account manager.
Resource URL¶
https://ads-api.x.com/12/accounts/:account_id/features
Parameters¶
Name | Description |
---|---|
account_id required |
The identifier for the leveraged account. Appears within the resource's path and is generally a required parameter for all Advertiser API requests excluding GET accounts. The specified account must be associated with the authenticated user. Type: string Example:
|
feature_keys optional |
An optional parameter that enables querying for a specific feature key. Requests may include multiple comma-separated keys. Note: Only the features that are accessible by this account will be included in the response. Type: enum Possible values: |
Example Request¶
GET https://ads-api.x.com/12/accounts/18ce54d4x5t/features
Example Response¶
{
"request": {
"params": {
"account_id": "18ce54d4x5t"
}
},
"data": [
"CITY_TARGETING",
"CONVERSATION_CARD",
"PROMOTED_MEDIA_POLLS",
"REACH_AND_FREQUENCY_ANALYTICS",
"REACH_FREQUENCY_CAP",
"UNIVERSAL_LOOKALIKE"
]
}
POST accounts/:account_id/features¶
SANDBOX ONLY
Add a feature to a sandbox account.
The up to date list of account features may be retrieved via the GET accounts/:account_id/features endpoint.
Resource URL¶
https://ads-api-sandbox.twitter.com/12/accounts/:account_id/features
Parameters¶
Name | Description |
---|---|
account_id required |
The identifier for the leveraged account. Appears within the resource's path and is generally a required parameter for all Advertiser API requests excluding GET accounts. The specified account must be associated with the authenticated user. Type: string Example:
|
feature_keys required |
A comma-separated list of account features to add to the account. Type: enum Possible values:
|
Example Request¶
POST https://ads-api-sandbox.twitter.com/12/accounts/gq180y/features?feature_keys=VALIDATED_AGE_TARGETING
Example Response¶
{
"request": {
"params": {
"account_id": "gq180y",
"feature_keys": [
"VALIDATED_AGE_TARGETING"
]
}
},
"data": [
"ALLOW_SKIPPABLE_VIDEOS_FOR_PREROLL_VIEWS_OBJECTIVE",
"AWARENESS_OBJECTIVE",
"CPI_CHARGING",
"EVENT_TARGETING",
"INSTALLED_APP_CATEGORY_TARGETING",
"MOBILE_CONVERSION_TRANSACTION_VALUE",
"OPTIMIZED_ACTION_BIDDING",
"VALIDATED_AGE_TARGETING",
"VIDEO_APP_DOWNLOAD_CARD"
]
}
DELETE accounts/:account_id/features¶
SANDBOX ONLY
Remove a feature from a sandbox account.
The up to date list of account features may be retrieved via the GET accounts/:account_id/features endpoint.
Resource URL¶
https://ads-api-sandbox.twitter.com/12/accounts/:account_id/features
Parameters¶
Name | Description |
---|---|
account_id required |
The identifier for the leveraged account. Appears within the resource's path and is generally a required parameter for all Advertiser API requests excluding GET accounts. The specified account must be associated with the authenticated user. Type: string Example:
|
feature_keys required |
A comma-separated list of account features to remove from the account. Type: enum Possible values:
|
Example Request¶
DELETE https://ads-api-sandbox.twitter.com/12/accounts/gq180y/features?feature_keys=PREROLL_VIEWS_OBJECTIVE
Example Response¶
{
"request": {
"params": {
"account_id": "gq180y",
"feature_keys": [
"PREROLL_VIEWS_OBJECTIVE"
]
}
},
"data": [
"CPI_CHARGING",
"EVENT_TARGETING",
"INSTALLED_APP_CATEGORY_TARGETING",
"MOBILE_CONVERSION_TRANSACTION_VALUE",
"OPTIMIZED_ACTION_BIDDING",
"VIDEO_APP_DOWNLOAD_CARD"
]
}