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

# アカウント

> リンク済みの Snapchat アカウントで使える Snapchat 広告アカウントを、通貨、タイムゾーン、ステータスとともに一覧表示します。

Snap をブーストできる Snapchat 広告アカウントを取得します。アカウントの `id` を [投稿をブースト](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md)の `accountId` として使用します。

<ul>
  <li>まず「Social Accounts」ページで Snapchat をリンクしてください。リストには、リンク済みアカウントが参照できるすべての Snapchat 組織の広告アカウントが含まれます。</li>
  <li>各アカウントには `id` があり、Snapchat が報告する場合は `name`、`currency`、`timezone`、`status` も含まれます。</li>
  <li>ブーストの予算と費用は、広告アカウントの `currency` で表されます。</li>
  <li>すべてのアカウントを 1 つのレスポンスで取得するには、`limit` を省略します。</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`

## クエリパラメータ

**limit** `number`

1 ページで返すアカウントの最大数。1 から 1,000 まで。すべてのアカウントを取得するには省略します。

**next** `string`

レスポンスに `meta.pagination.hasMore: true` がある場合、その `meta.pagination.next` の値をここに送ると次のページを取得できます。その他のパラメータは変更せずに送ってください: 別のリクエストの `next` 値は `code: 101` を返します。

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

```json 200: Success theme={"system"}
{
  "status": "success",
  "adAccounts": [
    {
      "id": "5a0d0000-0000-4000-8000-000000000003",
      "name": "Acme Ads",
      "currency": "USD",
      "timezone": "America/Los_Angeles",
      "status": "ACTIVE"
    }
  ],
  "meta": { "pagination": { "hasMore": false } }
}
```

```json 400: Ad accounts error theme={"system"}
{
  "action": "get ad accounts",
  "status": "error",
  "code": 366,
  "message": "Error getting ad accounts. Please verify you have an active Snapchat ad account and have granted permission to access it. Try unlinking and relinking the platform, then try again. Contact us if the issue persists."
}
```


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