Guides
Conversions

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:

bash
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 }
      }
    }]
  }'
json
{ "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

bash
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
  }'
json
{ "requestId": "67d2e870-4c32-4531-9266-7c05f19d6b56" }
  • Only Authorization: Bearer with the datamanager scope; no login-customer-id.
  • operatingAccount is the account that owns the action; loginAccount is the account through which the user has access (the MCC or the account itself). Ids have 10 digits and no hyphens.
  • productDestinationId is the conversion action id.
  • Each event needs eventTimestamp (RFC 3339 with time zone), eventSource and at least one identifier (adIdentifiers, userData or the device IP).
  • transactionId deduplicates within the same action.
  • If any event fails validation, none is processed. validateOnly: true only validates.

Validation errors

Synchronous errors return 400 INVALID_ARGUMENT with google.rpc.BadRequest:

json
{
  "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" }] }
    ]
  }
}
reasonWhen
INVALID_NUMBER_FORMATAccount id with hyphens or letters
INVALID_CONVERSION_ACTION_IDThe action does not exist in the operating account
INVALID_CONVERSION_ACTION_TYPEThe action is not UPLOAD_CLICKS or was removed
CONVERSION_ACTION_TOO_RECENTLY_CREATEDNew action during newActionCooldownMinutes
DESTINATION_ACCOUNT_TYPE_MISMATCHaccountType other than GOOGLE_ADS
INVALID_CURRENCY_CODECurrency outside ISO 4217
EVENT_TIME_INVALIDEvent in the future (more than 10 minutes) or older than 90 days
NO_IDENTIFIERS_PROVIDEDEvent without an identifier
INVALID_HEX_ENCODING, INVALID_BASE64_ENCODINGuserData hash not in the encoding format
TOO_MANY_DESTINATIONS, TOO_MANY_EVENTSMore 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

bash
curl --url 'https://google-ads.mimicr.dev/v1/requestStatus:retrieve?requestId=67d2e870-4c32-4531-9266-7c05f19d6b56' \
  --header 'Authorization: Bearer <token>'

While processing:

json
{
  "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:

json
"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

EventResult
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 decodePROCESSING_ERROR_REASON_INVALID_GCLID
Valid gclid from another accountPROCESSING_ERROR_OPERATING_ACCOUNT_MISMATCH_FOR_AD_IDENTIFIER
gclid without a clickPROCESSING_ERROR_REASON_CLICK_NOT_FOUND
Event before the clickPROCESSING_ERROR_REASON_CONVERSION_PRECEDES_CLICK
Click older than the windowPROCESSING_ERROR_REASON_EXPIRED_CLICK
Click less than 6 hours old, with enforceClickAge onPROCESSING_ERROR_REASON_TOO_RECENT_CLICK
transactionId already accepted for the actionPROCESSING_ERROR_REASON_DUPLICATE_TRANSACTION_ID
ONE_PER_CLICK action and gclid already convertedPROCESSING_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 transactionId with the prefix reject-<MOTIVO>- ends with PROCESSING_ERROR_REASON_<MOTIVO>.
  • The gclid test-click-not-found ends with CLICK_NOT_FOUND.
  • conversion.set_outcome forces the outcome of pending events by requestId, transactionId or gclid (reason is ACCEPTED or the reason without the prefix).