> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# Promote a post

Promote a Reddit post that already exists as an ad, keeping its votes and comments.

`POST /v1/ads/boost` promotes a Reddit post that already exists, keeping its votes and comments.

Pass `platformPostId` (the Reddit post id, with or without the `t3_` prefix), or a Zernio `postId` published by a Reddit account connected to the same profile.

## Promote a post

<Tabs items={['Node.js', 'Python', 'curl']}>
<Tab value="Node.js">
```typescript
const { data: boosted } = await zernio.adcampaigns.boostPost({
  body: {
    accountId: '66b2e19d8c3f5a7e9d0b1c2d',
    adAccountId: 'a2_gu5tcd9ah5se',
    platformPostId: 't3_1o4x9qz',
    name: 'Boost launch thread',
    goal: 'traffic',
    budget: { amount: 30, type: 'daily' },
    linkUrl: 'https://example.com/planner',
    targeting: { countries: ['US'], communities: ['productivity'] }
  }
});

console.log(boosted.ad.id);
```
</Tab>
<Tab value="Python">
```python
boosted = client.ad_campaigns.boost_post(
    account_id="66b2e19d8c3f5a7e9d0b1c2d",
    ad_account_id="a2_gu5tcd9ah5se",
    platform_post_id="t3_1o4x9qz",
    name="Boost launch thread",
    goal="traffic",
    budget={"amount": 30, "type": "daily"},
    link_url="https://example.com/planner",
    targeting={"countries": ["US"], "communities": ["productivity"]},
)

print(boosted["ad"]["id"])
```
</Tab>
<Tab value="curl">
```bash
curl -X POST "https://zernio.com/api/v1/ads/boost" \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "66b2e19d8c3f5a7e9d0b1c2d",
    "adAccountId": "a2_gu5tcd9ah5se",
    "platformPostId": "t3_1o4x9qz",
    "name": "Boost launch thread",
    "goal": "traffic",
    "budget": { "amount": 30, "type": "daily" },
    "linkUrl": "https://example.com/planner",
    "targeting": { "countries": ["US"], "communities": ["productivity"] }
  }'
```
</Tab>
</Tabs>

Response (`201`):

```json
{
  "ad": {
    "id": "66f0a1b2c3d4e5f6a7b8c9d1",
    "name": "Boost launch thread",
    "platform": "reddit",
    "status": "pending_review",
    "adType": "boost",
    "goal": "traffic",
    "budget": { "amount": 30, "type": "daily" }
  },
  "message": "Ad created and submitted for review"
}
```

Boosts are not idempotent. Send an `Idempotency-Key` header to make a retry replay the original `201` instead of creating a second ad ([idempotency](/guides/idempotency)).

## How it behaves

- Reddit only promotes posts made by a profile of the ad account: a post by any other Reddit user returns `422` with `param: "platformPostId"`. Link the author to the ad account in Reddit Ads Manager first.
- [Goals](/platforms/reddit-ads/create-ads#goals), [pixel](/platforms/reddit-ads/create-ads#pixel), [budget and schedule](/platforms/reddit-ads/create-ads#budget-schedule-and-bidding) and [targeting](/platforms/reddit-ads/targeting) work as on a create, with targeting inside the `targeting` object.
- `video_views` needs a video post.
- `linkUrl` is optional and sets the ad's click URL.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| `422` with `param: "platformPostId"` | The post is not by a profile of the ad account, or `video_views` on a non-video post | Link the author to the ad account in Reddit Ads Manager, or boost a video post. |
| `400` with code `invalid_field_value`, `param: "goal"` | A goal outside the 5 Reddit values | Use a supported goal. |
| `422` with code `invalid_resource_state` | The pixel never received the event a `conversions` or `lead_generation` boost optimizes toward | Fire the event or [send it](/platforms/reddit-ads/conversions), then retry. |
| `429` with code `rate_limited` | Reddit's rate limit for the connected user | Wait `Retry-After` seconds and retry. |

## Related

- [Boost post](/ad-campaigns/boost-post): every field of the request.
- [Create a campaign](/platforms/reddit-ads/create-ads): goals, pixel, budget and schedule.
- [Targeting](/platforms/reddit-ads/targeting): the fields that go inside `targeting`.
- [Idempotency](/guides/idempotency): safe retries with `Idempotency-Key`.