Skip to main content

n8n - Using Google Ads (incl. Microsoft and Meta Ads) with n8n AI Agents

How to Use Google Ads MCP within n8n

Ales Sturala avatar
Written by Ales Sturala
Updated this week

This guide walks you through using the hosted version of the Google Ads MCP by TrueClicks in n8n. With just a few simple steps, you'll be able to access Google Ads data via AI agents in n8n.


1. Generate GPT Token with GAQL.app

What is GAQL.app?

GAQL.app is a free, easy-to-use interface for querying Google/Microsoft/Meta Ads accounts. It’s built by TrueClicks to simplify working with marketing API data.

Why use it?

  • Free to use

  • Built for advertisers, developers, and analysts

  • Great for creating reports or writing automation scripts

  • Friendly interface for GAQL

Steps to Create GPT Token

  1. Log in with your Google/Microsoft/Meta account

  2. At the top-right corner, click on COPY GPT TOKEN

This token enables secure, read-only access to your account via AI-based tools using MCP.


2. Configure MCP in n8n Workflow

  1. In n8n, create a new workflow

  2. Add a node called AI Agent to your workflow

  3. Double-click on the MCP sub-node in the AI Agent

  4. Use the following configuration:

    • SSE Endpoint:

      • For Google Ads use:

        https://mcp.gaql.app/sse/google-ads

      • For Microsoft Ads use:

        https://mcp.gaql.app/sse/microsoft-ads

      • For Meta Ads use:

        https://mcp.gaql.app/sse/meta-ads

    • Authentication:
      Select Bearer authentication.

    • Credentials:

      • Click "Create New"

      • In the Bearer Token field, paste your GPT Token from GAQL.app

That’s it - your AI Agent is now connected to the hosted MCP server!


3. Setting up the AI Agent Prompt

To get the most accurate and useful Google/Microsoft/Meta Ads responses, configure your AI Agent's behavior with a well-crafted System Message.

Recommended System Message

  • For Google Ads use:

    You are a senior Google Ads PPC specialist. For date range use explicit dates 'BETWEEN' in GAQL query.

    Today is {{ $today }}.
  • For Microsoft Ads use:

    You are a senior Microsoft Ads PPC specialist.

    Use *bulk report* tool for account structure and entities (account, campaigns, ad groups, keywords, ads, etc.). Does NOT include performance metrics. DOES include 0 impression entities. It uses directly the Microsoft Advertising Bulk API.

    Use *performance report* tool to get data with metrics like impressions, clicks, conversions, and costs. Does NOT include 0 impression entities. It uses directly the Microsoft Advertising Reporting API.

    Today is {{ $today }}.
  • For Meta Ads use:

    You are a senior Meta Ads PPC specialist. Provided tools use directly the Meta Marketing Rest API.

    Today is {{ $today }}.

This primes the AI Agent to return precise API queries tailored to your account and timeframe.


💬 Questions or Technical Issues?

If you have any questions, or encounter any technical issues, please contact:

Did this answer your question?