可讓您檢視Audience Manager通用分類法的方法。 此選用的分類方案將特徵組織為業界標準類別。
您無法使用這些方法建立新的分類類別或分類特徵。 若要分類特徵,請使用特徵建立或更新方法指定適當的categoryId
。
GET
方法,可返回有關指定分類類別的詳細資訊。
GET https://api.demdex.com/v1/taxonomies/0/
<categoryId>
成功的回應會傳回200 OK
,以及指定ID的類別。 如果ID不存在,失敗的請求會傳回404 No Content
。
{
"crUID": 158,
"name": "Arts & Entertainment",
"upUID": 158,
"description": "Arts & Entertainment",
"categoryID": 1,
"parentCategoryID": 0
}
GET
方法,可返回陣列中頂級類別的清單。
GET https://api.demdex.com/v1/taxonomies/0/
為簡潔而截斷。
[
{
"crUID": 158,
"name": "Arts & Entertainment",
"upUID": 158,
"description": "Arts & Entertainment",
"categoryID": 1,
"parentCategoryID": 0
},
{
"crUID": 158,
"name": "Automotive",
"upUID": 158,
"description": "Automotive",
"categoryID": 2,
"parentCategoryID": 0
},
{
"crUID": 158,
"name": "Business",
"upUID": 158,
"description": "Business",
"categoryID": 3,
"parentCategoryID": 0
}
]
GET
方法,可針對陣列中指定的父類別傳回子類別。
GET https://api.demdex.com/v1/taxonomies/0/
<categoryId>
/childCategories/
成功的回應會傳回200 OK
,以及指定ID的類別。 如果ID不存在,失敗的請求會傳回404 No Content
。 為簡潔而截斷。
[
{
"crUID": 158,
"name": "Books & Literature",
"upUID": 158,
"description": "Books & Literature",
"categoryID": 25,
"parentCategoryID": 1
},
{
"crUID": 158,
"name": "Celebrity Fan/Gossip",
"upUID": 158,
"description": "Celebrity Fan/Gossip",
"categoryID": 49,
"parentCategoryID": 1
},
{
"crUID": 158,
"name": "Fine Art",
"upUID": 158,
"description": "Fine Art",
"categoryID": 72,
"parentCategoryID": 1
}
]