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。Conversion 调整 UploadService 接受 hashed_email、hashed_phone_number 和 address_info。identifier 只能是下列其中一项:
hashedEmail

string

标准化后,使用 SHA-256 哈希函数对电子邮件地址进行哈希处理。对于目标客户匹配、实体店销售、ConversionUploadService 和 ConversionAdjustUploadService,可接受这些条款。

hashedPhoneNumber

string

经过标准化处理后,使用 SHA-256 哈希函数对电话号码进行哈希处理(E164 标准)。对于目标客户匹配、实体店销售、ConversionUploadService 和 ConversionAdjustUploadService,可接受这些条款。

mobileId

string

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

thirdPartyUserId

string

广告客户分配的用户 ID(用于上传目标客户匹配数据)或第三方分配的用户 ID(用于实体店销售)。仅适用于目标客户匹配和实体店销售。

addressInfo

object (OfflineUserAddressInfo)

地址信息。只能用于目标客户匹配、实体店销售和转化调整项上传服务。

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 哈希函数进行哈希处理的用户的街道地址(仅限小写)。仅对 Conversion 调整 UploadService 接受。