SCALIX help

← All tools

gads_get_keyword_quality_scores

Google Ads read low risk

Part of the Quality Score Agent.

What it does

Per-keyword Quality Score (1-10) WITH its three components — expected CTR (search_predicted_ctr), ad relevance (creative_quality_score) and landing-page experience (post_click_quality_score), each BELOW_AVERAGE / AVERAGE / ABOVE_AVERAGE — plus impressions, clicks, cost, conversions, conversion value, CTR and avg CPC over the date range, so the low-QS keywords that actually carry traffic stand out. Every row gets qs_flag: 'low' (QS <= 4 or any component BELOW_AVERAGE), 'ok', or null when Google has not scored the keyword (not enough recent Search traffic). Sorted by impressions descending; min_impressions hides the long tail. Built for the CRO landing-page workflow (see cro_collect_brief): a BELOW_AVERAGE landing-page experience is Google's own signal that the PAGE, not the ad, is the problem. Money is micros (/1e6); reconciles to the Google Ads UI keyword columns within +/-1%. Returns {success, data:[{ad_group_criterion{keyword, status, final_urls, quality_info}, ad_group, campaign, metrics, qs_flag}], count, warnings}.

When to use it

Use for CRO and landing-page audits (the post_click_quality_score component), or whenever the user asks which keywords have a low Quality Score and WHY. Prefer it over gads_list_keywords(include_quality_score=true), which returns only the overall score.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit Google Ads customer ID (CID), dashes stripped. Server-derived tenant context + RLS.
campaign_idstringnoRestrict to one campaign.
ad_group_idstringnoRestrict to one ad group.
date_rangestringnoGAQL macro (LAST_7_DAYS/LAST_14_DAYS/LAST_30_DAYS/THIS_MONTH/LAST_MONTH), LAST_N_DAYS, or explicit YYYY-MM-DD,YYYY-MM-DD. Defaults to LAST_30_DAYS (a warning says so); ALL_TIME removes the date filter.
min_impressionsintegernoHide keywords with fewer impressions in the range (numeric GAQL threshold on metrics.impressions). Omitted = no threshold.
limitintegernoGAQL LIMIT cap; default 500 (a warning says when the cap was hit).
manager_idstringnoManager (MCC) CID to use as login-customer-id when the account is reachable only through a manager. Usually omitted (resolved automatically).

Safeguards

Policy

Read-only. Never fabricate or approximate a Quality Score or a metric; if a figure can't be reconciled to the Google Ads UI within +/-1%, say so. A missing quality_score means Google has not scored the keyword — report it as 'not scored', never as 0.

Reminder

Quality Score is a diagnostic, not a target: fix the component that is BELOW_AVERAGE (landing-page experience -> the page; ad relevance -> the ad copy; expected CTR -> keyword/ad match). Money is micros/1e6 in the account currency; cite the date range with every number.

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDAccount {customer_id} not found or not linked.Verify the CID and that the account is connected and enabled for Claude in the Scalix console.no
needs_reauthAuthorization expired or revoked.Reconnect Google Ads in the Scalix dashboard.no
INVALID_ARGUMENTMalformed date_range or filter.Fix the argument (date_range as a GAQL macro or YYYY-MM-DD,YYYY-MM-DD; ids as digits) and retry.no
MANAGER_ACCOUNT_METRICS_UNSUPPORTEDManager (MCC) accounts return no metrics.Query a child account (see gads_get_account_hierarchy).no
PERMISSION_DENIEDThe authenticated user lacks access to this account.Check account access in Google Ads, then reconnect.no
RESOURCE_EXHAUSTEDRate/quota limit hit.Back off and retry in a minute.yes

Edge cases

  • Keywords with little recent Search traffic have no Quality Score (quality_info absent -> qs_flag null); normal on new or low-volume accounts.
  • Only Search keywords are scored; keywords in other campaign types return null scores.
  • Quality Score is Google's current value, not a historical average; the metrics are for the date range.
  • count:0 with success:true means no keyword matched the filters — relax min_impressions or widen date_range.