The new Search Ads 360 Reporting API is now available. Join the searchads-api-announcements Google group to stay up to date on upcoming enhancements and releases.
Stay organized with collections
Save and categorize content based on your preferences.
The table below contains a complete Search Ads 360 Query Language grammar
reference.
Grammar reference
Query
SELECT clause
SELECT FIELD_NAME (, FIELD_NAME)*
FROM clause
FROM RESOURCE_NAME
WHERE clause
WHERE CONDITION (AND CONDITION)*
ORDER BY clause
ORDER BY ORDERING (, ORDERING)*
LIMIT clause
LIMIT POSITIVE_INTEGER
PARAMETERS clause
PARAMETERS LITERAL = VALUE (, LITERAL = VALUE)*
Field name
[a-z] ([a-zA-Z0-9._])*
Resource name
[a-z] ([a-zA-Z_])*
Condition
FIELD_NAMEOPERATORVALUE
Ordering
FIELD_NAME (ASC | DESC)?
Operator
= | != | > | >= | < | <= | IN | NOT IN | LIKE | NOT LIKE | CONTAINS ANY | CONTAINS ALL | CONTAINS NONE | IS NULL | IS NOT NULL | DURING | BETWEEN | REGEXP_MATCH | NOT REGEXP_MATCH
To match a [, ], %, or _ literal using the LIKE operator, surround
the character in square brackets. For example, the following condition matches
all campaign.name values that start with [Earth_to_Mars]:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["This document provides a comprehensive grammar reference for the Search Ads 360 Query Language."],["The language allows users to query data using a structured syntax including clauses like `SELECT`, `FROM`, `WHERE`, `ORDER BY`, `LIMIT`, and `PARAMETERS`."],["Various data types like numbers, strings, and lists are supported within the query structure for filtering and data retrieval."],["Specific operators and functions enable detailed data manipulation, such as date ranges (`LAST_30_DAYS`) and pattern matching (`REGEXP_MATCH`)."],["The provided table details the syntax and components of the query language, along with explanations of special characters and usage examples."]]],[]]