google-ads-mcpのロゴ

google-ads-mcp

組織
promobase

A typed MCP server for letting AI agents operate Google Ads.

公開者promobase
リポジトリgoogle-ads-mcp
言語Python
フォーク
16
スター
22
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    google-ads-mcpは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには22件のスターと16件のフォークがあります。

google-ads-mcp

A typed MCP server for letting AI agents operate Google Ads.

Built by Promobase for OpenPromo, the AI-native workspace for creating, publishing, and managing ads.

Python Google Ads API FastMCP CI License


What

google-ads-mcp wraps the official Google Ads Python SDK in a Model Context Protocol server. It exposes Google Ads API v20 services as typed MCP tools, so LLMs and agent runtimes can safely inspect accounts, create campaigns, manage budgets, upload conversions, work with assets, and run GAQL search.

This repo is the Google Ads execution layer behind OpenPromo's agent workflows. For application-facing, multi-platform ad publishing and inbox automation, use the companion SDK:

@promobase/ad-platforms - one TypeScript SDK for Meta, TikTok, and soon Google Ads, with AI SDK tools and production clients for ad platform automation.

Why

Google Ads has a large, typed API surface, but it is hard for agents to use directly. This server keeps the reliability of the official Python SDK while giving agents a structured tool interface:

  • Official SDK foundation - built on google-ads, including its auth, retries, paging, and protobuf types.
  • Typed service wrappers - implementations use Google Ads API v20 generated service, resource, enum, and operation types.
  • Agent-ready MCP tools - FastMCP servers grouped by workflow: core, assets, targeting, bidding, planning, reporting, conversions, account management, and more.
  • GAQL access - search and metadata tools for reporting, discovery, and account inspection.
  • Production-oriented scope - designed for OpenPromo's ads loop: generate creative, build campaigns, publish, measure, and iterate.

Coverage

Current tracker status:

AreaStatus
Google Ads API versionv20
Implemented services90 / 103
Coverage model1:1 service mapping where implemented
Type policyGenerated Google Ads protobuf types
Feature paritydocs/FEATURE_PARITY.md
Detailed auditTRACKER.md

Core campaign, ad group, ad, budget, keyword, conversion, asset, audience, recommendation, account, billing, and reporting workflows are implemented. The scannable parity table lives in docs/FEATURE_PARITY.md; detailed implementation notes live in TRACKER.md.

Install

bash
git clone https://github.com/promobase/google-ads-mcp.git
cd google-ads-mcp
uv sync

Create a .env file or export the required Google Ads credentials:

bash
GOOGLE_ADS_DEVELOPER_TOKEN="your_developer_token"
GOOGLE_ADS_CLIENT_ID="your_client_id"
GOOGLE_ADS_CLIENT_SECRET="your_client_secret"
GOOGLE_ADS_REFRESH_TOKEN="your_refresh_token"
GOOGLE_ADS_LOGIN_CUSTOMER_ID="optional_manager_customer_id"

See .env.example for the full credential template.

Run

Run the default core tool group:

bash
uv run main.py

Run every registered service group:

bash
uv run main.py --groups all

Run a focused subset:

bash
uv run main.py --groups core,assets,targeting,conversion

Available groups:

GroupIncludes
coreCustomers, campaigns, budgets, ad groups, keywords, ads, conversions, GAQL
assetsAssets, asset groups, asset sets, campaign/ad group/customer assets
targetingCriteria, geo targets, audiences, custom interests, user lists
biddingStrategies, bid modifiers, data exclusions, seasonality adjustments
planningKeyword plans, reach planning, brand suggestions
reportingSearch, fields, recommendations, invoices, audience insights
conversionUploads, adjustments, value rules, goals, user data, remarketing
organizationLabels, shared sets, shared criteria
customizersCustomizer attributes, campaign/ad group/customer customizers, ad parameters
accountAccess, manager links, billing, payments, identity, product/data links
otherSmart campaigns, batch jobs, user data

MCP Client

Example stdio configuration:

json
{
  "mcpServers": {
    "google-ads": {
      "command": "uv",
      "args": ["run", "main.py", "--groups", "all"],
      "cwd": "/path/to/google-ads-mcp",
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "...",
        "GOOGLE_ADS_CLIENT_ID": "...",
        "GOOGLE_ADS_CLIENT_SECRET": "...",
        "GOOGLE_ADS_REFRESH_TOKEN": "..."
      }
    }
  }
}

Use narrower groups for production agents when you want to reduce tool count and keep routing focused.

Development

bash
# Format
uv run ruff format .

# Type check
uv run pyright

# Test
uv run pytest

When adding a service:

  1. Check the Google Ads API v20 generated service types.
  2. Implement the service wrapper with generated protobuf request, operation, resource, and enum types.
  3. Register lightweight MCP tools for the service.
  4. Add focused tests.
  5. Update TRACKER.md.
  6. Run uv run ruff format . and uv run pyright.

Related

ProjectDescription
OpenPromoAI-native workspace for creating, publishing, and managing ads
@promobase/ad-platformsTypeScript ad platform SDK with AI SDK tools for Meta, TikTok, and Google Ads work
promobase/ad-platform-sdksSource repo for Promobase's multi-platform ad SDKs

License

MIT © Promobase

Disclaimer

This is an unofficial Google Ads API integration. It is not affiliated with, endorsed by, or supported by Google.

インストール

TypingMind
{
  "mcpServers": {
    "google-ads-mcp": {
      "command": "uv",
      "args": [
        "run",
        "main.py",
        "--groups",
        "all"
      ],
      "env": {
        "GOOGLE_ADS_DEVELOPER_TOKEN": "<GOOGLE_ADS_DEVELOPER_TOKEN>",
        "GOOGLE_ADS_CLIENT_ID": "<GOOGLE_ADS_CLIENT_ID>",
        "GOOGLE_ADS_CLIENT_SECRET": "<GOOGLE_ADS_CLIENT_SECRET>",
        "GOOGLE_ADS_REFRESH_TOKEN": "<GOOGLE_ADS_REFRESH_TOKEN>"
      }
    }
  }
}

google-ads-mcpのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度google-ads-mcpに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

google-ads-mcpをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. google-ads-mcpのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "google-ads-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてgoogle-ads-mcpのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. google-ads-mcpのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
google-ads-mcpを使ってこのタスクを手伝ってもらえますか?
google-ads-mcp
はい、読みました。
google-ads-mcpで調べた結果をお伝えします。

よくある質問

google-ads-mcp MCPサーバーは何に使いますか?

google-ads-mcpは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでgoogle-ads-mcp MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでgoogle-ads-mcpを利用できます。

TypingMindでgoogle-ads-mcp MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。google-ads-mcpを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

google-ads-mcp MCPをTypingMindに接続するにはどうすればよいですか?

google-ads-mcpはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでgoogle-ads-mcp MCPのどのようなツールを利用できますか?

google-ads-mcpはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

google-ads-mcp MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。google-ads-mcpで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇