For a gbraid wbraid offline conversion import, you capture the gbraid and wbraid URL parameters on the landing page the same way you capture gclid, store them on the CRM record, and send them back with the conversion in adIdentifiers.gbraid or adIdentifiers.wbraid in the Data Manager API. Google now tells you to send every identifier you captured for a conversion, and it picks gclid first, then wbraid, then gbraid. The catch is that a row with a braid and no gclid loses some features: user data is ignored, custom variables and cart data are not supported, and wbraid conversions cannot be adjusted later.
This is for PPC managers, agency owners and the developers who wire tracking into client sites and CRMs. It covers what the two identifiers are, when they show up instead of gclid, a capture script that keeps all three from the same click, HubSpot and Salesforce field setup, the Data Manager API payload, which features work with braids, and the upload errors you will actually hit.
What are gbraid and wbraid?
Both are click identifiers that Google Ads adds to landing page URLs through auto-tagging. They exist because of Apple's App Tracking Transparency rules. On iOS 14 and later, Google says the gclid is no longer used without user consent, so it introduced two parameters that measure conversions in a privacy-safe, aggregated way instead of tying them to one user.
- wbraid. Introduced in March 2021. Google Analytics help describes it as the app-to-web parameter. The Google Ads API docs describe it as present when a user clicks an ad inside an iOS app and lands on your web page. The Data Manager API reference calls it the click identifier for clicks tied to web events from iOS devices.
- gbraid. Followed shortly after. It is the web-to-app parameter: Google's docs describe it as present when a user clicks an ad on the web and is sent to your iOS app. The Data Manager API reference calls it the identifier for clicks tied to app events from iOS devices. Google Ads help also says it is added to landing page URLs for iOS 14.5+ clicks when auto-tagging is on.
- gclid. The normal Google click identifier. Still the best one to have, and still the one Google tells you to include whenever it exists.
Do not read too much into the "web" and "app" labels when you look at real landing page URLs. In practice you will find gbraid on ordinary website landing pages from iOS traffic, sometimes next to a gclid, sometimes alone. Your job on the website is not to decide which one is "right". Capture whatever arrives and send it back.
When does Google Ads send gbraid or wbraid instead of gclid?
You do not control this, and Google does not publish the exact decision logic. What you can rely on:
- iOS traffic is where they appear. Clicks from Android and desktop normally carry a gclid only.
- Auto-tagging must be on. The braids are added by auto-tagging, the same switch that adds gclid. If the client uses manual tagging only, none of the three will appear.
- You may get more than one. A URL can carry
gclid and gbraid together, or a braid alone. Plan for every combination.
- Campaign types. Google Ads help says gbraid for offline conversion import applies to Search, Shopping, Display and Performance Max campaigns. If a client runs other types, expect fewer braids.
The practical effect: if your capture script only reads gclid, a slice of your iOS leads arrive in the CRM with no click ID at all. Those leads can never be matched by an offline import, and they quietly drag down your match rate. On accounts with a lot of iPhone traffic, that slice is not small.
Can one conversion row include gclid, gbraid and wbraid together?
Yes, today it can. This is the point where older guides, forum answers and even some of Google's own code comments are out of date.
For years the rule was "exactly one of gclid, gbraid or wbraid per conversion". The code samples in the Google Ads API docs still carry comments that say that. The current guidance is different. Google's offline conversion upgrade page says gbraids and gclids, along with user-provided data, can be in a single row for each conversion upload without triggering an error starting from October 3, 2025. The current Google Ads API click conversion guide says to include every click identifier you captured and states the order of precedence: gclid, then wbraid, then gbraid.
So the rule for new work is simple:
- Send every identifier you captured for that click. Do not write logic that drops the braid when a gclid exists.
- Never send identifiers from different clicks on one row. If someone clicked an ad on their Mac last month and on their iPhone today, the gclid from the Mac and the wbraid from the iPhone belong to different clicks. Mixing them is the real mistake to avoid, and the capture script below handles it.
- Never put a braid value in the gclid field. They are different formats and Google will not match them.
If you maintain a legacy integration on the Google Ads API, you might still see GBRAID_WBRAID_BOTH_SET. Google's legacy guide says this can be returned when a conversion sets both and also fails some other validation check, and that you do not need to remove click identifiers. Fix the other problem instead.
Capturing gclid, gbraid and wbraid on the landing page
Google's own tag stores click data in first-party cookies through the conversion linker, but those cookies are for the tag. For offline imports you need the raw values in your form submission so they land on the CRM record. The cleanest pattern is a small script that reads all three on landing, stores them as one set, and fills hidden form fields on any page.
<script>
(function () {
var KEYS = ['gclid', 'gbraid', 'wbraid'];
var DAYS = 90;
var params = new URLSearchParams(window.location.search);
var found = {};
var hasNew = false;
KEYS.forEach(function (k) {
var v = params.get(k);
if (v) { found[k] = v; hasNew = true; }
});
function setCookie(name, value) {
var expires = new Date(Date.now() + DAYS * 864e5).toUTCString();
document.cookie = name + '=' + encodeURIComponent(value) +
'; expires=' + expires + '; path=/; SameSite=Lax; Secure';
}
function clearCookie(name) {
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/';
}
function getCookie(name) {
var m = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
return m ? decodeURIComponent(m[1]) : '';
}
// A new ad click replaces the whole set, so ids from different clicks never mix
if (hasNew) {
KEYS.forEach(function (k) {
if (found[k]) { setCookie('ads_' + k, found[k]); }
else { clearCookie('ads_' + k); }
});
setCookie('ads_click_ts', new Date().toISOString());
}
function fill() {
KEYS.concat(['click_ts']).forEach(function (k) {
var v = getCookie('ads_' + k);
if (!v) return;
document.querySelectorAll('input[name="' + k + '"]').forEach(function (el) {
if (!el.value) el.value = v;
});
});
}
fill();
document.addEventListener('DOMContentLoaded', fill);
// Forms injected later (popups, multi-step, embeds) get filled too
new MutationObserver(fill).observe(document.documentElement, { childList: true, subtree: true });
})();
</script>
Things this handles that most copy-paste snippets miss:
- Same-click integrity. When a new ad click arrives, the script overwrites or clears all three cookies together. An old gclid never sits next to a fresh wbraid.
- Multi-page journeys. The visitor lands on a service page and converts on the contact page three clicks later. The cookie carries the values across.
- Late-rendered forms. Popups, multi-step forms and AJAX forms that render after page load get filled by the observer.
- A click timestamp. Useful for checking that the conversion falls inside the click-through window before you upload.
Adjust a few things per site. If the form lives on a different subdomain than the landing page, add a domain= attribute to the cookie. If the site sits behind a consent banner, decide with the client whether these cookies wait for consent; the Consent Mode v2 guide covers how consent state should flow into the upload. If the form renders inside an iframe, a script on the parent page cannot reach its fields, so use the form tool's own URL prefill or JavaScript API instead. For GTM-based form setups, the GTM form tracking guide covers AJAX, multi-step and redirect forms in detail.
Redirects that strip the parameters
The most common reason braids never reach the CRM is a redirect that drops the query string: http to https, non-www to www, a trailing slash rule, a geo redirect, or a link shortener in a tracking template. Test by pasting a landing page URL with ?gbraid=test1&wbraid=test2 on the end and checking that the final URL in the address bar still carries both. Also check that the server, CDN or security plugin does not reject unknown query parameters. Google Ads help notes that some sites need to allow arbitrary URL parameters for this to work.
How to store gbraid and wbraid in HubSpot and Salesforce
Create three separate fields. Do not reuse one "click ID" field for all three, because you lose which type it was and the upload needs that.
| Field | HubSpot (contact property) | Salesforce (Lead, mapped on conversion) |
| gclid | Single-line text, internal name gclid | Text(255), GCLID__c |
| gbraid | Single-line text, internal name gbraid | Text(255), GBRAID__c |
| wbraid | Single-line text, internal name wbraid | Text(255), WBRAID__c |
| Click time | Single-line text, internal name click_ts | Date/Time, Ads_Click_Time__c |
Setup notes that save debugging later:
- Use text fields, not picklists or numbers. These values are long opaque strings. A number field or a short text limit will corrupt them, and a corrupted ID fails silently as an unmatched click.
- Write once, do not overwrite on later forms. If the same contact fills a second form months later without an ad click, the empty hidden field should not blank out the stored value. In HubSpot, blank hidden fields generally do not clear a property, but check your form and workflow behavior. In Salesforce, check any upsert logic from your form tool.
- Carry the fields to the object you upload from. In Salesforce, map the three Lead fields to Contact and Opportunity fields in the lead field mapping, so the values survive lead conversion. If you upload closed-won deals, the opportunity needs them.
- Hidden fields on every form. Add
gclid, gbraid, wbraid and the click time as hidden fields to each form that creates leads, including chat and booking forms where possible.
HubSpot's native Google Ads integration and many CRM connectors were built around gclid. Do not assume a connector reads your custom braid properties. If your upload path cannot send braids, the values still matter: export or script the upload yourself. The CRM lead source attribution guide covers the broader source fields that should sit next to these, and the offline conversion import from CRM guide covers stage mapping and upload timing.
Data Manager API field names for gbraid and wbraid
Since June 15, 2026, new offline conversion and enhanced conversions for leads implementations must use the Data Manager API instead of the Google Ads API. Google's field mapping page lists the click identifiers as straight renames:
| Google Ads API (ClickConversion) | Data Manager API (Event) |
gclid | ad_identifiers.gclid (JSON: adIdentifiers.gclid) |
gbraid | ad_identifiers.gbraid (JSON: adIdentifiers.gbraid) |
wbraid | ad_identifiers.wbraid (JSON: adIdentifiers.wbraid) |
conversion_date_time | event_timestamp (RFC 3339 in JSON) |
conversion_value | conversion_value (currency amount, not micros) |
currency_code | currency |
order_id | transaction_id |
conversion_action | destination_references plus the destination's productDestinationId |
user_identifiers | user_data.user_identifiers |
A request for a lead that arrived with a wbraid only looks like this. The endpoint is POST https://datamanager.googleapis.com/v1/events:ingest.
{
"destinations": [{
"operatingAccount": { "accountType": "GOOGLE_ADS", "accountId": "1234567890" },
"loginAccount": { "accountType": "GOOGLE_ADS", "accountId": "9876543210" },
"productDestinationId": "CONVERSION_ACTION_ID"
}],
"consent": { "adUserData": "CONSENT_GRANTED", "adPersonalization": "CONSENT_GRANTED" },
"validateOnly": true,
"events": [{
"adIdentifiers": { "wbraid": "VALUE_FROM_CRM" },
"eventTimestamp": "2026-11-20T15:07:01-05:00",
"transactionId": "OPP-000481",
"conversionValue": 4200,
"currency": "USD",
"eventSource": "WEB"
}]
}
If the record has a gclid and a gbraid from the same click, put both in adIdentifiers. The Data Manager send events guide requires at least one identifier per event: a gclid, a gbraid or wbraid, an IP address, session attributes, user data, or one of the other listed options. A braid on its own is enough to make the event valid.
Practical points for the API:
- Consent must be real. Set
adUserData and adPersonalization to what the person actually agreed to, per event or for the whole request.
- The encoding field is for user data. The reference says
encoding must be provided for user data uploads. A braid-only request without hashed user data does not need it.
- One bad event fails the batch. The API rejects the entire request if any field fails validation. Run with
validateOnly set to true first, then send for real.
- Processing is asynchronous. A 200 response means accepted, not matched. Keep the
requestId and check request status and diagnostics afterward. Diagnostics are not available for validate-only requests.
For the full migration from the Google Ads API, including authentication and destinations, see the Data Manager API conversion imports guide.
Which Google Ads features work with gbraid and wbraid?
This is where braid-only conversions differ from gclid conversions. The rules below come from Google's Google Ads API and help docs. Google has not documented different behavior for the Data Manager API, so plan as if the same product limits apply.
| Feature | gclid | gbraid | wbraid |
| Offline click conversion import | Yes | Yes | Yes |
| Conversion adjustments (restate, retract) | Yes | Yes | No |
| Enhanced conversions for leads user data on the same row | Used | Ignored without a gclid | Ignored without a gclid |
| Custom conversion variables | Yes | Not supported without a gclid | Not supported without a gclid |
| Cart data | Yes | Not supported without a gclid | Not supported without a gclid |
| Conversion action count setting | One or Every | Must be Every | Must be Every |
Conversion adjustments with gbraid and wbraid
The conversion adjustments guide says adjustments work with GCLIDs and GBRAIDs but not WBRAIDs. If your process uploads a lead first and then restates its value when the deal closes, a wbraid lead cannot be restated. Two ways around it: upload once at the stage you actually care about with the final value, or use separate conversion actions per stage instead of adjusting one. Either way, set a transaction_id on every upload. Google says that if you set an order ID on import, you must use it for any later adjustment, and identifying adjustments by order ID is the recommended approach.
Enhanced conversions for leads and braids
Google's legacy guide is direct: if you set wbraid or gbraid without a gclid, Google Ads ignores the user identifiers on that row. Sending hashed email next to a lone wbraid does not hurt, but it does not add matching either. Enhanced conversions for leads still help on rows with a gclid, and on rows with no click ID at all. The enhanced conversions setup guide covers when to run both.
The count setting
Google's upgrade page says that when using braids, the conversion action's count setting should be Every, and that other values may cause an upload error. Lead-gen accounts often use One for lead actions. If you plan to upload braid conversions to a lead action set to One, test that first, or create a dedicated action for them. Google's guide to upgrading offline imports also recommends adding gbraid or wbraid to existing or new conversion actions in all scenarios.
Common gbraid and wbraid upload errors and silent failures
Some problems throw an error. Others look successful and just never turn into conversions. Both kinds matter.
| Error or symptom | Where you see it | Likely cause and fix |
NO_IDENTIFIERS_PROVIDED | Data Manager API | The event has no ad or user identifiers. Usually the braid sits in a CRM field your export did not map. Map all three ID fields. |
INVALID_AD_IDENTIFIER_FOR_ACCOUNT | Data Manager API | The identifier does not belong to the destination's accounts. Check you are uploading to the account (or manager hierarchy) that ran the ad. |
EVENT_TIME_INVALID | Data Manager API | The event is outside the acceptable time window. Check the timestamp's timezone offset and that the click is within the action's click-through window. |
INVALID_CONVERSION_ACTION_TYPE | Data Manager API | The destination conversion action is not an import-from-clicks action. Point it at the right action. |
CONVERSION_ACTION_TOO_RECENTLY_CREATED | Data Manager API | The action was just created. Wait and retry. |
VALUE_MUST_BE_UNSET | Legacy Google Ads API | Custom variables or cart data on a row with a braid and no gclid. Remove them from those rows. |
GBRAID_WBRAID_BOTH_SET | Legacy Google Ads API | Returned alongside another validation failure. Fix the other failure; you do not need to remove identifiers. |
EXPIRED_EVENT | Legacy Google Ads API | The click happened before the action's click-through window. Upload sooner, or widen the window up to its maximum. |
| Upload error on braid rows only | Either | The conversion action count is set to One. Use Every for braid conversions. |
| Accepted, but no conversions appear | Diagnostics, reports | Truncated or double-encoded values, braid pasted into the gclid field, wrong account, or uploads checked too early. Compare stored values with the raw landing URL. |
For general import failures that are not braid-specific, the offline conversion import errors fix page walks through the rest.
Double-encoding and truncation
Two quiet killers. First, encoding: if your script stores the value with encodeURIComponent and your form tool encodes it again, the CRM ends up with %253D where the original had %3D or =. Read the value back in the CRM and compare it character for character to what was in the URL. Second, length: a field with a short character limit cuts the string and the upload is accepted but never matched.
How to test the full gbraid and wbraid path
- Fake the landing URL. Open a landing page with
?gclid=TESTG&gbraid=TESTGB&wbraid=TESTWB. Check DevTools under Application, Cookies for ads_gclid, ads_gbraid, ads_wbraid and ads_click_ts.
- Change pages, then submit. Navigate to another page, open the form, and inspect the hidden inputs before submitting. All three should be filled.
- Test a new click. Open the site again with only
?wbraid=TESTWB2. The gclid and gbraid cookies should be cleared and only the new wbraid stored.
- Check the CRM record. The values must match exactly, including case and special characters, on the contact or lead, and after lead conversion on the contact and opportunity.
- Validate the upload. Build the Data Manager request from that record and send it with
validateOnly set to true. Fix any errors before you send real data. Fake test values will not match a real click, so do not send them for real.
- Watch real traffic. After a week of live iOS leads, count how many CRM records have a braid but no gclid. If that number is zero on an account with meaningful iPhone traffic, something upstream is still dropping them.
Getting it fixed for a client
Braids are one of those details that nobody notices until match rates look wrong. The usual state we find on client accounts is gclid captured, braids ignored, a CRM connector that only knows about gclid, and an upload path that will not survive the move to the Data Manager API. Fixing it means touching the site, the CRM fields, the export and the conversion actions in one pass, and checking diagnostics afterward. If you want a second set of eyes on a client account before you rebuild it, request a free tracking check and we will tell you where the identifiers are getting lost.