Targeting Keys

Manage targeting keys

Get targeting keys of the account

get

Return the list of the targeting keys of the account

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

Query parameters
_pageintegerOptional

Index of the page

Example: 0
_max_per_pageintegerOptional

Number of items per page

Example: 10
Responses
200

Success

application/json
Responseall of
get
/accounts/{account_id}/targeting_keys

Create one/multiple targeting key(s)

post

Create one/multiple targeting key(s)

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

Body
Responses
post
/accounts/{account_id}/targeting_keys

Get one targeting key

get

Return one targeting key by its id

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

targeting_key_idstringRequired

The ID of the targeting_key

Responses
200

Success

application/json
get
/accounts/{account_id}/targeting_keys/{targeting_key_id}

Delete a targeting key

delete

Delete a targeting key by its id.

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

targeting_key_idstringRequired

The ID of the targeting_key

Responses
delete
/accounts/{account_id}/targeting_keys/{targeting_key_id}

No content

Update a targeting key

patch

Update targeting key informations - You can set only the properies you want to update in the request body.

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

targeting_key_idstringRequired

The ID of the targeting_key

Body
idstringRead-onlyOptional

ID of the targeting_key

typestring · enumRequired

Type of the targeting_key

Possible values:
namestringRequired

Name of the targeting key

descriptionstringRequired

Description of the targeting key

Responses
200

Updated

application/json
patch
/accounts/{account_id}/targeting_keys/{targeting_key_id}

Last updated

Was this helpful?