> ## Documentation Index
> Fetch the complete documentation index at: https://developer.audiohook.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create campaign

## ✨ Create a Campaign

Creates a new campaign.

### 📤 Request Example

```bash theme={null}
curl -X POST https://betaapi.audiohook.com/v2/companies/:companyUUID/campaigns \
  -H "Authorization: Bearer ${API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "request_headers": [
      { "name": "X-Request-Header", "value": "Header value" }
    ],
    "body": {
      "draft": false,
      "campaign_type": 1,
      "name": "Test campaign Docs",
      "pacing": 5,
      "status": false,
      "budget_type": 1,
      "budget_value": 1,
      "start_date": "2023-02-15",
      "end_date": "2023-02-16",
      "advertiser_id": "test-advertiser-uuid"
    }
  }'
```

### 🌐 HTTP Request

```http theme={null}
POST /v2/companies/:companyUUID/campaigns
```

### 🧾 Body Parameters

| Parameter             | Required | Type    | Description                                 |
| --------------------- | -------- | ------- | ------------------------------------------- |
| draft                 | ✅        | boolean | Draft mode enabled or not.                  |
| campaign\_type        | ✅        | int     | Type of campaign: 1 - Impression, 2 - CPA.  |
| name                  | ✅        | string  | Name of the campaign.                       |
| pacing                | ✅        | int     | Pacing strategy: 1 to 6.                    |
| status                | ✅        | boolean | If the campaign is active.                  |
| budget\_type          | ✅        | int     | Budget type: 1 - Dollars, 2 - Impressions.  |
| budget\_value         | ✅        | int     | Budget amount.                              |
| start\_date           | ✅        | string  | Start date (format: Y-M-D).                 |
| end\_date             | ✅        | string  | End date (format: Y-M-D).                   |
| advertiser\_id        | ✅        | string  | UUID of advertiser.                         |
| audiences             | ❌        | array   | Selected audience list.                     |
| dayparting\_enabled   | ❌        | boolean | Whether dayparting is enabled.              |
| dayparting            | ❌        | array   | Dayparting info.                            |
| geo\_ui               | ❌        | array   | Geographic targeting list.                  |
| google\_places        | ❌        | array   | Google Places API raw info.                 |
| devices\_enabled      | ❌        | boolean | Whether device targeting is enabled.        |
| brand\_safety\_filter | ❌        | object  | Brand safety preferences.                   |
| creatives             | ❌        | array   | Creative weights or priorities.             |
| auto\_optimized       | ❌        | boolean | Auto optimization flag.                     |
| conversion\_type      | ❌        | int     | Conversion type.                            |
| conversion\_value     | ❌        | float   | Conversion value.                           |
| goal\_optimization    | ❌        | string  | Optimization goal: `no`, `partial`, `full`. |

***
