> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload enhanced Google Ads conversions

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Adds hashed buyer details to conversions you have already reported, so Google can match more of them to a click.

Use it when you learn who the buyer was after the conversion was reported, for example a form submitted after checkout. Each adjustment finds its conversion by the `order_id` you sent originally, so it only works for a conversion you reported with one. It changes the details on an existing conversion and never creates a new one, so [Upload conversions](/api-reference/upload-google-ads-conversions) has to run first.

Hash each value yourself with SHA-256 over the lowercased, trimmed input and send lowercase hex. Base44 forwards what you send without hashing or normalizing it, so an unhashed or differently formatted value simply fails to match and reports as accepted.

Read the outcome from `total_uploaded` rather than `status`, which reports `success` as soon as one adjustment lands.

<Note>There is no cap on how many rows you can send and no rate limit on this endpoint. Base44 sends them to Google in batches of 2,000, one batch after another, while your request stays open, so a very large list means a very long request. Keep each call to a few thousand rows and send several calls instead.</Note>

<Warning>A 409 means the request to Google timed out after it was sent, so the adjustments may or may not have landed. Unlike [Upload conversions](/api-reference/upload-google-ads-conversions), this endpoint keeps no record of what it has sent, so a retry can apply the same adjustment twice. Don't retry right away; contact support to confirm whether it landed.</Warning>

<Note>This endpoint accepts a personal API key or a workspace API key. A workspace API key acts as the workspace owner.</Note>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json post /api/apps/{app_id}/google-ads/conversions/upload-enhanced
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/google-ads/conversions/upload-enhanced:
    post:
      summary: Upload enhanced Google Ads conversions
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Adds hashed buyer details to conversions you have already reported, so
        Google can match more of them to a click.


        Use it when you learn who the buyer was after the conversion was
        reported, for example a form submitted after checkout. Each adjustment
        finds its conversion by the `order_id` you sent originally, so it only
        works for a conversion you reported with one. It changes the details on
        an existing conversion and never creates a new one, so [Upload
        conversions](/api-reference/upload-google-ads-conversions) has to run
        first.


        Hash each value yourself with SHA-256 over the lowercased, trimmed input
        and send lowercase hex. Base44 forwards what you send without hashing or
        normalizing it, so an unhashed or differently formatted value simply
        fails to match and reports as accepted.


        Read the outcome from `total_uploaded` rather than `status`, which
        reports `success` as soon as one adjustment lands.


        <Note>There is no cap on how many rows you can send and no rate limit on
        this endpoint. Base44 sends them to Google in batches of 2,000, one
        batch after another, while your request stays open, so a very large list
        means a very long request. Keep each call to a few thousand rows and
        send several calls instead.</Note>


        <Warning>A 409 means the request to Google timed out after it was sent,
        so the adjustments may or may not have landed. Unlike [Upload
        conversions](/api-reference/upload-google-ads-conversions), this
        endpoint keeps no record of what it has sent, so a retry can apply the
        same adjustment twice. Don't retry right away; contact support to
        confirm whether it landed.</Warning>


        <Note>This endpoint accepts a personal API key or a workspace API key. A
        workspace API key acts as the workspace owner.</Note>
      operationId: >-
        upload_enhanced_conversion_api_apps__app_id__google_ads_conversions_upload_enhanced_post
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              ID of the app whose Google Ads conversion tracking you want to
              manage.
            title: App Id
          description: >-
            ID of the app whose Google Ads conversion tracking you want to
            manage.
          example: 6820f3a4e7b91d003c45a1f2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnhancedConversionUploadPayload'
            example:
              adjustments:
                - conversion_action_id: '7654321'
                  order_id: ORD-10482
                  adjustment_date_time: '2026-08-26 09:15:00+00:00'
                  user_identifiers:
                    hashed_email: >-
                      d5b8e2b9a1c4f60e7a2f3c8d91b45e6f70a1c2d3e4f5061728394a5b6c7d8e9f
      responses:
        '200':
          description: What happened to the batch of adjustments.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnhancedConversionUploadResult'
        '400':
          description: >-
            Google Ads rejected the whole request, for example a malformed
            `conversion_date_time` or a `conversion_action_id` that is not on
            the account. The response message carries Google's reason.
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            You don't have access to this app or the app does not exist. A
            missing app and an app you cannot reach are deliberately the same
            answer. Marketing setup, campaign edits, generation and resuming
            also return `app_marketing_not_allowed` when the app's owning
            workspace has the FERPA designation. Historical reads, pausing,
            deletion and financial settlement remain available.
        '404':
          description: The app has no connected Google Ads account.
        '409':
          description: >-
            The request to Google Ads timed out after being sent, so the
            adjustments may or may not have landed. Don't retry right away,
            because a retry can apply the same adjustment twice. Contact support
            to confirm whether it landed.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Google Ads is rate limiting the account. Retry later.
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - full_access
        - WorkspaceApiKeyAuth:
            - full_access
        - WorkspaceApiKeyBearerAuth:
            - full_access
components:
  schemas:
    EnhancedConversionUploadPayload:
      properties:
        adjustments:
          items:
            $ref: '#/components/schemas/EnhancedConversionAdjustment'
          type: array
          title: Adjustments
          description: >-
            The adjustments to apply. An empty list is accepted and changes
            nothing.
          example:
            - adjustment_date_time: '2026-08-26 09:15:00+00:00'
              conversion_action_id: '7654321'
              order_id: ORD-10482
              user_identifiers:
                hashed_email: >-
                  d5b8e2b9a1c4f60e7a2f3c8d91b45e6f70a1c2d3e4f5061728394a5b6c7d8e9f
      type: object
      title: EnhancedConversionUploadPayload
    EnhancedConversionUploadResult:
      properties:
        status:
          type: string
          title: Status
          description: >-
            Whether anything reached Google. The value is `success` when at
            least one adjustment landed and `no_rows_uploaded` when none did, so
            it does not tell you the whole batch landed.
          example: success
        total_submitted:
          type: integer
          title: Total Submitted
          description: How many adjustments you sent.
          example: 5
        total_uploaded:
          type: integer
          title: Total Uploaded
          description: >-
            How many adjustments Google accepted. Anything short of
            `total_submitted` is made up of adjustments dropped for carrying no
            usable hashed identifier and adjustments Google rejected one by one,
            and the response does not separate the two.
          example: 4
      type: object
      required:
        - status
        - total_submitted
        - total_uploaded
      title: EnhancedConversionUploadResult
      description: What happened to a batch of enhanced-conversion adjustments.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    EnhancedConversionAdjustment:
      properties:
        conversion_action_id:
          type: string
          title: Conversion Action Id
          description: >-
            Google Ads' own ID for the goal the original conversion counted
            towards, as returned in `google_action_id` by [List conversion
            actions](/api-reference/list-google-ads-conversion-actions).
          example: '7654321'
        order_id:
          type: string
          title: Order Id
          description: >-
            The `order_id` you sent on the original conversion. It is how Google
            finds the conversion to enhance, so an adjustment without it cannot
            be matched.
          example: ORD-10482
        adjustment_date_time:
          type: string
          title: Adjustment Date Time
          description: >-
            When you are making the adjustment, as `YYYY-MM-DD HH:MM:SS+HH:MM`
            including the offset. Google rejects any other format with a 400.
          example: '2026-08-26 09:15:00+00:00'
        user_identifiers:
          $ref: '#/components/schemas/UserIdentifiers'
          description: >-
            Hashed details of the buyer to add to the conversion. Hash every
            value yourself, because Base44 sends them as given. An adjustment
            that ends up with no usable identifier is dropped before Google sees
            it.
        user_agent:
          type: string
          title: User Agent
          description: >-
            The browser user agent from the original conversion, which helps
            Google match it. Leave it out when you do not have it.
          default: ''
          example: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36
      type: object
      required:
        - conversion_action_id
        - order_id
        - adjustment_date_time
        - user_identifiers
      title: EnhancedConversionAdjustment
      description: |-
        Retroactive enhancement of an existing conversion with hashed PII.

        Used when the original conversion was uploaded without PII and we later
        obtain identifying data (e.g. server-side capture after form submit).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
    UserIdentifiers:
      properties:
        hashed_email:
          type: string
          title: Hashed Email
          description: >-
            The buyer's email address, lowercased, trimmed, and SHA-256 hashed
            to lowercase hex.
          default: ''
          example: d5b8e2b9a1c4f60e7a2f3c8d91b45e6f70a1c2d3e4f5061728394a5b6c7d8e9f
        hashed_phone_number:
          type: string
          title: Hashed Phone Number
          description: >-
            The buyer's phone number in E.164 form, SHA-256 hashed to lowercase
            hex.
          default: ''
          example: 9f8e7d6c5b4a39281706f5e4d3c2b1a09f8e7d6c5b4a39281706f5e4d3c2b1a0
        hashed_first_name:
          type: string
          title: Hashed First Name
          description: >-
            The buyer's first name, lowercased and SHA-256 hashed to lowercase
            hex. Base44 only sends it together with `hashed_last_name`, so one
            without the other is dropped and has no effect.
          default: ''
          example: 3c2b1a09f8e7d6c5b4a39281706f5e4d3c2b1a09f8e7d6c5b4a39281706f5e4d
        hashed_last_name:
          type: string
          title: Hashed Last Name
          description: >-
            The buyer's last name, lowercased and SHA-256 hashed to lowercase
            hex. Send it together with `hashed_first_name`, because one without
            the other is dropped.
          default: ''
          example: 706f5e4d3c2b1a09f8e7d6c5b4a39281706f5e4d3c2b1a09f8e7d6c5b4a392817
      type: object
      title: UserIdentifiers
      description: Hashed PII for enhanced conversions (SHA-256).
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.