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