Google Ads + Salesforce

Connect Google Ads and Salesforce to Close the Loop on Revenue Attribution

Sync ad spend, leads, and conversion data between Google Ads and Salesforce to make smarter campaign decisions and improve ROI.

Why integrate Google Ads and Salesforce?

Google Ads and Salesforce are two of the most important platforms in a modern revenue stack, but they don't talk to each other out of the box. Marketing teams rely on Google Ads to drive top-of-funnel traffic and leads, while sales teams live in Salesforce to manage pipelines, close deals, and track revenue. Integrating the two removes the blind spots between ad clicks and closed-won opportunities, giving every team a shared, accurate picture of what's actually working.

Automate & integrate Google Ads & Salesforce

Use case

Offline Conversion Tracking from Closed Deals

When a Salesforce opportunity reaches Closed Won status, tray.ai automatically sends the conversion event back to Google Ads as an offline conversion. This connects a paid click to real revenue, feeding Google's Smart Bidding algorithms with signals that actually matter. Marketing teams get accurate ROAS data without manual data exports or spreadsheet reconciliation.

Use case

Automatic Lead Creation in Salesforce from Google Ads Form Submissions

Google Ads Lead Form extensions capture prospects directly within the ad experience, but those leads need to reach Salesforce fast to avoid drop-off. tray.ai creates or updates Salesforce leads in real time the moment a form is submitted, complete with UTM parameters and campaign metadata. Sales reps get a fully enriched lead record within seconds, which cuts speed-to-lead response times dramatically.

Use case

Salesforce Customer Lists as Google Ads Audiences

By syncing Salesforce contact and lead segments to Google Ads Customer Match audiences, marketing teams can target or suppress ads based on CRM data. You can exclude existing customers from acquisition campaigns, re-engage cold leads with tailored messaging, or run upsell campaigns against specific account tiers. tray.ai keeps these audience lists continuously refreshed as records change in Salesforce.

Use case

Campaign Performance Data Synced to Salesforce Campaigns

tray.ai pulls Google Ads metrics — impressions, clicks, cost, and conversions — and maps them directly to corresponding Salesforce Campaign records on a scheduled basis. Marketing ops teams get a unified campaign performance view inside Salesforce without leaving the CRM, which makes pipeline influence reporting and ROI dashboards a lot more accurate.

Use case

Lead Scoring Enrichment Based on Ad Engagement

When a known Salesforce contact clicks or converts on a Google Ads campaign, tray.ai can update their lead score or custom fields in Salesforce to reflect that engagement signal. Sales reps get immediate visibility into which prospects are actively engaging with paid campaigns, so they can prioritize outreach accordingly. That enriched scoring data can also trigger automated follow-up sequences or alert notifications within Salesforce.

Use case

Opportunity-Based Bid Adjustments and Campaign Pausing

tray.ai can monitor Salesforce pipeline stages and trigger Google Ads campaign or ad group updates in response to deal signals. When a high-value opportunity hits the negotiation stage, a targeted campaign can activate automatically to reinforce brand messaging. When a product line starts generating a surge of unqualified leads, campaigns can be paused or budgets adjusted without waiting for a manual review cycle.

Use case

Churn Risk Re-Engagement Campaigns

When Salesforce flags an account with a churn risk score above a defined threshold, tray.ai automatically adds those contacts to a dedicated Google Ads Customer Match audience for a targeted re-engagement campaign. At-risk customers see the right messaging across Google Search and Display at the right moment. Campaign outcomes then feed back into Salesforce to update churn risk scores and inform customer success team actions.

Get started with Google Ads & Salesforce integration today

Google Ads & Salesforce Challenges

What challenges are there when working with Google Ads & Salesforce and how will using Tray.ai help?

Challenge

Capturing and Persisting GCLID Values Through the Funnel

Google Click Identifiers are the link between a Google Ads click and a downstream Salesforce conversion event, but they're often lost when leads move through web forms, marketing automation tools, and CRM entry points. Without a reliable GCLID on the Salesforce record, offline conversion uploads can't be matched to the original click, and attribution data ends up incomplete.

How Tray.ai Can Help:

tray.ai workflows can intercept lead creation events from any entry point and verify or write the GCLID to a dedicated Salesforce field before the record is saved. Custom logic handles edge cases like missing or malformed GCLIDs, so you get the highest possible match rate when conversion data is later uploaded to Google Ads.

Challenge

Keeping Customer Match Audiences Fresh and Compliant

Google Ads Customer Match audiences degrade over time as contacts change email addresses, opt out of marketing, or no longer fit segment criteria. Manually exporting and re-uploading CSV files to keep audiences fresh is slow, error-prone, and creates real compliance risk when suppression lists fall behind.

How Tray.ai Can Help:

tray.ai automates the full audience sync lifecycle by running scheduled jobs that re-query Salesforce segments, apply suppression and consent rules, and update Customer Match audiences via the Google Ads API. Contacts who've opted out or been removed from a segment are automatically dropped from the audience, so you stay compliant without anyone touching a spreadsheet.

Challenge

Matching Google Ads Campaigns to Salesforce Campaign Records at Scale

Organizations running dozens or hundreds of Google Ads campaigns face a real problem reliably mapping each one to its counterpart Salesforce Campaign record for reporting and attribution. Naming conventions drift, campaigns get renamed or restructured, and manual mapping tables go stale fast.

How Tray.ai Can Help:

tray.ai workflows can maintain a mapping lookup table that links Google Ads campaign IDs to Salesforce Campaign IDs, so joins stay reliable during data sync operations. When new campaigns are created in Google Ads, the workflow can automatically create or suggest corresponding Salesforce Campaign records and update the mapping, keeping both systems aligned as the account evolves.

Challenge

Handling API Rate Limits and Data Volume During Bulk Syncs

Syncing large Salesforce contact lists to Google Ads Customer Match, or pulling granular keyword-level performance data across thousands of campaigns, can quickly run into API rate limits on both platforms. Naive integration approaches trigger throttling errors that cause data loss or require complete re-runs, making reporting pipelines unreliable.

How Tray.ai Can Help:

tray.ai's workflow engine has built-in rate limit handling, retry logic, and chunked batch processing. Large Salesforce exports are automatically split into appropriately sized batches for Customer Match uploads, and Google Ads API calls are queued and paced to stay within quota limits. Failed steps retry with exponential backoff, so data integrity holds without manual intervention.

Challenge

Attributing Revenue to the Correct Campaign When Multiple Touchpoints Exist

Most closed deals in Salesforce have been touched by multiple Google Ads campaigns across different stages of the buying journey. Uploading a single offline conversion event without accounting for multi-touch attribution can over-credit or under-credit specific campaigns, which leads to budget decisions based on misleading data.

How Tray.ai Can Help:

tray.ai workflows can retrieve the full campaign touch history from Salesforce, apply configurable attribution models — first touch, last touch, or linear — and distribute conversion credit across multiple Google Ads offline conversion uploads accordingly. Marketing teams get a more accurate read on campaign contribution to revenue, and the whole thing is customizable to match existing attribution methodologies.

Start using our pre-built Google Ads & Salesforce templates today

Start from scratch or use one of our pre-built Google Ads & Salesforce templates to quickly solve your most common use cases.

Google Ads & Salesforce Templates

Find pre-built Google Ads & Salesforce solutions for common use cases

Browse all templates

Template

Sync Google Ads Lead Form Submissions to Salesforce as New Leads

Automatically captures every Google Ads Lead Form submission and creates a corresponding lead record in Salesforce, including campaign name, ad group, keyword, and form data. Deduplication logic checks for existing records before creating new ones.

Steps:

  • Trigger on new lead form submission event in Google Ads
  • Search Salesforce for an existing lead or contact with matching email address
  • Create a new Salesforce lead or update existing record with form data and campaign metadata

Connectors Used: Google Ads, Salesforce

Template

Push Salesforce Closed Won Opportunities to Google Ads as Offline Conversions

Monitors Salesforce for opportunities that transition to Closed Won and uploads the associated GCLID and conversion value to Google Ads as an offline conversion event, enabling revenue-based Smart Bidding optimization.

Steps:

  • Trigger when a Salesforce opportunity stage changes to Closed Won
  • Retrieve the stored GCLID and opportunity amount from the Salesforce record
  • Upload the conversion event and revenue value to Google Ads Offline Conversions API

Connectors Used: Salesforce, Google Ads

Template

Sync Salesforce Contact Segments to Google Ads Customer Match Audiences

Runs on a scheduled interval to export defined Salesforce contact or lead list views and sync them to a corresponding Google Ads Customer Match audience, keeping targeting and suppression lists current without manual effort.

Steps:

  • Query Salesforce for contacts or leads matching a defined segment or list view
  • Format contact data including email, phone, and name for Customer Match upload
  • Update the target Google Ads Customer Match audience with the refreshed member list

Connectors Used: Salesforce, Google Ads

Template

Import Google Ads Campaign Performance Metrics into Salesforce Campaigns

Runs daily to pull Google Ads performance metrics by campaign and write them to the corresponding Salesforce Campaign records, enabling unified reporting and ROI analysis within Salesforce dashboards.

Steps:

  • Query Google Ads Reporting API for impressions, clicks, cost, and conversions by campaign
  • Match each Google Ads campaign to its corresponding Salesforce Campaign record by name or external ID
  • Update Salesforce Campaign fields with the latest ad performance metrics

Connectors Used: Google Ads, Salesforce

Template

Enrich Salesforce Leads with Google Ads Click Data on Conversion

When a new lead is created in Salesforce from any source, this template looks up available Google Ads click data using the stored GCLID and writes campaign, ad group, and keyword attribution fields directly onto the Salesforce lead record.

Steps:

  • Trigger on new lead creation in Salesforce
  • Check for a GCLID value stored on the lead record
  • Query Google Ads for click attribution details and write campaign, ad group, and keyword to Salesforce lead fields

Connectors Used: Google Ads, Salesforce

Template

Add Salesforce Churn-Risk Accounts to Google Ads Re-Engagement Audience

Monitors Salesforce for accounts or contacts flagged with high churn risk and automatically adds them to a dedicated Google Ads Customer Match audience, triggering targeted retention campaign exposure without manual list management.

Steps:

  • Trigger when a Salesforce account or contact churn risk score exceeds a defined threshold
  • Retrieve contact email and profile data from the Salesforce record
  • Add the contact to a Google Ads Customer Match re-engagement audience

Connectors Used: Salesforce, Google Ads