> ## Documentation Index
> Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 撤销推广授权

> 撤销一个所有者、付款方和平台的推广授权。新的推广会停止，但已在投放的广告会继续运行。

撤销一条推广授权，即一个所有者、付款方和平台的组合。该所有者在其他平台上的推广授权不受影响。请使用 Primary Profile（主 Profile）的 API Key 发送请求，且不要附带 `Profile-Key`。

撤销仅会阻止新的推广。正在投放的广告会继续投放至其结束日期，付款方仍可暂停这些广告。撤销已被撤销的推广授权会返回成功，但不会做任何更改。

推广授权也会在以下情况下自动结束：

* 所有者或付款方的 Profile 被删除时（`revokedReason` 为 `ownerDeleted` 或 `payerDeleted`）。
* 所有者取消关联某个社交网络时。该所有者在该网络上的推广授权会被撤销（`revokedReason` 为 `ownerUnlinked`）。其他网络上的推广授权不受影响。
* 社交网络拒绝所有者的权限时。推广授权仍保持有效，但其 `permission` 会变为 `refused`，基于该授权的推广会被拒绝。所有者重新关联后，请重新创建推广授权。

所有者也可以随时直接在社交网络上撤回权限。

## 请求头参数

**Authorization** `string` *required*

[API Key](https://www.ayrshare.com/docs/apis/overview.md#authorization) of the Primary Profile.

Format: `Authorization: Bearer API_KEY`

## 路径参数

**id** `string` *required*

创建或列出推广授权时返回的推广授权 `id`。

```bash cURL theme={"system"}
curl \
-H "Authorization: Bearer API_KEY" \
-X DELETE https://api.ayrshare.com/api/ads/delegations/Kx3v9QpL2mZ7tR1wYb4N
```

```json 200 theme={"system"}
{
  "status": "success",
  "delegation": {
    "id": "Kx3v9QpL2mZ7tR1wYb4N",
    "owner": { "refId": "140b8709bd6ade099b242d895e268fb886130c53", "title": "Agent One" },
    "payer": { "refId": "9f1c3e7a2b4d", "title": "Agency" },
    "platform": "instagram",
    "permission": "unknown",
    "status": "revoked",
    "revokedReason": "api"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.