get_account_hierarchy
Retrieve the account hierarchy from a Google Ads manager account, showing child accounts and their nesting level. Input the manager customer ID to get the full tree.
Instructions
List the accounts under a Google Ads manager (MCC) account, including nesting level.
Args: customer_id: The manager account's customer ID (10 digits, dashes optional).
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": {
"customer_id": "<customer_id>"
},
"name": "get_account_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |