Skip to main content
PUT
/
api
/
v1
/
google-ads
/
locations
/
targeting
Replace Locations
curl --request PUT \
  --url http://localhost:8000/api/v1/google-ads/locations/targeting \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "campaign_id": 123,
  "locations": [
    {
      "geo_target_constant_id": 123,
      "target_type": "INCLUDE"
    }
  ]
}
'
{
  "success": true,
  "successful_count": 0,
  "failed_count": 0,
  "errors": [
    {}
  ]
}

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 replace all location targeting on a campaign.

campaign_id
integer
required

Campaign to replace locations on

locations
LocationTargetingEntry · object[]
required

New locations (replaces all existing)

Minimum array length: 1

Response

Successful Response

Result of a campaign criteria mutation.

success
boolean
required
successful_count
integer
default:0
failed_count
integer
default:0
errors
Errors · object[] | null