Skip to main content
Glama
martechery

Google Ads MCP Server

by martechery

execute_gaql_query

Run Google Ads Query Language (GAQL) queries to retrieve campaign data, performance metrics, and account information with pagination support and multiple output formats.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
autoPaginateNoAlias of auto_paginate.
auto_paginateNofetch multiple pages automatically
customerIdNoAlias of customer_id.
customer_idNo10-digit customer ID (no dashes). Optional.
maxPagesNoAlias of max_pages.
max_pagesNolimit when auto_paginate=true (1-20)
outputFormatNoAlias of output_format.
output_formatNorender formattable
pageSizeNoAlias of page_size.
pageTokenNoAlias of page_token.
page_sizeNooptional page size (1-10000)
page_tokenNooptional page token
queryYesGAQL query string. Examples: SELECT campaign.id, campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_30_DAYS LIMIT 10 SELECT ad_group_ad.ad.id, metrics.impressions FROM ad_group_ad WHERE campaign.status = 'ENABLED' LIMIT 50

Latest Blog Posts

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