可選方法,可讓您將特徵指派給使用者定義的類型或類別,通常根據函式或您自己的內部報表程式。
特徵類型方法不會將特徵指派給常見分類法使用的類別。 請將這些標籤視為與通用分類法不同的標籤。
對於可視參考,Trait Types是位於Traits > Create new trait > Basic Information下UI的下拉式控制項。
可讓您建立新特徵類型的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
}
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
}
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
}
]