This free GCLID checker tells you whether the click IDs in your CRM are real clicks from your Google Ads account. Paste in your GCLIDs, pick a date range, and a read-only Google Ads Script reports a match or no match for each one, plus the click date and campaign. It takes about five minutes. Jump to the script.
How do I find out if a GCLID came from a specific Google Ads account?
Search that account’s click data for the GCLID. If click_view returns the click, it belongs to that account. Google doesn’t document a way to read the account from the GCLID itself, so you have to check from inside the account.
This script does that check. If you manage more than one account, run it in each one, because the Google Ads API team says click_view only returns clicks for the account you query.
Two limits matter. Google’s documentation only allows dates back to 90 days, and GCLIDs aren’t available in this report for App Campaigns for Installs or Pre-registration. So a NO MATCH doesn’t prove the click came from somewhere else unless the click date falls inside the range you checked.
What the GCLID checker does
I couldn’t find a screen in Google Ads that answers “is this GCLID ours?” The click-level report that does, click_view, is available through the API and Google Ads Scripts. Google’s own troubleshooting guide points to it for checking which account a GCLID belongs to.
The script runs inside your Google Ads account. For the click IDs you give it, it:
- Loops through each day in your date range.
- Pulls every click recorded that day, along with its campaign.
- Checks whether each of your click IDs appears.
- Logs clicks scanned per day, MATCH or NO MATCH for each ID, and a final total.
It loops by day because Google requires click_view queries to be limited to one day. A 4-week range is about 28 quick queries. The script doesn’t change anything in your account, and it’s meant to be run in Preview.
The free GCLID checker script
Replace the example IDs with your own and set your date range.
/**
* GCLID checker (read-only).
*
* Checks whether a list of click IDs exists as real clicks in THIS Google Ads
* account, using the click_view report.
*
* HOW TO USE
* 1. Paste your click IDs into CLICK_IDS (one per line, in quotes).
* 2. Set START_DATE and END_DATE to cover the days those clicks happened.
* click_view only keeps roughly the last 90 days.
* 3. Click Authorize, then Preview (not Run). Read the Logs tab.
*
* It does not modify your account.
*/
// ---- EDIT THESE ----------------------------------------------------------
var CLICK_IDS = [
'PASTE_FIRST_CLICK_ID_HERE',
'PASTE_SECOND_CLICK_ID_HERE'
];
var START_DATE = '2026-10-01'; // yyyy-mm-dd, account time zone
var END_DATE = '2026-10-28'; // yyyy-mm-dd, inclusive
// --------------------------------------------------------------------------
function main() {
// Clean up the list: trim spaces, split doubled "id,id" values, drop blanks,
// and remove duplicates.
var wanted = {};
var ids = [];
CLICK_IDS.forEach(function (raw) {
String(raw).split(',').forEach(function (part) {
var id = part.trim();
if (id && !wanted[id]) {
wanted[id] = true;
ids.push(id);
}
});
});
if (ids.length === 0) {
Logger.log('No click IDs to check. Add some to CLICK_IDS.');
return;
}
var found = {};
var days = listDays(START_DATE, END_DATE);
days.forEach(function (day) {
// click_view allows only one day per query.
var query =
"SELECT click_view.gclid, campaign.name, segments.date " +
"FROM click_view " +
"WHERE segments.date = '" + day + "'";
var rows = AdsApp.search(query);
var scanned = 0;
while (rows.hasNext()) {
var row = rows.next();
scanned++;
var gclid = row.clickView.gclid;
if (wanted[gclid]) {
found[gclid] = day + ' | ' + row.campaign.name;
}
}
Logger.log(day + ': ' + scanned + ' clicks scanned');
});
// Report
var hits = 0;
ids.forEach(function (id) {
var label = id.substring(0, 20) + '...';
if (found[id]) {
hits++;
Logger.log('MATCH ' + label + ' -> ' + found[id]);
} else {
Logger.log('NO MATCH ' + label);
}
});
Logger.log('TOTAL: ' + hits + ' of ' + ids.length +
' click IDs found in this account.');
}
// Returns every yyyy-mm-dd between start and end, inclusive.
function listDays(start, end) {
var out = [];
var d = new Date(start + 'T12:00:00Z'); // noon UTC avoids DST edge cases
var last = new Date(end + 'T12:00:00Z');
while (d <= last) {
out.push(d.toISOString().substring(0, 10));
d.setUTCDate(d.getUTCDate() + 1);
}
return out;
}
How to run it in Google Ads
- Open the account you want to check, not a manager account view.
- Go to Tools, then Bulk actions, then Scripts.
- Click the blue + button, then New script.
- Delete the starter code and paste in the script, with your click IDs and dates filled in.
- Click Authorize and approve the permission.
- Click Preview, not Run, then open the Logs tab.
Your log will end something like this (example data):
2026-10-27: 92 clicks scanned
2026-10-28: 78 clicks scanned
MATCH EXAMPLE_CLICK_ID_001... -> 2026-10-24 | Search_Brand
MATCH EXAMPLE_CLICK_ID_002... -> 2026-10-21 | Search_NonBrand
NO MATCH EXAMPLE_CLICK_ID_003...
TOTAL: 2 of 3 click IDs found in this account.
How to read the results
| Result | What it means | What to do |
|---|---|---|
| All IDs matched | The IDs are real clicks from this account, so a mismatch is ruled out. | Look at conversion times, when the conversion action was created, and processing delay. |
| Some matched | Part of your CRM data comes from somewhere else. | Fix capture for the sources that didn’t match. |
| None matched | The IDs aren’t clicks from this account in that date range. | Check the date range, confirm which account ran the traffic, then fix how the CRM captures click IDs. |
When to use a GCLID checker
I built this to troubleshoot offline conversions, but it’s useful anywhere you need to know where a click ID came from.
- Offline conversion imports showing zero. Rule out mismatched click IDs before you rebuild the upload.
- Before launching offline conversion tracking. Confirm your CRM is storing real click IDs first.
- Testing a new form or CRM field. Once real ad traffic starts filling it, check that the stored GCLIDs are real clicks.
- Account migrations or agency changes. Find out whether older leads came from this account or a previous one.
- Multiple accounts. Run it in each account to find which one a click belongs to.
- Tying a lead to a campaign. Get the click date and campaign for a lead when your CRM doesn’t have them.
- Settling a source debate. Show sales or finance whether a lead really came from a paid click in your account.
Why GCLIDs fail to match
- It came from a different Google Ads account. An agency or previous vendor may have run the traffic.
- It wasn’t a Google Ads click. Some CRM GCLID fields get filled from other sources. Google notes this is expected for clicks from sources like SA360 or DV360.
- It’s a placeholder. A broken form or tracking template can store text like
URL Parameter: gclidinstead of a value. - It changed in transit. Exports and spreadsheets can truncate or re-case values, and Google says the GCLID is case sensitive.
- It’s too old. Google keeps the GCLID for 90 days, so an older click won’t be found even if it was real.
Quick checks before you run it
- Length. The GCLIDs I’ve worked with usually run 90 to 100 characters, though Google’s setup guide doesn’t state a length. A value of 20 characters or less is a red flag.
- Placeholder text. Search your export for
URL Parameter: gclid,gclid, or{gclid}. - Doubled values. Some exports store the same ID twice in one cell. The script handles comma-separated doubles, but your import may not.
- Case and spaces. Check that nothing changed the capitalization or added spaces.
What this script won’t tell you
- It checks one account at a time. Run it inside each account you care about.
- It only looks back about 90 days. That’s the
click_viewlimit. Pick a range that covers the actual click dates. - It only checks GCLIDs. It doesn’t look up GBRAID or WBRAID values, and Google says GCLIDs aren’t available in this report for App Campaigns for Installs or Pre-registration.
- A match proves the click exists, not that the conversion will import. Google lists other causes, like a conversion time before the click or a conversion action created after it. It also says processing typically takes less than 12 hours.
- It has limits. Google Ads Scripts have run-time limits, so split very large date ranges into several runs.
Why I built it
I was helping a client set up manual offline conversion imports from Salesforce through Google Sheets. Everything reported success: connections ran daily, rows imported, no errors. Every conversion action still showed zero.
I’d already checked click ID length, formatting, and whether each conversion came after its click. The open question was whether Google could find those clicks at all, and the interface couldn’t tell me.
The script answered it in minutes. All of the IDs matched real clicks on the client’s search campaigns, so I could stop looking at capture and focus on conversion timing. Checking first saved me from rebuilding a setup that wasn’t broken.
FAQ
Can I look up a GCLID in the Google Ads interface? I haven’t found a screen for it. The click-level data is available through click_view, which you can reach with Google Ads Scripts or the API.
Does this script change my Google Ads account? No. It only reads click data and writes to the log. Use Preview to be safe.
How far back can I check a GCLID? About 90 days. Google limits click_view queries to dates back to 90 days before the request.
Why do my offline conversions show zero with no errors? A successful import doesn’t prove each row matched a click. This script helps you rule that out first.
This script is free, read-only, and provided as-is. Test it in Preview before relying on the results. Google can change Ads Scripts and reporting over time, so check the current documentation if a query ever errors.
Looking for more? Browse all free Google Ads scripts.
Common GCLID questions
Can I look up a GCLID in the Google Ads interface? I couldn’t find a screen that does it. Use click_view through a script or the API.
How far back can I check a GCLID? 90 days before you run the check. Older clicks can’t be confirmed this way.
Can I check a whole MCC at once? Not with this script. Open each client account and run it there.
What if an upload error says the click belongs to another customer? Run this check in the account you think owns the click. Google’s troubleshooting guide says INVALID_CUSTOMER_FOR_CLICK means you need to update the request to the correct customer.
Related reading
Want to see where your account stands? Get your Fourscore, or talk to me about what is going on in your account.
