When to use the Data Manager API
Use the Data Manager API when your backend needs to send a qualified lead or a completed offline sale to Google Ads. Since June 15, 2026, Google requires it for new offline conversion and enhanced conversions for leads integrations. Existing Google Ads API upload integrations have separate eligibility rules; that date did not switch off every existing uploader. See Google's migration notice.
This guide follows one CRM qualification event into one Google Ads UPLOAD_CLICKS conversion action. It covers access, the payload, processing diagnostics and retries. Customer Match, call conversions and store sales require their own implementation choices.
Start by checking whether a supported CRM connector already meets your needs. A custom API integration gives you control over event selection, value calculations and recovery, but your team also owns the queue, credentials and monitoring. The Data Manager interface and the Data Manager API are different ways to operate an integration; choosing the API does not remove that work.
From CRM state to a checked upload
Save the event
Time, value, consent
Stable transaction key
Send and record
events:ingest
requestId + record index
Check processing
requestStatus:retrieve
Resolve errors per destination
Then reconcile eligible conversions with Google Ads.
Processing success alone does not establish attribution.
An HTTP success response is only one checkpoint. The event still has to pass asynchronous processing, meet attribution requirements and appear in the intended reports. Whether it influences bidding also depends on the conversion action and campaign goal settings.
Identify the conversion owner before writing the request
Enable the Data Manager API in your Google Cloud project. Obtain an OAuth access token with the https://www.googleapis.com/auth/datamanager scope, using an authorized user or service account. That identity also needs access to the relevant Google Ads account or manager account. A Cloud IAM role alone does not grant Google Ads access. API keys are not supported. Follow the access setup guide.
The destination needs three separate decisions:
| REST field | What it identifies | Common mistake |
|---|---|---|
operatingAccount.accountId | The Google Ads account that owns the conversion action | Using the campaign account when a manager owns cross-account conversions |
loginAccount.accountId | The account through which the credential has access | Copying an unrelated manager ID from another integration |
productDestinationId | The numeric conversion action ID, as a string | Sending a tag label or a full resource name |
Use customer IDs without hyphens. For direct access, the login and operating accounts can be the same. With manager access, they can differ. The action for this example must be UPLOAD_CLICKS. Check destination configuration and the offline conversion prerequisites.
Access, conversion owner, campaign account
loginAccount
Manager A
Credential has access here
operatingAccount
Manager A
Owns the conversion action
Campaign account
Child account B
Uses cross-account tracking
Send to the action owned by A, not automatically to B.
Preserve the business event and its identifiers
Create the delivery record when the CRM reaches the agreed business state. Keep the event time, the destination, a stable transaction key, the value and its calculation version. A retry should read that saved record rather than reconstructing it from today's CRM state.
The example below uses a captured gclid. If you use customer data for enhanced conversions for leads, normalize it before SHA-256 hashing and declare the hash encoding in the request, such as encoding: "HEX". Google's rules differ by field: phone numbers use E.164; Gmail and Googlemail addresses have special dot and plus-suffix handling. Do not apply those email rules to every domain. Follow the current formatting rules, and never hash a gclid as though it were an email address.
Send the consent state actually recorded for the event. The sample assumes both consent signals were granted; copying those values into every CRM export would be incorrect. Hashing does not establish permission to send the data. Restrict access to saved payloads, and keep raw contact details and access tokens out of ordinary application logs. See the Consent schema.
Do not put your CRM lead ID into adIdentifiers.leadId. That field refers to a Google-generated lead form identifier. As of November 13, 2026, Google's offline conversion guide says attribution through leadId and matchId is not yet available, even though the fields exist in the schema. Keep your own lead key in the delivery ledger and derive transactionId from the business event. Check the identifier requirements before choosing a matching method.
Send one qualified-lead event
Suppose a qualified lead has a 20% chance of closing and a completed sale contributes 100,000 KZT on the value basis you have chosen. The illustrative expected value is:
This is a forecast, not booked revenue. Use a consistent revenue or margin basis across the conversion action. The lead value guide explains how to estimate and review those inputs.
Save this REST template as qualified-lead.json. The account IDs, action ID, timestamp, transaction key and click ID are illustrative and must be replaced. The event is a back-office CRM qualification, so its source is OTHER; use the source of the actual event in your integration. The original ad click having happened on a website does not make every later event a web event.
conversionValue is a number in currency units, not micros. eventTimestamp is the business event time in RFC 3339 format, including a time zone. Keep it unchanged on a transport retry. These are REST field names; client libraries may expose snake_case equivalents. The authoritative contract is events.ingest.
Run the following in Bash with a short-lived token supplied securely through DM_ACCESS_TOKEN. Do not enable shell tracing or paste a token into the command itself.
With validateOnly: true, the API checks the request without ingesting events. Passing this check does not prove that Google Ads can attribute the conversion. After fixing validation errors, set it to false for a controlled real upload. Save the returned requestId and any fieldWarnings. There is no reason to poll processing diagnostics for a validation-only request.
This example intentionally has one destination. When expanding to several, configure destination references explicitly so that an event cannot accidentally reach every destination in the request.
Read processing results before closing the delivery record
There are two failure stages. A request that fails initial validation is rejected as a whole. An accepted request can later have a mixture of successful and failed records during processing. Do not port a Google Ads API partial_failure flag into this API.
Google recommends waiting 30 minutes before the first status lookup, then polling with backoff. Its guidance allows up to 24 hours for processing; this is not a promise that every upload will finish within your preferred reporting interval. See request diagnostics.
Set DM_REQUEST_ID to the ID from the real ingestion response:
Inspect each entry in requestStatusPerDestination, including errorInfo.errorCounts and warningInfo.warningCounts:
requestStatus | Operational response |
|---|---|
PROCESSING | Keep the request open and schedule another lookup |
SUCCESS | Review warnings, then reconcile against Google Ads reporting |
PARTIAL_SUCCESS | Identify failed records and correct their errors |
FAILED | Investigate the destination and record errors before resubmitting |
The API's November 4, 2026 release added record-level diagnostic indices. recordIndices are zero-based positions in the original request. Save the original array order alongside requestId; sorting the rows before interpreting the result points you at the wrong events. Indices belong to their destination, and the same record can appear under more than one reason. See the release notes and requestStatus.retrieve schema.
Five records, two errors to resolve
One destination; PARTIAL_SUCCESS; recordIndices: [1, 3]
| Array index | transactionId | Processing result | Next step |
|---|---|---|---|
| 0 | demo-1 | Succeeded | Reconcile |
| 1 | demo-2 | Error | Correct and retry |
| 2 | demo-3 | Succeeded | Reconcile |
| 3 | demo-4 | Error | Correct and retry |
| 4 | demo-5 | Succeeded | Reconcile |
Preserve the original order. Deduplicate error indices before retrying.
In that example, the failed-index set is {1, 3}. Correct two records rather than replaying all five. If another error also lists index 3, the retry set still contains two unique records. A warning alone is not an instruction to resend a successful event. Keep both the error details and the decision taken by your worker.
Separate transport retries from value adjustments
Use a stable transactionId for the same business conversion and action. A new random ID on every retry can create another conversion. However, a repeated ID is not a universal “ignore this duplicate” instruction either.
When the ID matches an existing conversion within the same action, Data Manager treats the event as an adjustment. A new conversionValue replaces the recorded total. Other metadata, such as the original gclid, is not updated. If the ID does not match, the API can create a new conversion. Adjustments must still contain the fields and identifiers required for a valid event. See conversion adjustments.
Suppose a deliberate reassessment changes this lead's expected value from 20,000 to 25,000 KZT. The difference is 5,000 KZT, but the value sent in the adjustment must be 25,000:
That behavior makes a saved payload essential. A retry after a timeout should not silently recalculate the value using a newer model. Keep transport recovery and intentional business corrections as separate operations in your own system.
| Situation | What to send |
|---|---|
| Timeout or retryable transport failure | The saved event, with the same ID, timestamp and value; use bounded backoff |
| A record failed processing because its data was wrong | The corrected record, preserving its business identity and documenting the correction |
| An approved value revision | The same conversion identity with the full replacement value |
| A cancellation that must remove the conversion count | A separately supported retraction process, checked before migration |
As of November 13, 2026, the migration guide states that Data Manager API does not support retractions. Restating the value to zero leaves the conversion count intact. If cancellation handling requires removing that count, resolve the supported adjustment route and its eligibility before cutting over.
Cut over with evidence from both systems
Google permits up to 2,000 events in an ingestion request. Treat that as a limit, not a target every worker must fill. Smaller batches can make initial troubleshooting easier; use the API limits when sizing throughput and backoff.
Before migration, assign one writer to each business event and conversion action. Keep the existing and replacement senders from uploading overlapping batches. An HTTP acknowledgement from the new sender is insufficient evidence to retire the old one.
Accept the integration when the following checks pass:
- A known CRM event reaches the intended conversion-owning account and action, with the original time, currency and agreed value.
- The delivery ledger connects that event to the exact request, array index, destination status and diagnostic outcome. Tokens and raw contact details are absent from routine logs.
- Validation failures, processing failures and transient transport errors follow different recovery paths. A retry does not create a new transaction key or change the value.
- A controlled value adjustment replaces the total as intended. Cancellation handling has a documented, supported path if the business requires it.
- Eligible uploaded events are reconciled with Google Ads after processing and reporting delays, using compatible dates, time zones and conversion definitions. Differences are explained rather than hidden by comparing unrelated totals.
Track queue age, failed records and unresolved requests as well as volume sent. A growing queue with successful HTTP responses is still an integration problem.
If the CRM and Google Ads disagree today, an attribution audit can establish where events are lost, duplicated or valued inconsistently before the uploader is replaced.
Sources
Technical requirements checked on November 13, 2026. Account IDs, event records and values in the examples are synthetic. The request is an implementation template, not evidence of a successful upload to a live Google Ads account.
- Google Ads API: offline conversion migration notice
- Data Manager API: access setup, destinations and offline prerequisites
- Sending offline events, data formatting and consent fields
- Ingestion REST reference, diagnostics guide and status REST reference
- Conversion adjustments, migration differences, API limits and release notes
FAQ
Does this replace the Google Ads API for campaign management?
No. This integration sends conversion events. Campaigns, budgets and other Google Ads resources remain separate operations. Keep the APIs your application needs for those tasks.
Can I remove website tracking after adding the CRM uploader?
The uploader does not capture the original click identifier or implement consent collection on the website. Keep the parts of your web setup needed to preserve attribution identifiers and the recorded consent state.
Will a sale that closes several weeks later still be attributed?
That depends on the matching method, applicable upload rules and the conversion window configured for the action. A valid timestamp alone does not make an event eligible. Check those conditions for your sales cycle before selecting the conversion event.
Should I also import the same sale through GA4?
Choose a defined measurement route for the same business outcome. If you retain a second action for comparison, review which actions campaign goals use so that both copies do not independently influence bidding. Reconcile them before changing the primary goal.
