Skip to main content
POST
/
api
/
v1
/
campaigns
/
drafts
/
{draft_id}
/
ad-groups
/
{ad_group_id}
/
rsa
/
generate
Start RSA generation for an ad group (creates 3 RSAs)
curl --request POST \
  --url http://localhost:8000/api/v1/campaigns/drafts/{draft_id}/ad-groups/{ad_group_id}/rsa/generate \
  --header 'Authorization: Bearer <token>'
{
  "rsa_ids": [
    123
  ],
  "task_id": "<string>",
  "status": "in_progress"
}

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
ad_group_id
integer
required

Response

Successful Response

Response when starting RSA generation (3 RSAs per ad group).

rsa_ids
integer[]
required

IDs of the 3 created RSA records

task_id
string
required
status
enum<string>
default:in_progress

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

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