initiate_gam_auth
Start OAuth authorization to link a Google Ad Manager network to OrbiAds. Returns an auth URL and session ID for polling completion.
Instructions
Start the OAuth 2.0 authorization flow to link a GAM network to the OrbiAds tenant.
MODE: write (creates a pending auth session) AUTH: Partially authenticated (OrbiAds session required, GAM auth not yet established) CREDITS: 0 (free) OUTPUT: Returns {auth_url: string, session_id: string}. Open auth_url in a browser and authorize. Then poll poll_auth_status with the session_id. WHEN TO USE: Call when a GAM network has not yet been authorized (check_credentials returns false). Do not call if credentials are already valid.
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": {
"network_code": "<network_code>"
},
"name": "initiate_gam_auth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network_code | Yes | The GAM network code to authorize. Obtain from the GAM UI or list_accessible_networks after a Google sign-in. |