Skip to main content
POST
/
api
/
v1
/
campaigns
/
drafts
/
{draft_id}
/
extensions
/
generate
Start extension generation for a draft (sitelinks, callouts, snippets)
curl --request POST \
  --url http://localhost:8000/api/v1/campaigns/drafts/{draft_id}/extensions/generate \
  --header 'Authorization: Bearer <token>'
{
  "task_id": "<string>",
  "status": "pending"
}

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

Response

Successful Response

Response when starting extension generation.

task_id
string
required
status
enum<string>
default:pending

Status of background task generation (ad groups, RSAs).

Available options:
not_started,
pending,
in_progress,
completed,
failed