> ## 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 でブーストした Snapchat 広告を一時停止・再開・削除。キャンペーンも再開される場合や失敗後の確認方法も説明。

[投稿をブースト](https://www.ayrshare.com/docs/apis/ads/snapchat/boost-post.md)で作成した Snapchat 広告を一時停止、再開、または削除します。

<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` を返します。広告 ID を添えてサポートにお問い合わせください。</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)が返した `id` です。

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