Key facts
  • Google Ads GCLIDs frequently exceed 100 characters and are strictly case-sensitive; always create Text(255) Case-Sensitive fields on Lead, Contact, and Opportunity.
  • Enable Salesforce Lead Field Mapping and add an OpportunityContactRole fallback lookup so multi-stakeholder enterprise deals inherit the original ad clicker's GCLID.
  • New custom Salesforce-to-Google Ads integrations post-June 15, 2026 must target Google Ads Data Manager API (with legacy Google Ads API only for grandfathered accounts).
  • Enforce a 6-hour click indexing delay, deterministic sf_opp__ order_id deduplication, and automated Slack alerting on partial failures.
Enterprise Salesforce Pattern

To send reliable Salesforce Opportunity and Closed-Won revenue to Google Ads: (1) create custom Text(255) fields AR_GCLID__c, AR_GBRAID__c, and AR_Click_Timestamp__c on Lead, Contact, and Opportunity with Lead Conversion Mapping enabled, (2) resolve multi-contact Opportunities by falling back to the earliest ad-attributed OpportunityContactRole on the Account, (3) fire a Salesforce Record-Triggered Flow → External Service / Cloudflare Worker posting to the Google Ads Data Manager API after a 6-hour buffer, and (4) alert RevOps in Slack on any ingestion warning or partialFailureError.

1. Required Custom Salesforce Fields (Never Truncate GCLIDs)

Google Ads GCLIDs often exceed 100 characters and are strictly case-sensitive. Create these fields on Lead, Contact, and Opportunity and map them in Object Manager → Lead → Map Lead Fields:

API Field NameSalesforce Field TypeObjects RequiredWhy It Matters
AR_GCLID__cText(255), Case-SensitiveLead, Contact, OpportunityPrevents UNPARSEABLE_GCLID truncation
AR_GBRAID__c / AR_WBRAID__cText(255), Case-SensitiveLead, Contact, OpportunityKeeps iOS/app click IDs isolated from GCLID
AR_Click_Timestamp__cDate/Time (UTC)Lead, Contact, OpportunityEnforces 6h buffer & 90-day cliff routing
AR_OCT_Uploaded_Stage__cText(100)OpportunityStops Flow re-fire loops on record edits

2. Solving the Multi-Stakeholder Buying Committee Gap

In enterprise Salesforce orgs, a Director of Operations clicks your Google Ad and books a demo, then the VP of Finance signs the $85,000 order form 70 days later. Your Flow/Worker payload builder should look up click IDs in strict fallback order:

  1. Opportunity.AR_GCLID__c (inherited directly on Lead conversion)
  2. Primary OpportunityContactRole.Contact.AR_GCLID__c
  3. Most recent ad-attributed Contact on the parent AccountId within 90 days of Opportunity creation (paired with SHA-256 email/phone of the attributed Contact for Enhanced Conversions for Leads).

3. Deterministic order_id + Weighted Pipeline Value

Use sf_opp_<Opportunity.Id>_<StageApiName> as the Google Ads order_id so stage bounces deduplicate cleanly. For cycles over 90 days, upload weighted Stage 2 Opportunity value (Amount * HistoricalStageCloseRate) inside Day 30 and reconcile final Closed-Won ARR in BigQuery. Compare options in our Salesforce Connector Matrix, validate sample JSON in our Payload Validator, or generate a spec in our Architecture Builder. Official docs: Salesforce Lead Field Mapping, Cloudflare Workers, and Google Ads Data Manager API.

Technical FAQs

Why do Salesforce Opportunities often have blank GCLIDs even when Leads captured them?
Two reasons: (1) Salesforce Lead Field Mapping was not configured to copy custom GCLID__c and Click_Timestamp__c fields to Opportunity on Lead Conversion, or (2) an AE created a new Opportunity directly on an Account and attached a different executive as Primary Contact rather than the original ad-clicking champion.
Should a new Salesforce offline conversion build use Google Ads Data Manager API or the legacy Google Ads API?
Since June 15, 2026, Google refuses new offline-conversion and Enhanced Conversions for Leads adopters on the legacy Google Ads API. New Salesforce Flow-to-Worker integrations should target the Google Ads Data Manager API directly.
How do we prevent duplicate uploads when sales reps move an Opportunity back and forth across stages?
Generate a deterministic order_id formatted as sf_opp__ and record the uploaded stage inside AR_OCT_Uploaded_Stage__c on the Opportunity so repeat stage edits never trigger duplicate conversions.