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

# Accounts

> 連携したRedditアカウントで使用できるRedditの広告アカウントを、各アカウントの名前と通貨とともに一覧表示します。

ブーストに使用できるRedditの広告アカウントを一覧表示します。[投稿をブースト](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md)するときに、アカウントの`id`を`accountId`として送信します。

<ul>
  <li>連携で確認できるすべてのRedditビジネスのすべての広告アカウントが、1ページで返されます。`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.