> ## 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 المرتبط استخدامها، مع عملة كل حساب ومنطقته الزمنية وحالته.

احصل على حسابات Snapchat الإعلانية التي يمكنك تعزيز Snaps منها. استخدم `id` الخاص بالحساب كـ `accountId` في [تعزيز المنشور](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md).

<ul>
  <li>اربط Snapchat أولًا من صفحة "Social Accounts". تشمل القائمة الحسابات الإعلانية في كل مؤسسات Snapchat التي يستطيع حسابك المرتبط رؤيتها.</li>
  <li>لكل حساب `id` خاص به، و`name` و`currency` و`timezone` و`status` عندما يُبلغ عنها Snapchat.</li>
  <li>تكون الميزانيات والإنفاق في التعزيز بعملة `currency` الخاصة بالحساب الإعلاني.</li>
  <li>احذف `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,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.