特征类型方法

可选方法,允许您根据函数或您自己的内部类别流程为用户定义的类型或报告分配特征。

注意

特征类型方法不将特征分配给常用分类使用的类别。 将这些视为与常用分类不同的标签。

对于可视引用,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
    }
]

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now