This page has guidance on how to delete a seller from managed partner ads.
Note: Businesses that sell their products through marketplaces or retailers are referred to as sellers. Once you onboard a seller into managed partner ads, they are considered a managed partner. For simplicity, this page will use "seller" to also refer to managed partners (i.e., onboarded sellers).
A seller with active ad campaigns CANNOT be deleted.
The Seller Deletion API disables the ad account and deletes any assets that were created during onboarding, including:
Once deleted successfully, the associated vendor_id
for the seller can be reused and assigned to another seller, if desired.
Before you delete a seller, make sure you have completed these steps:
To call the Seller Deletion API, you will need the following permissions:
curl \
-F 'access_token=<ACCESS_TOKEN>' \
-F 'asyncbatch=[
{
"method": "DELETE",
"relative_url": "<MARKETPLACE_BM_ID>/managed_partner_businesses?child_business_external_id=<VENDOR_ID>",
"name": "<ASYNC_SESSION_NAME>"
}
]' \
-F "appsecret_proof=<APP_SECRET>" \
"https://graph.facebook.com/v21.0
"
The response to the API call is returned immediately with an ASYNC_SESSION_ID
. While the request continues to be processed, the ASYNC_SESSION_ID should be polled until a terminal state [COMPLETED|FAILED]
is reached.
Name | Description |
---|---|
string | Required. |
string | Required, unless |
string | Required, unless |
string | Required. |
{ "async_sessions": [ { "id": "<ASYNC_SESSION_ID>", "name": "<ASYNC_SESSION_NAME>" } ] }
Use the ASYNC_SESSION_ID
to get the deletion status of the seller from managed partner ads.
See How to Poll Async Session for Response for more information.
If the status is COMPLETED
, the resulting data of polling async session will look like:
{ "result": "{\"id\":\"<MANAGED_PARTNER_BM_ID>\", \"success\":true}", "status": "COMPLETED", "id": "<ASYNC_SESSION_ID>" }
If the status is FAILED
, the resulting data of polling async session will look like:
Requests made to seller deletion API can result in several different error responses. See How to handle an error for more information.
Error Code | Error Subcode | Error Message |
---|---|---|
1800007 | 2310162 | The Business ID you entered {business_id} is not for a partner in managed partner ads. Check your entry or enter a new business ID. |
1800007 | 2310163 | The vendor ID you entered {vendor_id} is not for a partner in managed partner ads. Check your entry or enter a new vendor ID. |
1800008 | 2310164 | Your business does not manage the partner {business_id OR vendor_id} you are trying to delete. Check the ID or enter a new one. |
1800009 | 2310113 | Unable to delete managed partner with businessID {business_id}. It cannot be deleted while it has an outstanding balance of {amount} {currency}. Once you remit payment for your invoice, retry deleting the partner. |
1800009 | 2310134 | The Page owner {page_owner_id} for the page {page_id} is not an admin system user. The Page was not created by managed partner ads and it needs to be deleted before you can delete the partner. |
1800009 | 2310135 | This partner has one or more Facebook Pages that were not created by managed partner ads. These pages need to be deleted before you can delete the partner: {list_of_page_ids} |
1800009 | 2310165 | The business cannot be deleted while it has active campaigns. Go to the Ads Manager to see when their active campaigns will end or to turn them off. |