Labsco
DigitalRocket-biz logo

Google Ads API v20

โ˜… 11

from DigitalRocket-biz

Provides full access to the Google Ads API v20. Requires OAuth2 or Service Account credentials for configuration.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

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

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

pytest tests/

Adding New Tools

  1. Add tool definition to _register_tools() in tools.py
  2. Implement the handler method
  3. Update documentation

Debugging

# Run with debug logging
export LOG_LEVEL=DEBUG
python -m google-ads-mcp

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

Support

For issues and questions: