A template for categorizing search queries and identifying wasted spend from poor match types.
For Google Ads managers who suspect broad match and close variants are spending budget on the wrong searches.
Clicks, impressions and cost split five ways: exact match, phrase match, broad match, close variants and hidden traffic (what Google does not report for privacy). It writes keyword-level, ad group-level and campaign-level tabs, plus a dashboard tab for the overview.
Yes, with LOOKBACK_DAYS. The script caps it at 360 days so it does not time out.
Google Ads uses its own labels such as "exact match (close variant)", which the API does not expose. The script compares the search-term text with your keyword directly, which is stricter.
Most failures are a wrong spreadsheet URL, missing quotes or missing sheet permissions. Check the script log in Google Ads for the exact error.
Related: Google Ads Match Analyzer · Search Campaign Checklist