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

# Update Ad

> Pause, resume or delete a Snapchat ad you boosted through Ayrshare, including when its campaign resumes too and how to check an ad after a failed change.

Pause, resume or delete a Snapchat ad you created with [Boost Post](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md).

<ul>
  <li>`paused` stops the ad, and its spend. `deleted` deletes the ad in Snapchat.</li>
  <li>`active` resumes the ad. If the ad's campaign is paused and holds only this ad, the campaign is resumed too.</li>
  <li>An ad runs only while its ad squad and campaign are active. If the ad squad was paused in Snapchat, or the campaign is paused and holds other ads, `active` returns `code: 369`. Resume them in Snapchat Ads Manager first.</li>
  <li>Snapchat has no archived status, so `archived` returns `code: 101`.</li>
  <li>An ad that Ayrshare has no record of can be paused or deleted, but not set to `active`. That request returns `code: 400`. Contact support with the ad ID.</li>
  <li>If `active` fails and Snapchat cannot confirm the ad is stopped again, the error carries a `warning`: the ad may be live and spending. Check it in Snapchat Ads Manager, or send `paused` again.</li>
  <li>A failed `paused` or `deleted` has no `warning`, but the ad may still be running. Check it in [Boosted Ads](https://www.ayrshare.com/docs/apis/ads/snapchat/get-boosted-ads.md) or Snapchat Ads Manager, and send the change again.</li>
  <li>To see an ad's current status, use [Boosted Ads](https://www.ayrshare.com/docs/apis/ads/snapchat/get-boosted-ads.md).</li>
</ul>

## Header Parameters

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

## Body Parameters

**adId** `string` *required*

The Snapchat ad ID, the `id` that [Boost Post](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md) returned.

**status** `string` *required*

The new status: `active`, `paused` or `deleted`. Case does not matter.

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