gads_account_info
Retrieve basic Google Ads account information including name, currency, timezone, manager flag, and status.
Instructions
Get basic info for the current Google Ads account: name, currency, timezone, manager flag, status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | No | Override GOOGLE_ADS_CUSTOMER_ID for this call (no dashes) |
Implementation Reference
- src/tools/accounts.ts:21-37 (handler)The main handler function for 'gads_account_info'. It gets a Google Ads customer (optionally overridden by customer_id), queries the customer table for basic account info (id, name, currency, timezone, auto_tagging, manager flag, test_account, status), and returns the first row.
export async function accountInfo(args: z.infer<z.ZodObject<typeof accountInfoSchema>>) { const customer = getCustomer(args.customer_id); const rows = await customer.query(` SELECT customer.id, customer.descriptive_name, customer.currency_code, customer.time_zone, customer.auto_tagging_enabled, customer.manager, customer.test_account, customer.status FROM customer LIMIT 1 `); return rows[0] ?? null; } - src/tools/accounts.ts:17-19 (schema)Input schema for 'gads_account_info' – optional customer_id override parameter.
export const accountInfoSchema = { customer_id: z.string().optional().describe("Override GOOGLE_ADS_CUSTOMER_ID for this call (no dashes)"), }; - src/index.ts:71-76 (registration)Registration of the 'gads_account_info' tool with the MCP server, wiring the schema and handler.
server.tool( "gads_account_info", "Get basic info for the current Google Ads account: name, currency, timezone, manager flag, status.", accountInfoSchema, async (args) => { try { return ok(await accountInfo(args)); } catch (e) { return err(e); } } );