google ads get account hierarchy
google_ads_get_account_hierarchyList accessible Google Ads customers and manager/client relationships to map MCC hierarchies; falls back to accessible customers if hierarchy queries fail.
Instructions
List accessible customers and, where possible, manager/client relationships from GAQL customer_client. Falls back to accessible customers if hierarchy queries are unavailable.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "google_ads_get_account_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeInactive | No | Include non-ENABLED customer_client links | |
| managerCustomerId | No | MCC Manager account ID (required for sub-accounts managed by an MCC) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |