Skip to main content
POST
/
api
/
v1
/
google-ads
/
ads
Create Rsa
curl --request POST \
  --url http://localhost:8000/api/v1/google-ads/ads \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ad_group_id": 123,
  "final_url": "<string>",
  "headlines": [
    {
      "text": "<string>",
      "pinned_field": "<string>"
    }
  ],
  "descriptions": [
    {
      "text": "<string>",
      "pinned_field": "<string>"
    }
  ],
  "display_path_1": "<string>",
  "display_path_2": "<string>",
  "final_mobile_url": "<string>",
  "tracking_url_template": "<string>"
}
'
{
  "success": true,
  "ad_id": 123,
  "resource_name": "<string>",
  "error_code": "<string>",
  "error_message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

customer_id
integer
required
token_id
integer | null

Optional specific Token ID

Body

application/json

Request to create a Responsive Search Ad.

ad_group_id
integer
required

Ad group to create the RSA in

final_url
string
required

Landing page URL

Minimum string length: 1
headlines
RSAAssetInput · object[]
required

3-15 headlines

Required array length: 3 - 15 elements
descriptions
RSAAssetInput · object[]
required

2-4 descriptions

Required array length: 2 - 4 elements
display_path_1
string | null
Maximum string length: 15
display_path_2
string | null
Maximum string length: 15
final_mobile_url
string | null
tracking_url_template
string | null

Response

Successful Response

Result of an ad mutation operation.

success
boolean
required
ad_id
integer | null
resource_name
string | null
error_code
string | null
error_message
string | null