> ## 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.

# 账户

> 列出您关联的 Reddit 账户可以使用的 Reddit 广告账户，包括每个账户的名称和币种。

列出您可以用于推广的 Reddit 广告账户。[推广帖子](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md)时，将账户的 `id` 作为 `accountId` 发送。

<ul>
  <li>您的关联可以看到的每个 Reddit 企业下的所有广告账户都会在同一页中返回。`meta.pagination.hasMore` 始终为 `false`。</li>
  <li>`currency` 是该账户的币种。推广预算和洞察数据中的花费都使用该币种。</li>
  <li>当 Reddit 未提供 `name` 和 `currency` 时，响应中会省略它们。</li>
  <li>关联 Reddit 并授予广告权限（`adsread`、`adsedit`、`adsconversions`）。缺少这些权限时会返回 `code: 420`。</li>
</ul>

## 请求头参数

**Authorization** `string` *required*

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

Format: `Authorization: Bearer API_KEY`
**Profile-Key** `string`

[Profile Key](https://www.ayrshare.com/docs/apis/overview.md#profile-key-format) of a User Profile.

Format: `Profile-Key: PROFILE_KEY`

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

```json 200: Success theme={"system"}
{
  "status": "success",
  "adAccounts": [
    { "id": "a2_abc123", "name": "Acme Gardening", "currency": "USD" },
    { "id": "a2_def456", "name": "Acme Europe", "currency": "EUR" }
  ],
  "meta": {
    "pagination": { "hasMore": false }
  }
}
```

```json 401: Ads permissions missing theme={"system"}
{
  "action": "ads",
  "status": "error",
  "code": 420,
  "message": "Ads permissions missing for this social account. Please unlink the account and relink it in the social account linking page, granting all ads permissions.",
  "details": "Relink reddit and grant the ads permissions to use ads on reddit."
}
```


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