network
Retrieve metadata about the active GAM network. List all networks you can access, switch the active network, and update network settings.
Instructions
GAM network management — get info, switch active network, list accessible networks, update settings.
MODE: mixed (read + write) AUTH: OAuth 2.0 required CREDITS: Reads = 0. update_network = 0.5 credits. OUTPUT: get_network_info returns {networkCode, displayName, currencyCode, timeZone, effectiveRootAdUnit}. list_accessible_networks returns all networks the authenticated user can access. WHEN TO USE: Use network to discover and switch between multiple GAM networks. Call list_accessible_networks after authentication to find available networks, then switch_network to set the active one.
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": {
"action": "<action>"
},
"name": "network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Sub-operation to perform: • get_network_info: Return metadata about the current active GAM network. • switch_network: Set a different network as the active one for subsequent operations. Requires network_code of the target network. • list_accessible_networks: List all GAM networks accessible to the authenticated Google account. • update_network: Update network-level settings (display name, currency). Write, requires Network Admin role. | |
| network_code | No | GAM network code (e.g. 12345678). Required for all network-scoped operations. Obtain via select_gam_network or list_accessible_networks. |