UserIdentifier

用户身份信息。

JSON 表示法
{
  "userIdentifierSource": enum (UserIdentifierSource),

  // Union field identifier can be only one of the following:
  "hashedEmail": string,
  "hashedPhoneNumber": string,
  "mobileId": string,
  "thirdPartyUserId": string,
  "addressInfo": {
    object (OfflineUserAddressInfo)
  }
  // End of list of possible types for union field identifier.
}
字段
userIdentifierSource

enum (UserIdentifierSource)

如果上传数据来自实体店销售、ConversionUploadService 或 ConversionAdjustmentUploadService,则为用户标识符的来源。

联合字段 identifier。只能指定一个值。对于 OfflineUserDataJobService,客户匹配接受 hashed_email、hashed_phone_number、mobile_id、third_party_user_id 和 address_info;实体店销售接受 hashed_email、hashed_phone_number、third_party_user_id 和 address_info。ConversionUploadService 接受 hashed_email 和 hashed_phone_number。ConversionAdjustmentUploadService 接受 hashed_email、hashed_phone_number 和 address_info。identifier 只能是下列其中一项:
hashedEmail

string

使用 SHA-256 哈希函数对经过规范化处理的电子邮件地址进行哈希处理。适用于目标客户匹配、实体店销售、ConversionUploadService 和 ConversionAdjustmentUploadService。

hashedPhoneNumber

string

使用 SHA-256 哈希函数对经过标准化(E164 标准)的电话号码进行哈希处理。适用于目标客户匹配、实体店销售、ConversionUploadService 和 ConversionAdjustmentUploadService。

mobileId

string

移动设备 ID(广告 ID/IDFA)。仅适用于目标客户匹配。

thirdPartyUserId

string

对于目标客户匹配上传,使用广告客户分配的用户 ID;对于实体店销售,使用第三方分配的用户 ID。仅接受目标客户匹配和实体店销售数据。

addressInfo

object (OfflineUserAddressInfo)

地址信息。仅接受目标客户匹配、实体店销售和 ConversionAdjustmentUploadService。

UserIdentifierSource

线下实体店销售、点击促成的转化和转化调整上传的用户标识符来源类型。

枚举
UNSPECIFIED 未指定。
UNKNOWN 仅用于返回值。表示此版本中的值未知
FIRST_PARTY 表示用户标识符由第一方(广告客户)提供。
THIRD_PARTY 表示用户标识符由第三方(合作伙伴)提供。

OfflineUserAddressInfo

离线数据的地址标识符。

JSON 表示法
{
  "hashedFirstName": string,
  "hashedLastName": string,
  "city": string,
  "state": string,
  "countryCode": string,
  "postalCode": string,
  "hashedStreetAddress": string
}
字段
hashedFirstName

string

用户的名字,经过标准化处理后将使用 SHA-256 算法进行哈希处理(所有字符均应小写;移除名字前、中、后的所有多余空格)。

hashedLastName

string

用户的姓氏,经过标准化后将使用 SHA-256 算法进行哈希处理(仅限小写字母,不含标点符号)。

city

string

地址所在的城市。仅适用于实体店销售和 ConversionAdjustmentUploadService。

state

string

地址所在的州/省/直辖市/自治区代码。仅适用于实体店销售和 ConversionAdjustmentUploadService。

countryCode

string

用户地址的 ISO-3166-1 alpha-2 国家/地区代码(两个字母)。

postalCode

string

用户地址的邮政编码。

hashedStreetAddress

string

用户的街道地址(经过规范化后使用 SHA-256 哈希函数进行哈希处理,仅限小写字母)。仅适用于 ConversionAdjustmentUploadService。