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

# विज्ञापन अपडेट करें

> Ayrshare से boost किए गए Snapchat ad को pause, resume या delete करें, campaign कब resume होता है और fail हुए बदलाव के बाद ad कैसे जाँचें, यह भी।

[Boost Post](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md) से बनाए गए Snapchat ad को pause, resume या delete करें।

<ul>
  <li>`paused` ad और उसका खर्च रोकता है। `deleted` Snapchat में ad को delete करता है।</li>
  <li>`active` ad को resume करता है। अगर ad का campaign paused है और उसमें केवल यही ad है, तो campaign भी resume हो जाता है।</li>
  <li>Ad तभी चलता है जब उसका ad squad और campaign active हों। अगर ad squad को Snapchat में pause किया गया था, या campaign paused है और उसमें दूसरे ads हैं, तो `active` `code: 369` लौटाता है। पहले उन्हें Snapchat Ads Manager में resume करें।</li>
  <li>Snapchat में कोई archived status नहीं है, इसलिए `archived` `code: 101` लौटाता है।</li>
  <li>जिस ad का Ayrshare के पास कोई रिकॉर्ड नहीं है, उसे pause या delete किया जा सकता है, लेकिन `active` पर सेट नहीं किया जा सकता। वह request `code: 400` लौटाता है। Ad ID के साथ support से संपर्क करें।</li>
  <li>अगर `active` fail होता है और Snapchat पुष्टि नहीं कर पाता कि ad फिर से रुक गया है, तो error में `warning` होता है: ad live हो सकता है और खर्च कर रहा हो सकता है। इसे Snapchat Ads Manager में जाँचें, या फिर से `paused` भेजें।</li>
  <li>Fail हुए `paused` या `deleted` में `warning` नहीं होता, लेकिन ad अभी भी चल रहा हो सकता है। इसे [Boosted Ads](https://www.ayrshare.com/docs/apis/ads/snapchat/get-boosted-ads.md) या Snapchat Ads Manager में जाँचें, और बदलाव फिर से भेजें।</li>
  <li>किसी ad का वर्तमान status देखने के लिए [Boosted Ads](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 ad ID, वह `id` जो [Boost Post](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md) ने लौटाया।

**status** `string` *required*

नया status: `active`, `paused` या `deleted`। Case से फ़र्क नहीं पड़ता।

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