# Create ads

Create a Display or Video campaign on The Trade Desk that maximizes reach, with an optional lifetime budget. It is created paused, with no ad groups.

`POST /v1/ads/campaigns` creates an empty Trade Desk campaign on one advertiser. Ad groups and creatives are added in The Trade Desk: Zernio cannot create them yet.

## Create a campaign

`goal` picks the channel: `awareness` for Display, `video_views` for Video. The campaign maximizes reach. `budgetAmount` with `budgetType: "lifetime"` is optional and paced evenly.

```bash
curl -X POST "https://zernio.com/api/v1/ads/campaigns" \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "ACCOUNT_ID",
    "adAccountId": "abc1234",
    "name": "Q4 reach",
    "goal": "awareness",
    "budgetAmount": 5000,
    "budgetType": "lifetime",
    "startDate": "2026-12-01T00:00:00Z"
  }'
```

`adAccountId` is the advertiser id, a short code such as `abc1234` (`GET /v1/ads/accounts` lists them). The answer is always `PAUSED`, whatever `status` you send.

## How it behaves

- The campaign has no ad groups, so it spends nothing until you add an ad group in The Trade Desk and turn it on.
- A Trade Desk campaign has no on or off switch of its own. It delivers through its enabled ad groups.
- `startDate` and `endDate` set the campaign's dates.
- `POST /v1/ads/create` and `POST /v1/ads/boost` are not available on The Trade Desk.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| `422` naming `goal` | Any goal other than `awareness` or `video_views`: the others need a target value the body cannot carry | Send `awareness` or `video_views`, or create the campaign in The Trade Desk. |
| `422` naming `budgetType` | A daily budget | Send `budgetType: "lifetime"`, or leave the budget out. |

## Related

- [Create a standalone campaign](/ad-campaigns/create-ad-campaign)
- [List ad accounts](/ad-accounts/list-ad-accounts)
- [Manage ads](/platforms/the-trade-desk/manage-ads)