Guides
Conversions via Data Manager
Create the conversion action, upload offline sales by gclid with events:ingest and check the result with requestStatus:retrieve.
Since June 15, 2026, Google Ads offline conversion import has moved to the Data Manager API. The upload is validated immediately, but matching against clicks happens later: the result of each event only shows up in requestStatus:retrieve.
1. Create the conversion action
The action must be of type UPLOAD_CLICKS:
curl --request POST \
--url https://google-ads.mimicr.dev/v26/customers/2220330728/conversionActions:mutate \
--header 'Authorization: Bearer <token>' \
--header 'login-customer-id: 6446154552' \
--header 'Content-Type: application/json' \
--data '{
"operations": [{
"create": {
"name": "Pedido entregue",
"type": "UPLOAD_CLICKS",
"category": "PURCHASE",
"status": "ENABLED",
"primaryForGoal": true,
"valueSettings": { "defaultValue": 0, "defaultCurrencyCode": "BRL", "alwaysUseDefaultValue": false }
}
}]
}'{ "results": [{ "resourceName": "customers/2220330728/conversionActions/54542600312" }] }The action id is the last segment: 54542600312. The name is unique among non-removed actions (conversionActionError: DUPLICATE_NAME). In Mimicr, UPLOAD_CLICKS and WEBPAGE are covered; other types give CREATION_NOT_SUPPORTED "(not simulated by Mimicr)". A new action accepts uploads right away, unless the newActionCooldownMinutes toggle is greater than zero.
2. Send the events
curl --request POST \
--url https://google-ads.mimicr.dev/v1/events:ingest \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"destinations": [{
"operatingAccount": { "accountType": "GOOGLE_ADS", "accountId": "2220330728" },
"loginAccount": { "accountType": "GOOGLE_ADS", "accountId": "6446154552" },
"productDestinationId": "54542600312"
}],
"events": [{
"adIdentifiers": { "gclid": "Cj0KCQPJDPYiExQ7aiQacNH20C5wAAAAyy_giNau0skZNqxllO7u3J0j8S6VTvh42Fc27T5E2A3ufVxORnLNqA" },
"conversionValue": 129.9,
"currency": "BRL",
"eventTimestamp": "2026-11-06T01:29:37+00:00",
"transactionId": "pedido-1",
"eventSource": "WEB"
}],
"validateOnly": false
}'{ "requestId": "67d2e870-4c32-4531-9266-7c05f19d6b56" }- Only
Authorization: Bearerwith thedatamanagerscope; nologin-customer-id. operatingAccountis the account that owns the action;loginAccountis the account through which the user has access (the MCC or the account itself). Ids have 10 digits and no hyphens.productDestinationIdis the conversion action id.- Each event needs
eventTimestamp(RFC 3339 with time zone),eventSourceand at least one identifier (adIdentifiers,userDataor the device IP). transactionIddeduplicates within the same action.- If any event fails validation, none is processed.
validateOnly: trueonly validates.
Validation errors
Synchronous errors return 400 INVALID_ARGUMENT with google.rpc.BadRequest:
{
"error": {
"code": 400,
"message": "There was a problem with the request.",
"status": "INVALID_ARGUMENT",
"details": [
{ "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "INVALID_ARGUMENT", "domain": "datamanager.googleapis.com", "metadata": { "requestId": "Iox7Gng0FZgoTHs7LsuPZw" } },
{ "@type": "type.googleapis.com/google.rpc.RequestInfo", "requestId": "Iox7Gng0FZgoTHs7LsuPZw" },
{ "@type": "type.googleapis.com/google.rpc.BadRequest", "fieldViolations": [{ "field": "destinations[0].login_account.account_id", "description": "The account ID must be a number without hyphens.", "reason": "INVALID_NUMBER_FORMAT" }] }
]
}
}reason | When |
|---|---|
INVALID_NUMBER_FORMAT | Account id with hyphens or letters |
INVALID_CONVERSION_ACTION_ID | The action does not exist in the operating account |
INVALID_CONVERSION_ACTION_TYPE | The action is not UPLOAD_CLICKS or was removed |
CONVERSION_ACTION_TOO_RECENTLY_CREATED | New action during newActionCooldownMinutes |
DESTINATION_ACCOUNT_TYPE_MISMATCH | accountType other than GOOGLE_ADS |
INVALID_CURRENCY_CODE | Currency outside ISO 4217 |
EVENT_TIME_INVALID | Event in the future (more than 10 minutes) or older than 90 days |
NO_IDENTIFIERS_PROVIDED | Event without an identifier |
INVALID_HEX_ENCODING, INVALID_BASE64_ENCODING | userData hash not in the encoding format |
TOO_MANY_DESTINATIONS, TOO_MANY_EVENTS | More than 10 destinations or 10,000 events |
No access to the login account, or the operating account outside it: 403 PERMISSION_DENIED. API disabled in the project: 403 SERVICE_DISABLED with metadata.activationUrl. More than 300 requests per minute: 429 RESOURCE_EXHAUSTED.
3. Check the result
curl --url 'https://google-ads.mimicr.dev/v1/requestStatus:retrieve?requestId=67d2e870-4c32-4531-9266-7c05f19d6b56' \ --header 'Authorization: Bearer <token>'
While processing:
{
"requestStatusPerDestination": [{
"destination": { "loginAccount": { "accountId": "6446154552", "accountType": "GOOGLE_ADS" }, "operatingAccount": { "accountId": "2220330728", "accountType": "GOOGLE_ADS" }, "productDestinationId": "54542600312" },
"requestStatus": "PROCESSING",
"eventsIngestionStatus": { "recordCount": "0" },
"warningInfo": {}
}]
}Afterwards, requestStatus becomes SUCCESS, PARTIAL_SUCCESS or FAILED, with eventsIngestionStatus.recordCount (accepted) and errorInfo.errorCounts with the reasons and the event indices:
"errorInfo": { "errorCounts": [{ "reason": "PROCESSING_ERROR_REASON_CLICK_NOT_FOUND", "recordCount": "1", "recordIndices": ["0"] }] }In Mimicr, processing happens 60 seconds (on the sandbox clock) after the upload. To skip the wait: npx mimicr action google-ads conversion.process_now, or advance the clock. An unknown requestId responds 404 NOT_FOUND; validateOnly requests are not stored.
How each event is matched
| Event | Result |
|---|---|
| gclid of a click in the operating account, with the event between the click and the end of the action's window (90 days by default) | accepted |
| gclid that does not decode | PROCESSING_ERROR_REASON_INVALID_GCLID |
| Valid gclid from another account | PROCESSING_ERROR_OPERATING_ACCOUNT_MISMATCH_FOR_AD_IDENTIFIER |
| gclid without a click | PROCESSING_ERROR_REASON_CLICK_NOT_FOUND |
| Event before the click | PROCESSING_ERROR_REASON_CONVERSION_PRECEDES_CLICK |
| Click older than the window | PROCESSING_ERROR_REASON_EXPIRED_CLICK |
Click less than 6 hours old, with enforceClickAge on | PROCESSING_ERROR_REASON_TOO_RECENT_CLICK |
transactionId already accepted for the action | PROCESSING_ERROR_REASON_DUPLICATE_TRANSACTION_ID |
ONE_PER_CLICK action and gclid already converted | PROCESSING_ERROR_REASON_DUPLICATE_GCLID |
In Google, transactionId duplicates are silently dropped; in Mimicr they show up as errors, so you can see them. Valid gclids are the ones created by the sandbox (traffic.click or lead.submit).
Accepted conversions go into the metrics on the click date (Metrics and delivery).
Force outcomes
- A
transactionIdwith the prefixreject-<MOTIVO>-ends withPROCESSING_ERROR_REASON_<MOTIVO>. - The gclid
test-click-not-foundends withCLICK_NOT_FOUND. conversion.set_outcomeforces the outcome of pending events byrequestId,transactionIdorgclid(reasonisACCEPTEDor the reason without the prefix).