---
title: "POST /v23/{+resourceName}:addOperations"
method: POST
path: "/v23/{+resourceName}:addOperations"
tags: ["customers"]
---

# POST /v23/{+resourceName}:addOperations

`POST /v23/{+resourceName}:addOperations`

Adds operations to the offline user data job. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [DatabaseError]() [FieldError]() [HeaderError]() [InternalError]() [MutateError]() [OfflineUserDataJobError]() [QuotaError]() [RequestError]()

## Path parameters

- `resourceName` string, required

## Request body

- GoogleAdsSearchads360V23ServicesAddOfflineUserDataJobOperationsRequest — Request message for OfflineUserDataJobService.AddOfflineUserDataJobOperations.
  - `enablePartialFailure` boolean — True to enable partial failure for the offline user data job.
  - `validateOnly` boolean — If true, the request is validated but not executed. Only errors are returned, not results.
  - `operations` GoogleAdsSearchads360V23ServicesOfflineUserDataJobOperation[] — Required. The list of operations to be done.
    - `remove` GoogleAdsSearchads360V23CommonUserData — User data holding user identifiers and attributes.
      - `userIdentifiers` GoogleAdsSearchads360V23CommonUserIdentifier[] — User identification info.
        - `hashedPhoneNumber` string — Hashed phone number using SHA-256 hash function after normalization (E164 standard).
        - `addressInfo` GoogleAdsSearchads360V23CommonOfflineUserAddressInfo — Address identifier of offline data.
          - `hashedStreetAddress` string — The street address of the user hashed using SHA-256 hash function after normalization (lower case only). Only accepted for ConversionAdjustmentUploadService.
          - `hashedLastName` string — Last name of the user, which is hashed as SHA-256 after normalized (lower case only and no punctuation).
          - `city` string — City of the address. Only accepted for Store Sales.
          - `countryCode` string — 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
          - `hashedFirstName` string — First name of the user, which is hashed as SHA-256 after normalized (Lowercase all characters; Remove any extra spaces before, after, and in between).
          - `state` string — State code of the address. Only accepted for Store Sales.
          - `postalCode` string — Postal code of the user's address.
        - `mobileId` string — Mobile device ID (advertising ID/IDFA).
        - `thirdPartyUserId` string — Advertiser-assigned user ID for Customer Match upload, or third-party-assigned user ID for
        - `hashedEmail` string — Hashed email address using SHA-256 hash function after normalization.
        - `userIdentifierSource` 'UNSPECIFIED' | 'UNKNOWN' | 'FIRST_PARTY' | 'THIRD_PARTY' — Source of the user identifier when the upload is from Store Sales
      - `transactionAttribute` GoogleAdsSearchads360V23CommonTransactionAttribute — Attribute of the store sales transaction.
        - `transactionDateTime` string — Timestamp when transaction occurred. Required. The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default. Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
        - `conversionAction` string — The resource name of conversion action to report conversions to. Required.
        - `storeAttribute` GoogleAdsSearchads360V23CommonStoreAttribute — Store attributes of the transaction.
          - `storeCode` string — Store code from https://support.google.com/business/answer/3370250#storecode
        - `orderId` string — Transaction order id. Useful to group transactions which are part of the same order.
        - `transactionAmountMicros` number, double — Transaction amount in micros. Required. Transaction amount in micros needs to be greater than 1000. If item Attributes are provided, it represents the total value of the items, after multiplying the unit price per item by the quantity provided in the ItemAttributes.
        - `itemAttribute` GoogleAdsSearchads360V23CommonItemAttribute — Item attributes of the transaction.
          - `itemId` string — A unique identifier of a product. It must be the exact same Merchant Center Item ID you use in your Google Merchant Center for this product. Required.
          - `quantity` string, int64 — The number of items sold. Defaults to 1 if not set.
          - `countryCode` string — Common Locale Data Repository (CLDR) territory code of the country associated with the feed where your items are uploaded. See https://developers.google.com/google-ads/api/reference/data/codes-formats#country-codes for more information. This information is useful to differentiate product information in cases where a product (identified by item_id) is associated with multiple countries.
          - `languageCode` string — ISO 639-1 code of the language associated with the feed where your items are uploaded. This information is useful to differentiate product information in cases where a product (identified by item_id) is associated with multiple languages.
          - `merchantId` string, int64 — ID of the Merchant Center Account. Required.
        - `currencyCode` string — Transaction currency code. ISO 4217 three-letter code is used. Required.
        - `customValue` string — Value of the custom variable for each transaction. Allowed only if a custom key is provided in the store sales metadata.
      - `userAttribute` GoogleAdsSearchads360V23CommonUserAttribute — User attribute, can only be used with CUSTOMER_MATCH_WITH_ATTRIBUTES job type.
        - `lifetimeValueBucket` integer — Advertiser defined lifetime value bucket for the user. The valid range for a lifetime value bucket is from 1 (low) to 10 (high), except for remove operation where 0 will also be accepted.
        - `averagePurchaseValueMicros` string, int64 — Advertiser defined average purchase value in micros for the user.
        - `lifecycleStage` string — Optional. Advertiser defined lifecycle stage for the user. The accepted values are "Lead", "Active" and "Churned".
        - `lastPurchaseDateTime` string — Timestamp of the last purchase made by the user. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default.
        - `firstPurchaseDateTime` string — Optional. Timestamp of the first purchase made by the user. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default.
        - `averagePurchaseCount` integer — Advertiser defined average number of purchases that are made by the user in a 30 day period.
        - `shoppingLoyalty` GoogleAdsSearchads360V23CommonShoppingLoyalty — The shopping loyalty related data. Shopping utilizes this data to provide users with a better experience. Accessible only to merchants on the allow-list.
          - `loyaltyTier` string — The membership tier. It is a free-form string as each merchant may have their own loyalty system. For example, it could be a number from 1 to 10, or a string such as "Golden" or "Silver", or even empty string "".
        - `eventAttribute` GoogleAdsSearchads360V23CommonEventAttribute[] — Optional. Advertiser defined events and their attributes. All the values in the nested fields are required. Currently this field is in beta.
          - `itemAttribute` GoogleAdsSearchads360V23CommonEventItemAttribute[] — Required. Item attributes of the event.
            - `itemId` string — Optional. A unique identifier of a product. It can be either the Merchant Center Item ID or GTIN (Global Trade Item Number).
          - `event` string — Required. Advertiser defined event to be used for remarketing. The accepted values are "Viewed", "Cart", "Purchased" and "Recommended".
          - `eventDateTime` string — Required. Timestamp at which the event happened. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default.
        - `lifetimeValueMicros` string, int64 — Advertiser defined lifetime value for the user.
        - `acquisitionDateTime` string — Timestamp when the user was acquired. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default.
      - `consent` GoogleAdsSearchads360V23CommonConsent — Consent
        - `adPersonalization` 'UNSPECIFIED' | 'UNKNOWN' | 'GRANTED' | 'DENIED' — This represents consent for ad personalization. This can only be set for OfflineUserDataJobService and UserDataService.
        - `adUserData` 'UNSPECIFIED' | 'UNKNOWN' | 'GRANTED' | 'DENIED' — This represents consent for ad user data.
    - `create` GoogleAdsSearchads360V23CommonUserData — User data holding user identifiers and attributes.
      - `userIdentifiers` GoogleAdsSearchads360V23CommonUserIdentifier[] — User identification info.
        - `hashedPhoneNumber` string — Hashed phone number using SHA-256 hash function after normalization (E164 standard).
        - `addressInfo` GoogleAdsSearchads360V23CommonOfflineUserAddressInfo — Address identifier of offline data.
          - `hashedStreetAddress` string — The street address of the user hashed using SHA-256 hash function after normalization (lower case only). Only accepted for ConversionAdjustmentUploadService.
          - `hashedLastName` string — Last name of the user, which is hashed as SHA-256 after normalized (lower case only and no punctuation).
          - `city` string — City of the address. Only accepted for Store Sales.
          - `countryCode` string — 2-letter country code in ISO-3166-1 alpha-2 of the user's address.
          - `hashedFirstName` string — First name of the user, which is hashed as SHA-256 after normalized (Lowercase all characters; Remove any extra spaces before, after, and in between).
          - `state` string — State code of the address. Only accepted for Store Sales.
          - `postalCode` string — Postal code of the user's address.
        - `mobileId` string — Mobile device ID (advertising ID/IDFA).
        - `thirdPartyUserId` string — Advertiser-assigned user ID for Customer Match upload, or third-party-assigned user ID for
        - `hashedEmail` string — Hashed email address using SHA-256 hash function after normalization.
        - `userIdentifierSource` 'UNSPECIFIED' | 'UNKNOWN' | 'FIRST_PARTY' | 'THIRD_PARTY' — Source of the user identifier when the upload is from Store Sales
      - `transactionAttribute` GoogleAdsSearchads360V23CommonTransactionAttribute — Attribute of the store sales transaction.
        - `transactionDateTime` string — Timestamp when transaction occurred. Required. The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default. Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00"
        - `conversionAction` string — The resource name of conversion action to report conversions to. Required.
        - `storeAttribute` GoogleAdsSearchads360V23CommonStoreAttribute — Store attributes of the transaction.
          - `storeCode` string — Store code from https://support.google.com/business/answer/3370250#storecode
        - `orderId` string — Transaction order id. Useful to group transactions which are part of the same order.
        - `transactionAmountMicros` number, double — Transaction amount in micros. Required. Transaction amount in micros needs to be greater than 1000. If item Attributes are provided, it represents the total value of the items, after multiplying the unit price per item by the quantity provided in the ItemAttributes.
        - `itemAttribute` GoogleAdsSearchads360V23CommonItemAttribute — Item attributes of the transaction.
          - `itemId` string — A unique identifier of a product. It must be the exact same Merchant Center Item ID you use in your Google Merchant Center for this product. Required.
          - `quantity` string, int64 — The number of items sold. Defaults to 1 if not set.
          - `countryCode` string — Common Locale Data Repository (CLDR) territory code of the country associated with the feed where your items are uploaded. See https://developers.google.com/google-ads/api/reference/data/codes-formats#country-codes for more information. This information is useful to differentiate product information in cases where a product (identified by item_id) is associated with multiple countries.
          - `languageCode` string — ISO 639-1 code of the language associated with the feed where your items are uploaded. This information is useful to differentiate product information in cases where a product (identified by item_id) is associated with multiple languages.
          - `merchantId` string, int64 — ID of the Merchant Center Account. Required.
        - `currencyCode` string — Transaction currency code. ISO 4217 three-letter code is used. Required.
        - `customValue` string — Value of the custom variable for each transaction. Allowed only if a custom key is provided in the store sales metadata.
      - `userAttribute` GoogleAdsSearchads360V23CommonUserAttribute — User attribute, can only be used with CUSTOMER_MATCH_WITH_ATTRIBUTES job type.
        - `lifetimeValueBucket` integer — Advertiser defined lifetime value bucket for the user. The valid range for a lifetime value bucket is from 1 (low) to 10 (high), except for remove operation where 0 will also be accepted.
        - `averagePurchaseValueMicros` string, int64 — Advertiser defined average purchase value in micros for the user.
        - `lifecycleStage` string — Optional. Advertiser defined lifecycle stage for the user. The accepted values are "Lead", "Active" and "Churned".
        - `lastPurchaseDateTime` string — Timestamp of the last purchase made by the user. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default.
        - `firstPurchaseDateTime` string — Optional. Timestamp of the first purchase made by the user. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default.
        - `averagePurchaseCount` integer — Advertiser defined average number of purchases that are made by the user in a 30 day period.
        - `shoppingLoyalty` GoogleAdsSearchads360V23CommonShoppingLoyalty — The shopping loyalty related data. Shopping utilizes this data to provide users with a better experience. Accessible only to merchants on the allow-list.
          - `loyaltyTier` string — The membership tier. It is a free-form string as each merchant may have their own loyalty system. For example, it could be a number from 1 to 10, or a string such as "Golden" or "Silver", or even empty string "".
        - `eventAttribute` GoogleAdsSearchads360V23CommonEventAttribute[] — Optional. Advertiser defined events and their attributes. All the values in the nested fields are required. Currently this field is in beta.
          - `itemAttribute` GoogleAdsSearchads360V23CommonEventItemAttribute[] — Required. Item attributes of the event.
            - `itemId` string — Optional. A unique identifier of a product. It can be either the Merchant Center Item ID or GTIN (Global Trade Item Number).
          - `event` string — Required. Advertiser defined event to be used for remarketing. The accepted values are "Viewed", "Cart", "Purchased" and "Recommended".
          - `eventDateTime` string — Required. Timestamp at which the event happened. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default.
        - `lifetimeValueMicros` string, int64 — Advertiser defined lifetime value for the user.
        - `acquisitionDateTime` string — Timestamp when the user was acquired. The format is YYYY-MM-DD HH:MM:SS[+/-HH:MM], where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account's timezone as default.
      - `consent` GoogleAdsSearchads360V23CommonConsent — Consent
        - `adPersonalization` 'UNSPECIFIED' | 'UNKNOWN' | 'GRANTED' | 'DENIED' — This represents consent for ad personalization. This can only be set for OfflineUserDataJobService and UserDataService.
        - `adUserData` 'UNSPECIFIED' | 'UNKNOWN' | 'GRANTED' | 'DENIED' — This represents consent for ad user data.
    - `removeAll` boolean — Remove all previously provided data. This is only supported for Customer Match.
  - `enableWarnings` boolean — True to enable warnings for the offline user data job. When enabled, a warning will not block the OfflineUserDataJobOperation, and will also return warning messages about malformed field values.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/searchads360.md) · [All operations](https://skmtc.net/google/apis/searchads360/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/searchads360/versions/40d087435afd/schema)
