The Google Ads MCP Server is an implementation of the Model Context Protocol (MCP) that enables Large Language Models (LLMs), such as Gemini, to interact directly with the Google Ads API.
# Add to your Claude Code skills
git clone https://github.com/google-marketing-solutions/google_ads_mcpThe Google Ads MCP Server is an implementation of the Model Context Protocol (MCP) that enables Large Language Models (LLMs), such as Gemini, to interact directly with the Google Ads API.
This is not an officially supported Google product.
Copyright Google LLC. Supported by Google LLC and/or its affiliate(s). This solution, including any related sample code or data, is made available on an “as is,” “as available,” and “with all faults” basis, solely for illustrative purposes, and without warranty or representation of any kind. This solution is experimental, unsupported and provided solely for your convenience. Your use of it is subject to your agreements with Google, as applicable, and may constitute a beta feature as defined under those agreements. To the extent that you make any data available to Google in connection with your use of the solution, you represent and warrant that you have all necessary and appropriate rights, consents and permissions to permit Google to use and process that data. By using any portion of this solution, you acknowledge, assume and accept all risks, known and unknown, associated with its usage and any processing of data by Google, including with respect to your deployment of any portion of this solution in your systems, or usage in connection with your business, if at all. With respect to the entrustment of personal information to Google, you will verify that the established system is sufficient by checking Google's privacy policy and other public information, and you agree that no further information will be provided by Google.
Follow these instructions to configure and run the Google Ads MCP Server.
This project needs Python 3.12 with pipx or uv.
This project uses for dependency management.
No comments yet. Be the first to share your thoughts!
Install uv and then run the following command to install the required Python packages:
uv pip sync
This tool requires you to have a google-ads.yaml file with your Google Ads API credentials. By default, the application will look for this file in your home directory.
If you don't have one, you can generate it by running the following example from the google-ads-python library:
authentication example
Make sure your google-ads.yaml file contains the following keys:
client_idclient_secretrefresh_tokendeveloper_tokenlogin_customer_id (optional, but recommended)Update your Gemini configuration to include the google-ads-mcp server. The following is an example of a local MCP server configuration:
{
// Other configs...
"mcpServers": {
"GoogleAds": {
"command...