---
title: "Create Campaign"
method: POST
path: "/api/v1/openai-ads/campaigns/create"
tags: ["openaiAds"]
---

# Create Campaign

`POST /api/v1/openai-ads/campaigns/create`

## Request

- Base URL: `https://api.brandbooster.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.brandbooster.ai/api/v1/openai-ads/campaigns/create`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Request body

- CampaignDraftRequestDTO
  - `account_id` string, required
  - `draft_id` string, required
  - `name` string
  - `bidding_type` 'clicks' | 'impressions' | 'conversions'
  - `conversion_event_setting_id` string, nullable
  - `budget` DraftBudgetDTO, required
    - `type` 'daily' | 'lifetime'
    - `amount` number
  - `targeting` DraftTargetingDTO
    - `locations` string[]
    - `all_locations` boolean
    - `excluded_locations` string[]
    - `platforms` string[]
  - `ad_groups` DraftAdGroupDTO[]
    - `name` string
    - `context_hints` string[]
    - `max_bid` number
    - `ads` DraftAdDTO[]
      - `name` string
      - `title` string
      - `body` string
      - `target_url` string
      - `file_id` string, nullable
      - `image_url` string, nullable

## Response `200`

Successful Response

- OpenAIAdsResponseDTOCreateCampaignResultDTO
  - `code` integer
  - `message` string
  - `data` CreateCampaignResultDTO, required
    - `campaign_id` string, required
    - `status` string, required
    - `upstream` UpstreamCallDTO[]
      - `method` string, required
      - `path` string, required
      - `idempotency_key` string, nullable
      - `result` string, nullable
      - `error` string, nullable
  - `error_code` string, nullable

## Other responses

- `422`: Validation Error

## Changes

> 35 revisions in range; 1 not diffed.

- **2026-10-13** `c7202552278d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brandbooster/apis/fastapi/changes/api/v1/openai-ads/campaigns/create/post.md)

---

[API](https://skmtc.dev/brandbooster/apis/fastapi.md) - [All operations](https://skmtc.dev/brandbooster/apis/fastapi/llms.txt) - [OpenAPI document](https://skmtc.dev/brandbooster/apis/fastapi/revisions/8e8c18c2dc35?raw)
