Provides full access to Google Ads API v20 functionality, enabling comprehensive account management, campaign and ad group CRUD operations, ad creation, asset and budget management, keyword management, and advanced reporting via GAQL queries.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Ads API v20 MCP ServerShow me the performance of my active campaigns for the last 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Ads API v20 MCP Server
A comprehensive Model Context Protocol (MCP) server that provides full access to Google Ads API v20 functionality. This server enables AI assistants to perform any Google Ads operation through natural language commands.
Features
Complete API Coverage
Account Management: List accounts, get account info, view hierarchy
Campaign Management: Create, update, pause/resume campaigns with all v20 features
Ad Group Management: Full CRUD operations for ad groups
Ad Creation: Responsive search ads, expanded text ads, and more
Asset Management: Upload and manage images, text assets
Budget Management: Create and manage shared budgets
Keyword Management: Add keywords, negative keywords (including Performance Max campaign-level negatives)
Reporting & Analytics: Custom GAQL queries, performance reports, search terms
Advanced Features: Recommendations, change history, experiments
Intelligent Features
Automatic Retry Logic: Handles transient errors with exponential backoff
Error Documentation: Links to official Google Ads API error documentation
Partial Failure Handling: Continues processing when some operations fail
Token Auto-Refresh: Automatically refreshes OAuth tokens
Self-Rewriting: Can look up documentation and retry failed operations
Installation
Configuration
Environment Variables
Create a .env file or set these environment variables:
Configuration File
Alternatively, create a config file at ~/.config/google-ads-mcp/config.json:
MCP Configuration
Add to your Claude Desktop config (~/.config/claude/mcp.json):
Usage Examples
Basic Operations
Advanced Queries
Performance Max Features (v20)
Error Handling
The server provides detailed error information:
Error type and code
Human-readable message
Whether the error is retryable
Link to official documentation
Suggestions for fixing common errors
Development
Running Tests
Adding New Tools
Add tool definition to
_register_tools()intools.pyImplement the handler method
Update documentation
Debugging
Security Notes
Never commit credentials to version control
Use service accounts for production environments
Enable 2FA on Google Ads accounts
Regularly rotate refresh tokens
Monitor API usage and set alerts
API Version Support
This server is built for Google Ads API v20 (released June 2025) and includes:
Campaign-level negative keywords for Performance Max
Enhanced Demand Gen reporting with channel segmentation
Platform comparable conversions
All v20-specific features and improvements
License
MIT License - See LICENSE file for details
Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Add tests for new functionality
Submit a pull request
Support
For issues and questions:
Check the Google Ads API documentation
Review error messages and documentation links
Open an issue on GitHub