To send reliable Salesforce Opportunity and Closed-Won revenue to Google Ads: (1) create custom text(255) fields AR_GCLID__c, AR_GBRAID__c, 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 after a 6-hour buffer, and (4) alert RevOps in Slack on any Google Ads partialFailureError.
1. Required Custom Salesforce Fields (Never Truncate GCLIDs)
Google Ads GCLIDs routinely exceed 100 characters and are strictly case-sensitive. Create these fields on Lead, Contact, and Opportunity using Text(255) and map them in Object Manager → Lead → Map Lead Fields:
AR_GCLID__c— Text(255), Case-SensitiveAR_GBRAID__c&AR_WBRAID__c— Text(255) (stored separately so uploads never collide)AR_Click_Timestamp__c— Date/Time (stored in UTC)AR_OCT_Uploaded_Stage__c— Picklist / Text (prevents Flow loops on Opportunity 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/Apex payload builder should look up click IDs in strict fallback order:
Opportunity.AR_GCLID__c(inherited directly on Lead conversion)- Primary
OpportunityContactRole.Contact.AR_GCLID__c - Most recent ad-attributed Contact on the parent
AccountIdwithin 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 when sales reps bounce an Opportunity between Stage 2 and Stage 3, Google deduplicates automatically. For cycles over 90 days, upload weighted Stage 2 Opportunity value (Amount * HistoricalStageCloseRate) inside Day 30 and reconcile final Closed-Won ARR in BigQuery. See our Salesforce Connector vs. Custom API Matrix.