Skip to main content
POST
/
api
/
v1
/
google-ads
/
locations
/
targeting
/
delete
Delete Location Targeting
curl --request POST \
  --url http://localhost:8000/api/v1/google-ads/locations/targeting/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "campaign_id": 123,
  "resource_names": [
    "<string>"
  ]
}
'
{
  "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 delete campaign criteria by resource names.

campaign_id
integer
required

Campaign owning the criteria

resource_names
string[]
required

Resource names of criteria to remove

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