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)

上传来自 Store Sales、ConversionUploadService 或 ConversionAdjustmentUploadService 时的用户标识符的来源。

联合字段 identifier。必须且只能指定一个。对于线下转化数据作业服务,目标客户匹配接受 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

经过标准化(E164 标准)后,使用 SHA-256 哈希函数对电话号码进行哈希处理。可用于目标客户匹配、实体店销售、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。