分类API方法 taxonomic-api-methods

允许您查看Audience Manager通用分类的方法。 此可选分类方案将特征组织为行业标准类别。

NOTE
不能使用这些方法创建新的分类类别或分类特征。 要对特征进行分类,请使用特征创建或更新方法指定相应的categoryId

返回特定分类 return-specific-taxonomy

返回有关指定分类类别详细信息的GET方法。

请求

GET https://api.demdex.com/v1/taxonomies/0/<categoryId>

响应

成功的响应返回指定ID的200 OK和类别。 如果ID不存在,则失败的请求返回404 No Content

{
    "crUID": 158,
    "name": "Arts & Entertainment",
    "upUID": 158,
    "description": "Arts & Entertainment",
    "categoryID": 1,
    "parentCategoryID": 0
}

返回所有分类类别 return-all-taxonomy-categories

返回数组中顶级类别列表的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
    }
]

返回分类子类别 return-taxonomy-sub-categories

GET方法,返回数组中指定父类别的子类别。

请求

GET https://api.demdex.com/v1/taxonomies/0/<categoryId>/childCategories/

响应

成功的响应返回指定ID的200 OK和类别。 如果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
    }
]
recommendation-more-help
de293fbf-b489-49b0-8daa-51ed303af695