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

# Anzeige aktualisieren

> Pausieren, fortsetzen, archivieren oder löschen Sie eine Reddit-Anzeige, die Sie über Ayrshare beworben haben.

Ändern Sie den Status einer Reddit-Anzeige, die Sie mit [Beitrag bewerben](https://www.ayrshare.com/docs/apis/ads/reddit/boost-post.md) erstellt haben. Die Anzeige und die von Ayrshare dafür erstellte Kampagne ändern sich gemeinsam.

<ul>
  <li>`DELETED` archiviert die Anzeige auf Reddit, genau wie `ARCHIVED`. Sie zeigt dann `adStatus: "ARCHIVED"` in [Beworbene Anzeigen](https://www.ayrshare.com/docs/apis/ads/reddit/get-boosted-ads.md), sobald die zwischengespeicherte Antwort aktualisiert wird (siehe `nextUpdate`).</li>
  <li>Eine Anzeige, die ein anderes Profil beworben hat, führt zu `code: 400`. Eine Anzeige, zu der Ayrshare keinen Eintrag hat, kann pausiert, archiviert oder gelöscht werden; das Setzen auf `ACTIVE` führt zu `code: 400`.</li>
  <li>Enthält die Kampagne der Anzeige auch außerhalb von Ayrshare erstellte Anzeigen, ändert sich nur diese Anzeige. Um sie auf `ACTIVE` zu setzen, muss die Kampagne in Reddit Ads aktiv sein, andernfalls erhalten Sie `code: 369`.</li>
  <li>Wenn eine Änderung auf `ACTIVE` fehlschlägt und Reddit nicht bestätigen kann, dass die Anzeige wieder gestoppt ist, enthält der Fehler eine `warning`, dass die Anzeige möglicherweise live ist und Budget verbraucht, und die Anzeige zeigt `adStatus: "ACTIVE"`. Überprüfen Sie sie und pausieren Sie sie bei Bedarf.</li>
  <li>Wenn Sie Anfragen schneller senden, als Reddit es zulässt, erhalten Sie `code: 364` mit HTTP 429.</li>
</ul>

## Header-Parameter

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

**adId** `string` *required*

Die Reddit-Anzeigen-ID, zum Beispiel `2707300000000000001`.

**status** `string` *required*

`ACTIVE`, `PAUSED`, `ARCHIVED` oder `DELETED`. Groß- oder Kleinschreibung.

```bash cURL theme={"system"}
curl -X PUT https://api.ayrshare.com/api/ads/reddit/ads \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "adId": "2707300000000000001",
    "status": "PAUSED"
  }'
```

```json 200: Success theme={"system"}
{
  "status": "success",
  "adId": "2707300000000000001",
  "requestedStatus": "PAUSED"
}
```

```json 400: Invalid status 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": "Invalid status: STOPPED. Status must be one of ACTIVE, PAUSED, DELETED, ARCHIVED."
}
```

```json 400: Resume failed, ad may be live theme={"system"}
{
  "action": "ads",
  "status": "error",
  "code": 369,
  "message": "Unable to boost post. Please try again.",
  "warning": "The status change failed, and reddit did not confirm that ad 2707300000000000001 is stopped. It may be live and spending. Check it on reddit or pause it."
}
```


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