Salesforce to Google Ads Offline Conversion Import Breaks Inside Salesforce, Not Inside Google Ads
By Rajesh Kumar, Founder, Attribi · · Updated

Your won deals are in Salesforce. Google Ads is still bidding on form fills. The upload reports success and the conversion column stays flat.
A Salesforce Google Ads offline conversion import sends a won Opportunity back to Google Ads with the click ID that started it. What fails is rarely the upload. It is the Salesforce side: the click ID sits on a Lead, the revenue on an Opportunity, and nothing carries one to the other unless an admin mapped it. Fix the object model first.
The Google half is covered in the offline conversion import guide, the Data Manager API article and Google Ads offline conversion errors. This article stays inside Salesforce. Vendor pages cited below were read on 2026-10-12.
What is a Salesforce Google Ads offline conversion import?
A Salesforce Google Ads offline conversion import is a record sent to Google Ads after a Lead or Opportunity in Salesforce reaches a stage you care about, carrying the Google click ID (GCLID) or hashed contact details, the time of the stage change, and the Opportunity amount, so Google can credit the ad click that produced the deal. Google counts it under an import conversion action and can bid on it once it is the campaign's goal and arrives in volume.
Which Salesforce object holds the click ID?
The Lead, almost always, in a custom text field the web form filled. Revenue lives on the Opportunity. The person's email lives on the Contact. Salesforce never puts all three on one record for you.
| Object | What the upload needs from it | Where the GCLID is |
|---|---|---|
| Lead | Nothing directly. It is the capture point. | A custom field such as GCLID__c, filled by a hidden form field |
| Contact | Email, Phone for the hashed second key | Empty, unless the lead field mapping copies it |
| Opportunity | StageName, IsWon, Amount, CurrencyIsoCode, CloseDate | Empty, unless the lead field mapping copies it |
| OpportunityContactRole | The link from a deal to a person. Opportunity.ContactId is read-only and derived from it | Not applicable |
The last row matters. Salesforce's
Opportunity object reference
describes ContactId as read-only and derived from the contact role, so a deal with no contact
role has no person on it, no email to hash, and nothing to upload on unless a click ID was copied
to the Opportunity itself.
Google's own
Salesforce setup page has you create a
255-character read-only GCLID field on both the Lead and the Opportunity, then map one to the
other so the value carries over on conversion. The mapping is the step people skip.
Why does the GCLID not survive lead conversion?
Because Salesforce only moves standard fields on its own. Its Help page Map Custom Lead Fields for Lead Conversion says that on conversion "the information from the standard lead fields appears in standard fields for contact, account, and opportunity records", and that for custom lead fields "you specify how that custom information converts". Nothing is specified by default.
The setup is three clicks, which is why it is missed:
- Create the matching custom field on the Opportunity, and on the Contact if you want it there. Text maps to text.
- From the Lead object's fields section, open Map Lead Fields.
- For the Lead's GCLID field, choose the Opportunity field. In Lightning one lead field can map to account, contact and opportunity fields at once. Save.
The same page notes that custom mapping needs Apex Lead Convert, is available on every edition with Sales, and can become unresponsive past 2,000 fields across the four objects.
The mapping only fires on conversion. A Lead converted before it existed stays as it was, and a Contact a rep created directly is never touched, so an empty Opportunity GCLID on older deals has no retroactive fix. How the ID reached the Lead field in the first place is its own chain of failures, in how to get the GCLID into your CRM.
Is a won Opportunity a stage name or a flag?
A flag, derived from the stage. The Opportunity reference describes IsWon and IsClosed as
"directly controlled by StageName": you can query them but not set them, and the values come
from the stage-category mapping on the OpportunityStage object. Most integrations test the
wrong one. StageName = 'Closed Won' stops working the day an admin renames the stage to "Signed
Contract" or adds a second sales process with its own won stage. IsWon = true survives both.
| Opportunity field | Type | What it means for the upload |
|---|---|---|
StageName | Picklist, required | The label your team sees. Renameable. Do not hard-code it. |
IsWon | Boolean, read-only | True for any stage whose OpportunityStage record is marked won. Test this. |
IsClosed | Boolean, read-only | True for won and lost alike. Not sufficient on its own. |
Amount | Currency | The value to send. With products attached it is the sum of the line items, and a direct update is silently ignored. |
CurrencyIsoCode | Picklist | Exists only on orgs with multiple currencies enabled. Selecting it on a single-currency org fails the query. |
CloseDate | Date, required | A date, not a timestamp, often set in advance. Not the moment the deal was won. |
Two rows cause silent money errors.
Currency. On a single-currency org there is no CurrencyIsoCode field. The Amount is in the
org's own currency, and an uploader that assumes US dollars books a 2,000,000-rupee deal as two
million dollars. You must know the org's currency even when the record does not carry one.
Time. Google wants the moment the deal became won. CloseDate is the day a rep expected it
to close, sometimes weeks earlier. The reliable source is the field history on StageName, which
is why Google's connector requires field history tracking.
Is Campaign Influence the same thing as a click ID?
No. Salesforce's Customizable Campaign Influence assigns revenue share to Salesforce Campaign records: its default model gives 100 percent of an Opportunity to the campaign in the Primary Campaign Source field. A Google Ads click ID identifies one click on one ad. Nothing in a Campaign Influence record names a click, so it can tell your board which programme a deal came from and cannot tell Google Ads anything.
Which route takes a won Opportunity out of Salesforce?
Three, and the choice is about who owns the plumbing.
Route 1: Google's Data Manager connector for Salesforce
The successor to Conversion Import for Salesforce, which Google's legacy page says is unsupported from 31 May 2025. What Google's Data Manager Salesforce page and its setup page say it reads and needs:
- One object per connection: Lead, Opportunity or Order. Events on both need two connections.
- A credential in an org where you can enable the API, create custom fields and enable field history tracking. Google suggests a System Administrator account.
- The GCLID field on the chosen object, mapped in the connector, and field history tracking on Opportunity Stage and Lead Status, because the conversion time is the timestamp of the field change that met your condition.
- A value field, optional. Unmapped, the conversion action uses a default value of one.
Its limits, from the same pages: no Salesforce sandbox, a first run that looks back only 14 days, a recommended daily schedule, and no import more than 90 days after the last click. No code is the argument for it. Against it: it reads exactly what is on the record. An empty Opportunity GCLID field uploads nothing for that deal, and nothing tells you.
Route 2: Salesforce Flow or Apex calling the Data Manager API
Salesforce's HTTP Callout action lets a record-triggered Flow call a REST endpoint without Apex, through a named credential. Its considerations page says request headers go in the named credential, and any response of 300 or higher is an error that needs a fault path.
You own what Google's connector hides: an OAuth client with the
https://www.googleapis.com/auth/datamanager scope, SHA-256 hashing under
Google's normalisation rules, a deterministic
transactionId, the retry on a 429, and the fact that one invalid event rejects the whole
request. Right for an org whose admin already maintains Flows. Wrong for anyone else.
Route 3: an external uploader
A tool reads Opportunities over the API on a schedule and uploads with whatever identifiers it holds. One that reads the GCLID off the record has route 1's empty-field problem. One that captured the click ID itself, on your website, before the form was submitted, does not need Salesforce to have kept it. That is Attribi's design, and its limits are below.
What does the Data Manager API request look like for a Salesforce deal?
Whichever route you take, the request that reaches Google is the same. This is the full payload
other articles here point to, posted to https://datamanager.googleapis.com/v1/events:ingest
with an OAuth bearer token carrying the datamanager scope and no developer token. Field names
follow Google's
events:ingest reference;
IDs, hashes and amount are illustrative.
{
"destinations": [
{
"operatingAccount": {
"accountType": "GOOGLE_ADS",
"accountId": "1234567890"
},
"productDestinationId": "987654321"
}
],
"encoding": "HEX",
"events": [
{
"eventTimestamp": "2026-10-09T14:03:00+04:00",
"transactionId": "006Hs00000ABCDEFAA:closed_won",
"conversionValue": 48000,
"currency": "AED",
"eventSource": "WEB",
"adIdentifiers": {
"gclid": "Cj0KCQjw_EXAMPLE_gclid_from_the_Lead_record"
},
"userData": {
"userIdentifiers": [
{ "emailAddress": "d6117306485ed0e50afab3ac871e98f81699151f30281527d63ff5f233656c69" },
{ "phoneNumber": "1e231c66011e7a2d867a9cfae267a6aff103cf4913640b6e71a99850fc0ffbc8" }
]
}
}
]
}
Read as a Salesforce record: eventTimestamp is the stage change, RFC 3339 with an offset, and
the only field Google marks required. transactionId is the Opportunity Id plus the stage, so a
re-run cannot book the deal twice. conversionValue is Amount as a plain number, not micros.
currency is CurrencyIsoCode on a multi-currency org and the org's own currency otherwise,
never a default. adIdentifiers.gclid is the Lead's value, copied to the Opportunity by the
mapping above. The two userIdentifiers are the Contact's email and phone, hashed after Google's
normalisation, 64 hex characters each; sending them needs the enhanced conversions terms accepted
in Google Ads, or the whole request is rejected with
DESTINATION_ACCOUNT_ENHANCED_CONVERSIONS_TERMS_NOT_SIGNED. encoding must be set whenever
userData is present.
Which Salesforce edition do you need?
Every route except Flow needs API access, and Salesforce's editions with API access page, published 7 July 2026, sets the line. Enterprise, Unlimited, Developer and Performance include it. Professional can buy the Web Services API add-on (the Additional API Calls product does not enable it). Group and Essentials cannot have it at all. So Google's connector and any external uploader, Attribi included, are Enterprise-and-up in practice. A Flow is the one route left to an Essentials org.
What works with Attribi today, and what does not
Attribi is the tool I build. The plain version:
What does not work today: connecting a customer's Salesforce org. Attribi's Salesforce
registration is an External Client App with a local distribution state. Salesforce's
External Client Apps
page says local apps "are available only on the org where you create them", and its
packaging page
says "only packaged apps can be deployed to other orgs". A customer who clicks Connect
Salesforce is refused before the login screen with OAUTH_AUTHORIZATION_BLOCKED and a message
that cross-org OAuth flows are not supported. The fix is on our side, by packaging the app or
deploying its metadata into the customer's org, and I have not given it a date.
What works today without Salesforce. Attribi's script records the gclid against the visitor
on your own domain at the click, before any form. When a lead is marked won, in the app, from a
connected Google Sheet, or from a Shopify order, the upload goes to Google Ads through the Data
Manager API with that click ID, hashed email and phone, value and currency, and a transactionId
built from the lead and the stage.
What the Salesforce pull does once connected, from the code as of 2026-10-12:
- Reads Opportunities once a day. Won stages come from your org's
IsWondefinition with an optional override list; qualified stages are picked from your stage list at connect time. - Resolves the person through
OpportunityContactRole, preferring the primary contact, and matches on email, then phone. It reads no GCLID field from Salesforce: the fields it creates live on the Lead and the pull reads the Contact. No contact role, no upload. - Reads
CurrencyIsoCodeon a multi-currency org and asks Salesforce for the org's currency otherwise. If neither is known, the won upload is held, not guessed. - A won Opportunity with no
Amount, or zero, uploads no revenue. Each person is uploaded once per stage, so a second win for the same Contact is not sent today. - Sandbox and production orgs can both be connected. Field creation needs Customize Application; Essentials and Group orgs get the field list to build by hand.
- If the Google Ads account has not accepted the enhanced conversions terms, Attribi re-sends with the click ID alone. Without the script there is no click ID, so nothing matchable goes.
- Conversion actions Attribi creates in Google Ads use a 30-day click-through window today.
Uploads to one ad platform start on the Starter plan at 49 dollars a month, and CRM connections on Growth at 99 dollars. Every new workspace starts with 30 days on the Pro plan, no card required. Setup is on the Salesforce integration page; the Google Ads integration page lists what is sent.
Frequently asked questions
Does the GCLID carry over when a Salesforce Lead is converted? Not on its own. Salesforce moves standard lead fields to the Contact, Account and Opportunity automatically, but a custom field such as a GCLID is only copied if an admin has mapped it on the Lead object's Map Lead Fields page, and only for conversions after the mapping was saved.
Should I test IsWon or the stage name to decide a Salesforce deal is won? Test IsWon. It is a read-only field that Salesforce derives from the StageName through the OpportunityStage object, so it stays correct when a team renames its won stage or adds a second sales process. Comparing StageName to the literal text Closed Won breaks the first time the picklist is edited.
Which Salesforce object should Google Ads Data Manager read, the Lead or the Opportunity? The one that holds both the GCLID and the event you want to count. For a qualified lead that is the Lead with its Lead Status history. For revenue it is the Opportunity, which means the GCLID must have been mapped onto it at conversion. Google's connector takes one object per connection, so measuring both needs two.
Does Salesforce Campaign Influence send anything to Google Ads? No. Campaign Influence assigns revenue share to Salesforce Campaign records based on campaign membership and contact roles. Google Ads matches an uploaded conversion to an ad click through the click ID or hashed customer data, and nothing in a Campaign Influence record names a click.
What currency is a won Opportunity in when the org has only one currency? The org's currency. The CurrencyIsoCode field does not exist on a single-currency org, so there is no code on the record to read, and an uploader that fills the gap with USD books the deal in the wrong currency without an error.
Can a customer connect their own Salesforce org to Attribi today? Not yet. Attribi's Salesforce app is a local External Client App, which Salesforce only allows to authorise from the org it was created in, so a connection attempt from another org is refused before the login screen. Click ID capture, Google Ads uploads and the other revenue sources work without it.
The takeaway
Every guide on this import spends its pages on Google's side, and Google's side has been the same request for a year. The deals that never reach Google are lost on three Salesforce decisions: which object holds the click ID, whether it was mapped at conversion, and whether won was tested as a flag or a label. Settle those in Setup and any route will carry the deal. To hold the click ID outside Salesforce altogether, start with 30 days on the Pro plan, knowing the Salesforce connection itself is the part we still have to finish.
Connect your CRM once. Every closed deal reaches your ad platforms.
Attribi pulls stage changes from your CRM, matches each deal to the lead it already recorded, and uploads qualified and closed won conversions to Google, Meta, LinkedIn, TikTok and Microsoft.
No credit card. Free up to 500 visitors a month. New workspaces start with 30 days on Pro.