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>"
}Create a Google Ads campaign from a saved draft.
Requirements:
On success:
Returns 409 Conflict if background tasks are still running. Returns 400 with validation errors if the draft is incomplete.
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>"
}The access token received from the authorization server in the OAuth 2.0 flow.
Optional specific Token ID