gam_targeting_values
Lists and searches values under a specified custom targeting key, resolving value names to IDs for forecast custom_targeting and key-value report filters.
Instructions
MODE: read-only. UI: Inventory → Key-values. List/search the values under ONE custom targeting key (key_id required — the GAM API is key-scoped; big keys hold 100k+ values, so always search or paginate). OUTPUT: value rows (id, code, display name, matchType, status); ids feed forecast custom_targeting and key-value report filters. WHEN TO USE: resolving value names→ids for a known key (get key_id from gam_targeting_keys first).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key_id": "<key_id>"
},
"name": "gam_targeting_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Default 50. | |
| key_id | Yes | The custom targeting key id (from gam_targeting_keys). | |
| search | No | Substring match on value code (adTagName) or display name. | |
| page_token | No | Continue a previous listing. | |
| network_code | No |