Skip to main content
PATCH
/
api
/
v1
/
google-ads
/
keywords
/
{ad_group_id}
/
{criterion_id}
Update Keyword
curl --request PATCH \
  --url http://localhost:8000/api/v1/google-ads/keywords/{ad_group_id}/{criterion_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "ENABLED",
  "cpc_bid_micros": 1
}
'
{
  "success": true,
  "criterion_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.

Path Parameters

ad_group_id
integer
required
criterion_id
integer
required

Query Parameters

customer_id
integer
required
token_id
integer | null

Optional specific Token ID

Body

application/json

Request to update a keyword's status and/or CPC bid.

status
enum<string> | null

New status (ENABLED or PAUSED)

Available options:
ENABLED,
PAUSED
cpc_bid_micros
integer | null

New CPC bid in micros

Required range: x > 0

Response

Successful Response

Result of a keyword mutation operation.

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