FlowKit

Google Ads conversions in n8n: migrating to the Data Manager API before your pipeline stays broken

By Clément Lacaille (Tech-Bharat) · Published 13 August 2026 · updated 7 November 2026 · 7 min read · how we build and test

Server-Side Conversion Tracking — €29

PDF guide in English on this topic · 27 pages · November 2026 edition · 14-day guarantee

See the guide

If an n8n pipeline pushing offline conversions to Google Ads started failing since mid-June, it's not an n8n bug: since June 15, 2026, Google's offline conversions page states that UploadClickConversions requests fail with CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE for developer tokens that sent no offline conversion uploads between December 17, 2025 and June 15, 2026, and it points new users to a separate API, the Data Manager API. It's the same underlying trend that has pushed ad platforms for years to consolidate their integrations around first-party matching data (hashed email and phone) rather than third-party cookies: a landmark study by Goldfarb and Tucker (Privacy Regulation and Online Advertising, Management Science, 2011 — see the study) already showed that tighter advertising-tracking regulation could cut measured campaign effectiveness by more than 60% — which is exactly why advertisers benefit from securing a first-party matching channel that doesn't depend on cookies. This guide covers how to rebuild that pipeline in n8n with the Data Manager API.

Sticky notes sorted on a wall during a workshop
Sticky notes sorted on a wall during a workshop. Photo: Nebulousflynn, CC BY 4.0

What actually changed

Two flows used to be handled by ConversionUploadService on googleads.googleapis.com:

  • Offline conversion import — a lead qualified in-store or closed in a CRM, reported back to Google Ads days after the ad click.
  • Enhanced conversions for leads — a supplementary send of hashed email and phone to improve matching on a conversion already imported.

For developer tokens without recent uploads, both are now refused on the classic Google Ads API and redirected to the Data Manager API (tokens that were already uploading may continue for now), a single entry point Google designed to fan the same data out to multiple products (Google Ads, Display & Video 360, Google Analytics) without multiplying integrations. Enhanced conversions for web are still handled by the Google tag or Google Tag Manager on the browser side and aren't affected by this shift — only the server-side API flow changes.

Preparing the Google Ads account

Before touching n8n, two settings on the Google Ads side gate everything else:

  1. Under Tools and settings → Conversions → Settings, accept the customer data terms if you haven't already — the API silently rejects events until this consent is checked.
  2. Note the Google Ads customer ID (no dashes) of the account that should receive conversions: it's the accountId of the operatingAccount in every call. Also note the conversion action ID (an action of type UPLOAD_CLICKS): it's the productDestinationId.

Enabling the Data Manager API and creating OAuth2 access

The Data Manager API lives in Google Cloud, not the Google Ads developer center:

  1. In a Google Cloud project (existing or dedicated), enable the Data Manager API from the API library.
  2. Create an OAuth 2.0 Client ID (Web application type) under APIs & Services → Credentials, with https://oauth.n8n.cloud/oauth2/callback as the redirect URI on n8n Cloud, or the equivalent URL for your self-hosted instance.
  3. The scope required at authorization is https://www.googleapis.com/auth/datamanager — different from the scope n8n's native Google Ads node uses, so it needs its own credential even if it's the same Google account.

Setting up the credential in n8n

In n8n, create a generic OAuth2 API credential rather than the pre-configured "Google Ads OAuth2 API" credential, which doesn't carry the right scope. Fill in:

  • Client ID and Client Secret from Google Cloud.
  • Authorization URL: https://accounts.google.com/o/oauth2/v2/auth
  • Access Token URL: https://oauth2.googleapis.com/token
  • Scope: https://www.googleapis.com/auth/datamanager

Connect once to generate the refresh token, following the same logic covered in our Google OAuth2 setup guide. This credential then plugs into an HTTP Request node, authentication set to "Predefined Credential Type" pointing at the OAuth2 credential you just created.

Hashing user identifiers

The Data Manager API only accepts identifiers hashed with SHA-256, hex-encoded, on normalized values: lowercase email with all spaces removed (and, for gmail.com and googlemail.com addresses, the dots and any +tag before the @ removed), E.164-format phone with its + (+33...). A Code node before the API call prepares these fields (on n8n 2.x, require('crypto') in a Code node is refused unless the instance runs with NODE_FUNCTION_ALLOW_BUILTIN=crypto):

const crypto = require('crypto');

const normalizeEmail = (e) => {
  const [local, domain] = e.replace(/\s+/g, '').toLowerCase().split('@');
  const gmail = domain === 'gmail.com' || domain === 'googlemail.com';
  return `${gmail ? local.split('+')[0].replace(/\./g, '') : local}@${domain}`;
};
const hash = (v) => crypto.createHash('sha256').update(v).digest('hex');

return [{
  json: {
    ...$json,
    email_hash: hash(normalizeEmail($json.email)),
    phone_hash: hash($json.phone.replace(/[^0-9+]/g, '')),
  },
}];

The Crypto node's Hash operation (SHA256, HEX output) — see our Crypto node guide — runs the same calculation with no code, if you'd rather stick to standard nodes. Only hash email and phone: the transactionId (the lead or order ID on the CRM side) and the GCLID stay in plain text — they're technical identifiers, not personal data in the same sense.

Computer screens showing tables in a control room
Computer screens showing tables in a control room. Photo: Robert Scoble from Half Moon Bay, USA, CC BY 2.0

Building and sending the event

An HTTP Request node, POST to https://datamanager.googleapis.com/v1/events:ingest, with the x-goog-user-project header set to the Google Cloud project ID, carries a body that identifies the destination and then the event:

{
  "destinations": [{
    "operatingAccount": { "accountType": "GOOGLE_ADS", "accountId": "1234567890" },
    "productDestinationId": "987654321"
  }],
  "encoding": "HEX",
  "events": [{
    "transactionId": "deal-48213",
    "eventTimestamp": "2026-08-13T09:15:00Z",
    "eventSource": "WEB",
    "userData": {
      "userIdentifiers": [
        { "emailAddress": "{{ $json.email_hash }}" },
        { "phoneNumber": "{{ $json.phone_hash }}" }
      ]
    },
    "adIdentifiers": { "gclid": "{{ $json.gclid }}" },
    "conversionValue": {{ $json.amount }},
    "currency": "EUR",
    "consent": { "adUserData": "CONSENT_GRANTED", "adPersonalization": "CONSENT_GRANTED" }
  }]
}

This skeleton covers the common case of a lead qualified in a CRM several days after the click. Three details trip people up: the destination is an operatingAccount (customer ID without hyphens) plus productDestinationId, which is the conversion action ID; conversionValue is a plain number with currency beside it; and eventSource is required. Add "validateOnly": true to check a request without ingesting anything, and keep the requestId Google returns to look up its diagnostics. One invalid event rejects the whole request: Google's guide says that if any event fails validation, none of the events are processed. The full request-body schema — optional consent fields, audience events distinct from events:ingest — is documented in Google's official events.ingest method reference; check there for any field not listed above before scaling up to a large volume, since the API schema for this recent product is still evolving quickly.

Avoiding duplicate sends

A CRM that fires the same status-change webhook twice would otherwise send the same conversion twice. The principle is identical to the one covered in our webhook idempotency article: check in a table (Supabase, or an n8n Data Table) whether the transactionId has already been sent before triggering the call, rather than relying solely on possible deduplication on Google's side.

Verifying and scaling up

Under Tools and settings → Conversions → Diagnostics, Google Ads shows the receipt status of events with a delay of a few hours. For an initial import of CRM history rather than a one-off flow, split the send into batches with a Loop Over Items node: the Data Manager API accepts multiple events in the same events array, but it's safer to stick to batches of a few hundred to isolate a partial failure easily rather than resending an entire file on error. If your workflow chains several calls in quick succession, handling 429 errors and retries follows the same logic covered in our guide on AI API rate limits, directly transposable to an ad platform API.

Our PDF guide Server-Side Conversion Tracking runs this request next to Meta, GA4 and LinkedIn on n8n 2.46.6, against a local server that applies Google's documented rules: a batch rejected because one event had no identifier, a customer ID typed with hyphens, the send log and the replay of failed events, and the validateOnly test before going live.

What doesn't change

If your n8n instance also calls the classic Google Ads API for other operations — pausing underperforming campaigns or generating Google Ads and Meta Ads reporting — those flows aren't affected by this shift: only conversion import changes its entry point. Both credentials (classic Google Ads OAuth2 for reporting, generic OAuth2 with the datamanager scope for conversions) coexist without conflict on the same instance.

Summary

Since June 15, 2026, new offline conversion pipelines to Google Ads go through the Data Manager API: a new endpoint (events:ingest), a new OAuth2 scope (datamanager), but the same n8n node pattern used for Meta's or LinkedIn's Conversions API — HTTP Request, SHA-256 hashing, deduplication by business identifier. If this pipeline already feeds an n8n-driven inbound lead qualification flow, the migration is limited to swapping one HTTP Request node for another, without touching the rest of the workflow. And if you need to keep an auditable trail of every conversion sent to an advertising third party — useful under a GDPR review of contact-data processing — the Supabase logging workflows in the Compliance & Audit Pack (€149) follow the same principle covered in our article on GDPR audit trails with Supabase, applied here to an advertising-conversion flow rather than internal personal data.

FAQ

Frequently asked questions

Why did my n8n workflow for importing Google Ads conversions stop working this summer?

Since June 15, 2026, `UploadClickConversions` requests on the classic Google Ads API fail with `CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE` for developer tokens that sent no offline conversion uploads between December 17, 2025 and June 15, 2026. Google points those users to the Data Manager API, a separate API with its own endpoint and OAuth2 scope. Tokens that were already uploading can keep the old path for now, but Data Manager is where Google sends everyone.

Do you need a specific Google Ads node in n8n to use the Data Manager API?

No. n8n's native Google Ads node is limited to reading campaigns; it doesn't cover the Data Manager API. The working approach is to call `https://datamanager.googleapis.com/v1/events:ingest` with an HTTP Request node and a generic OAuth2 credential carrying the `https://www.googleapis.com/auth/datamanager` scope — the exact same pattern used for Meta's or LinkedIn's Conversions API, where n8n also has no dedicated node.

How do you hash an email or phone number before sending it to Google Ads?

Normalize the value first (lowercase, trimmed, international dialing code for a phone number), then compute a hex-encoded SHA-256 hash. n8n's Crypto node (Hash operation, SHA256 algorithm, HEX output) does this calculation without code; a Code node using Node.js's native crypto module works too if you'd rather keep everything in one transform node.

Server-Side Conversion Tracking

€29