The Run GAQL Query node lets you execute custom Google Ads Query Language (GAQL) queries directly against the Google Ads API. This advanced node provides access to all resources and fields that Google Ads API offers, giving you complete flexibility when the standard Get Report node doesn’t have the data you need.


When to Use It

Use this node when:

  • Data isn’t available in Get Report: You need specific fields, resources, or data combinations not supported by the standard reporting node
  • Advanced filtering requirements: You need complex WHERE clauses or JOIN operations beyond basic filters
  • Custom data relationships: You want to fetch data from multiple Google Ads resources in a single query
  • Specific API resources: You need access to account structure, extensions, keywords, ads, or other non-reporting resources
  • Expert-level control: You’re comfortable with GAQL syntax and want full control over your data queries

What is GAQL?

Google Ads Query Language (GAQL) is a SQL-like query language that lets you retrieve data from the Google Ads API. It provides:

  • Direct API access: Query any resource available in the Google Ads API
  • Flexible data selection: Choose exactly which fields you want to retrieve
  • Advanced filtering: Use complex WHERE conditions with multiple operators
  • Resource relationships: Access related data across different Google Ads entities
  • Performance optimization: Write efficient queries for large datasets

Inputs

FieldTypeRequiredDescription
AccountSingle-selectYesSelect one Google Ads account to query
GAQL QueryText areaYesEnter the GAQL query to execute

The easiest way to create GAQL queries is using Google’s visual Query Builder tool:

Access Google Ads Query Builder

The Query Builder lets you:

  • Generate queries visually: Select resources and fields through a user interface - no coding required
  • Validate syntax: Ensures your queries are properly formatted
  • Discover available fields: Browse all available resources and their fields
  • Test queries: Verify your queries before using them in workflows
  • Learn GAQL: See how your selections translate to GAQL syntax

How to use it:

  1. Visit the Query Builder link above
  2. Select your resource (e.g., “campaign”, “ad_group”, “keyword_view”)
  3. Choose the fields you want to retrieve
  4. Add any filters or conditions
  5. Copy the generated query and paste it into this node

Example Queries:

1. Get all campaigns with their status

SELECT campaign_id, campaign_name, campaign_status 
FROM campaign 
WHERE campaign_status != 'REMOVED'

2. Get keywords with quality scores

SELECT ad_group_criterion_keyword_text, 
       ad_group_criterion_quality_info_quality_score,
       campaign_name
FROM keyword_view 
WHERE ad_group_criterion_quality_info_quality_score > 5

Output

The node returns raw data from the Google Ads API based on your GAQL query. The output structure depends entirely on the fields you select in your query.

Sample Output:

campaign_idcampaign_namecampaign_statusimpressionsclicks
123456789Holiday Campaign 2024ENABLED15,432876
987654321Summer Sale 2024ENABLED8,901234
456789123Brand AwarenessPAUSED12,345345

Can be passed to:

  • AI Analyze Data for insights and analysis
  • Google Sheets for detailed data export
  • Data transformation nodes for further processing
  • Email or Slack for reporting

Credit Cost

  • Cost per run: 1 credit (per successful execution)

Example Setup

Scheduler (Daily 6 AM) →
Run GAQL Query →
AI Analyze Data →
Google Sheets →
Email Summary

FAQs