> ## 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 عززته عبر Ayrshare، بما في ذلك متى تُستأنف حملته أيضًا وكيف تتحقق منه بعد تغيير فاشل.

أوقف مؤقتًا أو استأنف أو احذف إعلان Snapchat أنشأته عبر [تعزيز المنشور](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md).

<ul>
  <li>توقف `paused` الإعلان وإنفاقه. تحذف `deleted` الإعلان في Snapchat.</li>
  <li>تستأنف `active` الإعلان. إذا كانت حملة الإعلان متوقفة مؤقتًا ولا تحتوي إلا على هذا الإعلان، تُستأنف الحملة أيضًا.</li>
  <li>لا يعمل الإعلان إلا أثناء نشاط ad squad والحملة الخاصين به. إذا أُوقف ad squad مؤقتًا في Snapchat، أو كانت الحملة متوقفة مؤقتًا وتحتوي على إعلانات أخرى، تُعيد `active` القيمة `code: 369`. استأنفها أولًا في Snapchat Ads Manager.</li>
  <li>لا يملك Snapchat حالة مؤرشفة، لذا تُعيد `archived` القيمة `code: 101`.</li>
  <li>يمكن إيقاف إعلان ليس لدى Ayrshare سجل له مؤقتًا أو حذفه، لكن لا يمكن ضبطه على `active`. يُعيد هذا الطلب `code: 400`. تواصل مع الدعم مع ذكر معرّف الإعلان.</li>
  <li>إذا فشلت `active` ولم يتمكن Snapchat من تأكيد توقف الإعلان مجددًا، يحمل الخطأ `warning`: قد يكون الإعلان نشطًا وينفق. تحقق منه في Snapchat Ads Manager، أو أرسل `paused` مرة أخرى.</li>
  <li>لا يحمل `paused` أو `deleted` الفاشل أي `warning`، لكن قد يظل الإعلان يعمل. تحقق منه في [الإعلانات المُعزَّزة](https://www.ayrshare.com/docs/apis/ads/snapchat/get-boosted-ads.md) أو Snapchat Ads Manager، وأرسل التغيير مرة أخرى.</li>
  <li>لمعرفة الحالة الحالية للإعلان، استخدم [الإعلانات المُعزَّزة](https://www.ayrshare.com/docs/apis/ads/snapchat/get-boosted-ads.md).</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`

## معاملات الجسم

**adId** `string` *required*

معرّف إعلان Snapchat، أي `id` الذي أعاده [تعزيز المنشور](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md).

**status** `string` *required*

الحالة الجديدة: `active` أو `paused` أو `deleted`. لا يهم حالة الأحرف.

```bash cURL theme={"system"}
curl \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-X PUT https://api.ayrshare.com/api/ads/snapchat/ads \
-d '{"adId": "c3a1e2d4-0000-4000-8000-0000000000ad", "status": "paused"}'
```

```json 200: Success theme={"system"}
{
  "status": "success",
  "adId": "c3a1e2d4-0000-4000-8000-0000000000ad",
  "requestedStatus": "PAUSED"
}
```

```json 400: Archived theme={"system"}
{
  "action": "request",
  "status": "error",
  "code": 101,
  "message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
  "details": "Status ARCHIVED is not supported on snapchat. Supported: ACTIVE, PAUSED, DELETED."
}
```

```json 400: Ad squad paused theme={"system"}
{
  "action": "ads",
  "status": "error",
  "code": 369,
  "message": "Unable to boost post. Please try again.",
  "details": "Snapchat ad squad e5f6a7b8-0000-4000-8000-0000000000sq is PAUSED. Resume the ad squad in Snapchat to run this ad."
}
```


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