Use this n8n workflow template to create an AI Agent tool server for Google Ads. Features dynamic campaign retrieval using the specialized n8n trigger (MCP).
Download this n8n workflow template and start using it instantly.
This powerful n8n workflow is engineered to function as a Multi-Tool Communication Protocol (MCP) server, enabling external AI agents to securely and dynamically execute actions against the Google Ads API. By utilizing a specific n8n trigger, this server allows AI systems (like those powered by LangChain or custom models) to request specific Google Ads operations—such as retrieving a list of all campaigns or getting details for a single campaign. This design eliminates the need for manual API integration within the AI's codebase. The logic built into this n8n template automatically extracts parameters provided by the AI agent using the $fromAI() expression, directing them seamlessly into the Google Ads Tool n8n node. This approach maximizes operational efficiency and demonstrates an advanced application of the n8n node ecosystem for AI integration.
The core of this automation is the Multi-Tool Communication Protocol (MCP) n8n trigger, which initializes the n8n workflow. This n8n trigger is configured to listen on a dedicated webhook path (google-ads-tool-mcp). When an external AI agent requires Google Ads information, it sends a structured request to this webhook, specifying the desired operation (e.g., get or getAll campaigns).
$fromAI() expression to dynamically retrieve necessary parameters (like ClientCustomerId or Campaign_Id) sent by the AI agent.To deploy this powerful n8n workflow, follow these steps:
This n8n workflow relies on three primary node types to create the functional AI tool server:
Google Ads Tool MCP Server (mcpTrigger):
Function: Serves as the initial n8n trigger and final response handler for the AI agent.
Key Configuration: Configured with the path /google-ads-tool-mcp. It automatically handles the routing requests to the specific connected tool nodes based on the AI's intent.
Get many campaigns (Google Ads Tool n8n node):
Function: Executes the getAll operation for campaigns, retrieving a list of all available campaigns under the specified customer ID.
Key Configuration: Uses the expression ={{ $fromAI('ClientCustomerId', , 'string') }} to dynamically fetch the required customer ID from the AI agent's request. This ensures flexible use across different accounts.
Get a campaign (Google Ads Tool n8n node):
Function: Executes the get operation, retrieving detailed information for a single, specific campaign.
* Key Configuration: This n8n node uses dynamic parameter fetching for both ClientCustomerId and the crucial Campaign_Id via the $fromAI() expressions, demonstrating how the n8n workflow accurately parses complex instructions from the AI.
Automate legal case research extraction using an n8n workflow leveraging Bright Data MCP for advanced web scraping and Google Gemini for structured data parsing and summarization.

Use this powerful n8n workflow to schedule and automatically send daily inspirational quotes via Gmail. A perfect starter n8n template for learning core automation concepts.

Master data flow in n8n with this educational n8n workflow template. Learn to use the Merge, IF, and Switch n8n node components for complex routing and sorting logic.

Deploy a powerful Copper CRM operations library using this comprehensive n8n workflow. Enable AI agents to perform 30+ actions on leads, contacts, and opportunities via the n8n MCP server architecture.

A hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord







































