Skip to main content
Glama

Google Ads MCP Server

by martechery

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GOOGLE_ADS_AUTH_TYPEYesAuthentication type for Google Ads API
GOOGLE_ADS_API_VERSIONNoAPI version override (default v19). Example: v21v19
GOOGLE_ADS_CUSTOMER_IDNo10‑digit Ads customer ID. If omitted, tools will list accessible accounts and ask you to pick one
GOOGLE_ADS_ACCESS_TOKENNoDirect token override for dev/tests (bypasses ADC)
GOOGLE_ADS_GCLOUD_USE_CLINoOptional CLI token fallback (true/false)
GOOGLE_ADS_DEVELOPER_TOKENYesDeveloper token (required for Ads API calls)
GOOGLE_ADS_CREDENTIALS_PATHNoRequired for oauth and service_account modes - path to credentials file
GOOGLE_ADS_LOGIN_CUSTOMER_IDNoManager (MCC) account ID; only needed when acting on a child through an MCC

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
manage_auth

Manage Google Ads auth: status; switch/refresh via gcloud; set_project/set_quota_project; optional oauth_login using env client id/secret to create ADC file.

execute_gaql_query

Execute GAQL. Aliases accepted: customerId, pageSize, pageToken, autoPaginate, maxPages, outputFormat.

get_performance

Get performance (level: account|campaign|ad_group|ad). Aliases accepted: customerId, pageSize, pageToken, autoPaginate, maxPages, outputFormat.

list_resources

List GAQL FROM-able resources via google_ads_field (category=RESOURCE, selectable=true) or list accounts. output_format=table|json|csv.

gaql_help

Targeted GAQL guidance from Google docs. Hints: set quick_tips=true for offline cheat-sheet; topics=[overview,grammar,structure,date_ranges,case_sensitivity,ordering,cookbook].

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/martechery/mcp-google-ads-ts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server