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

# Promote an existing pin

Promote a Pin you already published with POST /v1/ads/boost, keeping its engagement.

Promote a Pin that is already published with `POST /v1/ads/boost`, keeping its engagement.

## Promote a post

Pass the Zernio `postId` (or the Pinterest `platformPostId`), the account, the ad account, a goal and a budget.

<Tabs items={['Node.js', 'Python', 'curl']}>
<Tab value="Node.js">
```typescript
const { data: boosted } = await zernio.adcampaigns.boostPost({
  body: {
    postId: '65f1c0a9e2b5af0012ab34cd',
    accountId: '66b2e19d8c3f5a7e9d0b1c2d',
    adAccountId: '549123456789',
    name: 'Boost decor Pin',
    goal: 'traffic',
    budget: { amount: 30, type: 'daily' },
    schedule: { startDate: '2027-01-04T09:00:00Z', endDate: '2027-02-04T23:59:00Z' }
  }
});

console.log(boosted.ad._id);
```
</Tab>
<Tab value="Python">
```python
boosted = client.ad_campaigns.boost_post(
    post_id="65f1c0a9e2b5af0012ab34cd",
    account_id="66b2e19d8c3f5a7e9d0b1c2d",
    ad_account_id="549123456789",
    name="Boost decor Pin",
    goal="traffic",
    budget={"amount": 30, "type": "daily"},
    schedule={"startDate": "2027-01-04T09:00:00Z", "endDate": "2027-02-04T23:59:00Z"},
)

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 '{
    "postId": "65f1c0a9e2b5af0012ab34cd",
    "accountId": "66b2e19d8c3f5a7e9d0b1c2d",
    "adAccountId": "549123456789",
    "name": "Boost decor Pin",
    "goal": "traffic",
    "budget": { "amount": 30, "type": "daily" },
    "schedule": { "startDate": "2027-01-04T09:00:00Z", "endDate": "2027-02-04T23:59:00Z" }
  }'
```
</Tab>
</Tabs>

Response (`201`):

```json
{
  "ad": {
    "_id": "66f0a1b2c3d4e5f6a7b8c9d1",
    "name": "Boost decor Pin",
    "platform": "pinterest",
    "status": "pending_review",
    "adType": "boost",
    "goal": "traffic",
    "budget": { "amount": 30, "type": "daily" }
  },
  "message": "Ad created"
}
```

The minimum budget is $5 (`budget.amount`). `goal` takes `engagement`, `traffic`, `awareness` or `video_views`.

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

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| A second ad after a retry | The boost is not idempotent | Send an `Idempotency-Key` header with every boost. |
| `400` on `goal` | A `goal` outside the 4 Pinterest values | Use `engagement`, `traffic`, `awareness` or `video_views`. |
| Budget rejected | Below Pinterest's $5 minimum | Raise `budget.amount` to at least 5. |
| `502` with code `platform_api_error` | Pinterest rejected the request | Read `platformError` for Pinterest's own payload. |

## Related

- [Create a campaign](/platforms/pinterest-ads/create-ads): create a new Pin and promote it in one call.
- [Targeting fields](/platforms/pinterest-ads/targeting): who the Promoted Pin reaches.
- [Boost post](/ad-campaigns/boost-post): every field of the request.
- [Idempotency](/guides/idempotency): safe retries.