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

# Tài khoản

> Liệt kê các tài khoản quảng cáo Snapchat mà tài khoản Snapchat đã liên kết của bạn có thể dùng, kèm tiền tệ, múi giờ và trạng thái của từng tài khoản.

Lấy các tài khoản quảng cáo Snapchat mà bạn có thể dùng để boost Snap. Dùng `id` của tài khoản làm `accountId` trong [Boost Bài đăng](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md).

<ul>
  <li>Trước tiên hãy liên kết Snapchat từ trang "Social Accounts". Danh sách bao gồm các tài khoản quảng cáo trong mọi tổ chức Snapchat mà tài khoản đã liên kết của bạn có thể thấy.</li>
  <li>Mỗi tài khoản có `id`, cùng `name`, `currency`, `timezone` và `status` khi Snapchat cung cấp.</li>
  <li>Ngân sách và chi tiêu của một lượt boost tính theo `currency` của tài khoản quảng cáo.</li>
  <li>Bỏ qua `limit` để nhận mọi tài khoản trong một phản hồi.</li>
</ul>

## Tham số Header

**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`

## Tham số truy vấn

**limit** `number`

Số tài khoản tối đa trả về trong một trang, từ 1 đến 1.000. Bỏ qua để nhận mọi tài khoản.

**next** `string`

Khi phản hồi có `meta.pagination.hasMore: true`, gửi giá trị `meta.pagination.next` của nó vào đây để lấy trang tiếp theo. Giữ nguyên các tham số khác: giá trị `next` từ một yêu cầu khác sẽ trả về `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.