可選方法,允許您將特徵分配給用戶定義的類型或類別,通常根據函式或您自己的內部報告流程進行。
特徵類型方法不會將特徵指定給 通用分類。 將這些標籤視為與常用分類分離的標籤。
為了便於查看, Trait Types 是位於 UI 在 Traits > Create new trait > Basic Information。
A 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
}
A 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
}
A 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
}
]