特征类型方法 trait-type-methods
允许您将特征分配给用户定义的类型或类别的可选方法,通常根据函数或您自己的内部报告流程进行分配。
NOTE
特征类型方法不会将特征分配给通用分类使用的类别。 请将其视为与通用分类法不同的标签。
对于可视化引用,Trait Types是位于 Traits > Create new trait > Basic Information 下的UI中的下拉控件。
创建新特征类型 create-trait-type
允许您创建新特征类型的POST
方法。
请求
POST https://api.demdex.com/v1/customer-trait-types
示例请求
{
"name":"Custom trait type"
}
响应
{
"pixelType": 34,
"pid": 1099,
"name": "Custom type",
"description": null,
"crUID": 694,
"upUID": 694,
"createTime": 1358297352000,
"updateTime": 1358297352000
}
返回特征类型的属性 return-props
返回有关指定特征类型的详细信息的GET
方法。
请求
GET https://api.demdex.com/v1/customer-trait-types/
<customerTraitTypeId>
响应
{
"pixelType": 4,
"pid": 0,
"name": "Delivery Event",
"description": "Delivery Event",
"crUID": 158,
"upUID": 158,
"createTime": 1299115496000,
"updateTime": 1299115496000
}
返回所有特征类型的属性 return-props-all
一个GET
方法,可返回有关数组中所有特征类型的详细信息。
请求
GET https://api.demdex.com/v1/customer-trait-types/
响应
[
{
"pixelType": 200,
"pid": 1099,
"name": "Customer Specific Trait Type",
"description": "Test",
"crUID": 158,
"upUID": 158,
"createTime": 1349990458000,
"updateTime": 1349990458000
},
{
"pixelType": 1,
"pid": 0,
"name": "User Trait",
"description": "User Trait",
"crUID": 158,
"upUID": 158,
"createTime": 1299115492000,
"updateTime": 1299115492000
},
{
"pixelType": 2,
"pid": 0,
"name": "Site Visitor",
"description": "Site Visitor",
"crUID": 158,
"upUID": 158,
"createTime": 1299115493000,
"updateTime": 1299115493000
}
]
recommendation-more-help
de293fbf-b489-49b0-8daa-51ed303af695