Sometimes it becomes necessary to delete a feed, either because you set it up wrong and need to change something or because it's become outdated. Unfortunately, it's impossible to delete a feed using the UI in Adobe Audience Manager—there's just no button or toggle to do it there. However, you can delete a feed using the API.
Prerequisites
- User Permissions—you must be able to sign in to the AAM user interface with a user that has adequate permissions to create Data Sources and Traits.
- OAuth Credentials—you must have a Client ID and Secret. You may have gotten these when you first engaged with the partner integrations team (mcpi) to create your Marketplace integration. If you didn't, reach out to the Technology Partner Program support team to get these credentials.
- Before you can delete a Marketplace feed, all users must have unsubscribed and the feed must be set to inactive (see this article for details).
Step 1—retrieve an access token
Follow the steps outlined in AAM Oauth Authentication to retrieve an "access_token". This token is required to be passed in the "Authorization" header for each API call going forward.
Example token:
Authorization: Bearer 97416b85-73fa-4ac1-898d-141325eeeae8
Step 2—retrieve the Data Source ID
You need to know the Data Source ID of the data source associated with the feed. Note that when you delete the feed using the API, you will not delete the Data Source associated with the feed. You can retrieve the feed ID by going to the AAM interface and in the main menu clicking on Audience Data > Data Sources. Search for the data source associated with your feed and the ID will be listed in the first column of the Data Source list.
Or you can retrieve the ID via the API. Use the following GET request to search for your feed:
https://api.demdex.com/v1/data-feeds?search=<keyword>
Replace the <keyword> with a keyword that identifies your feed—the API will use this to search for your feed. It will return something like this:
[
{
"name": "An example data feed",
"description": "An example feed set up for the deleting marketplace feeds article.",
"billing": "ADOBE",
"distribution": "PUBLIC",
"status": "ACTIVE",
"crUID": 79830,
"upUID": 79830,
"createTime": 1543357185000,
"updateTime": 1543357434000,
"pid": 7146,
"contactUserIds": [
79830
],
"dataSourceId": 426224
}
]
Look for the dataSourceId value (at the bottom of the list).
Step 3—delete the feed
To delete the feed, make the following DELETE request to the API:
https://api.demdex.com/v1/data-feeds/<DataSourceID>
Replace the feed ID with the Data Source ID that you retrieved in step 2. E.g.:
https://api.demdex.com/v1/data-feeds/426224
If successful, you will receive a 204 response. And that's it!
Check out the Swagger docs for more information on Marketplace API calls.