Skip to main content
POST
/
api
/
v1
/
campaigns
/
drafts
/
{draft_id}
/
create
Create campaign from draft
curl --request POST \
  --url http://localhost:8000/api/v1/campaigns/drafts/{draft_id}/create \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "campaign": {
    "id": 123,
    "google_ads_campaign_id": "<string>",
    "resource_name": "<string>",
    "name": "<string>",
    "status": "ENABLED",
    "created_at": "2023-11-07T05:31:56Z",
    "ad_groups": [
      {
        "id": 123,
        "google_ads_ad_group_id": "<string>",
        "name": "<string>",
        "keywords_count": 123,
        "ads_count": 123
      }
    ],
    "market_analysis_id": 123
  },
  "warnings": [
    "<string>"
  ],
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

draft_id
integer
required

Query Parameters

token_id
integer | null

Optional specific Token ID

Response

Successful Response

Response schema for campaign creation.

success
boolean
required
campaign
CreatedCampaignSchema · object

Created campaign response.

warnings
string[] | null
error
string | null