tenant_catalog
Scan and cache your GAM inventory catalog for fast lookups. Run scan_network once then refresh daily to avoid repeated API calls.
Instructions
Scan and cache the tenant's GAM inventory catalog for fast downstream operations.
MODE: read (scan triggers a background read job) AUTH: OAuth 2.0 required CREDITS: 0 (free) OUTPUT: get_active_catalog returns a JSON catalog of ad units, placements, and key-values. get_scan_status returns {status: IDLE|RUNNING|COMPLETE, progress, last_updated}. WHEN TO USE: Run scan_network once after connecting a new GAM network, then call refresh periodically (daily) to keep the catalog current. Other tools use the catalog for fast lookups without hitting the GAM API on every call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Sub-operation to perform: • scan_network: Trigger a background scan of the GAM network to build the inventory catalog. Returns a scan job ID. Poll with get_scan_status. • get_scan_status: Get the status of the most recent catalog scan. Returns status, progress, and last_updated timestamp. • get_active_catalog: Return the current cached inventory catalog (ad units, placements, targeting keys). May be stale if not refreshed recently. • refresh: Trigger an incremental catalog refresh to pick up recent GAM changes without a full rescan. | |
| network_code | No | GAM network code (e.g. 12345678). Required for all network-scoped operations. Obtain via select_gam_network or list_accessible_networks. |