Google Ads search terms and n-grams
get_google_ads_search_termsUse this when the user asks what people searched before their Google Ads showed, which search terms waste money, or which words convert. Returns the search terms of the linked Google Ads accounts across Search, Shopping and Performance Max (filter: all, non-converting with spend, converting), or with ngram 1, 2 or 3 the n-gram mining: every term's metrics summed into each distinct word or word sequence it contains, which finds negative keyword candidates across many terms at once. Includes how much of the campaign cost the visible terms explain. Money is in currency (see currencyMixed); ctr and conversionRate are 0-100 percentages. For the same terms next to organic rankings use get_paid_vs_organic. Date range is optional: omit startDate/endDate to analyze the last 28 settled days (data lags ~2-3 days).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteUrl": "<siteUrl>"
},
"name": "get_google_ads_search_terms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows to return, by cost (default 50). | |
| ngram | No | Return n-grams of this length instead of whole terms (1 = single words). | |
| filter | No | Terms only: "non_converting" = spend and zero conversions (negative keyword candidates). | all |
| endDate | No | Optional. Window end as YYYY-MM-DD (e.g. 2026-05-31). You do NOT need to know today's date or the latest available date: omit this and the server uses the latest settled Search Console date (data lags ~2-3 days behind today). Never pass null or the string "null". | |
| siteUrl | Yes | The property URL as returned by list_sites. | |
| contains | No | Only terms or n-grams containing this text (case-insensitive). | |
| startDate | No | Optional. Window start as YYYY-MM-DD (e.g. 2026-05-03). You do NOT need to know today's date. Omit BOTH startDate and endDate to analyze the last 28 settled days automatically (Search Console data lags ~2-3 days). Never pass null or the string "null". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| mode | No | ||
| rows | No | ||
| range | No | ||
| reason | No | ||
| thenBy | No | ||
| totals | No | ||
| hasMore | No | ||
| listKey | No | Name of the top-level field that holds the rows sortedBy describes. | |
| siteUrl | No | ||
| accounts | No | ||
| currency | No | The currency every money figure is in: the property's report currency when accounts in other currencies were converted (see currencyConversion), the accounts' one currency otherwise; null when money mixes currencies (see currencyMixed) or no currency is known yet. | |
| dataNote | No | ||
| nextStep | No | ||
| ordering | No | ||
| rowCount | No | ||
| sortedBy | No | ||
| sortOrder | No | ||
| thenOrder | No | ||
| coveragePct | No | ||
| campaignCost | No | ||
| coverageNote | No | ||
| emptyBecause | No | ||
| methodLimits | No | ||
| currencyMixed | No | True when the linked accounts use different currencies and money could not be converted: totals and rows then add amounts in different currencies and must not be shown as one currency (compare per account instead). Null when the tool returns no money. | |
| notConfigured | No | ||
| accessLostNote | No | The sentence about hiddenAccounts, also in dataNote; null when none is hidden. | |
| hiddenAccounts | No | Linked accounts left out of every figure because Google has refused the login that linked them for more than 7 days (nothing is deleted; link again with a Google account that has access, or unlink). | |
| historyGapNote | No | Set when a month inside the window is missing from an account's stored history because Google refused it: figures for that period are incomplete, not zero. Also in dataNote. | |
| currencyWarning | No | Why money could not be converted, when currencyMixed is true. | |
| nonConvertingCost | No | ||
| currencyConversion | No | Set when money of accounts in another currency was converted to the report currency; null otherwise. |