检索受众

您可以在UI中使用分段服务API或通过Audience Portal检索使用批次分段评估的所有受众。

通过对/segment/definitions端点发出GET请求,检索使用贵组织内的批次分段评估的所有区段定义的列表。

API格式

您必须在请求路径中包含查询参数evaluationInfo.batch.enabled=true,以检索使用批处理分段评估的区段定义。

GET /segment/definitions?evaluationInfo.batch.enabled=true

请求

列出所有已启用批次的区段定义的请求示例
curl -X GET \
  'https://platform.adobe.io/data/core/ups/segment/definitions?evaluationInfo.batch.enabled=true' \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-name: {SANDBOX_NAME}'

响应

成功的响应会返回HTTP状态200,其中包含组织中使用批处理分段评估的区段定义数组。

一个示例响应,其中包含贵组织中所有经过批量分段评估的区段定义的列表
{
    "segments": [
        {
            "id": "15063cb-2da8-4851-a2e2-bf59ddd2f004",
            "schema": {
                "name": "_xdm.context.profile"
            },
            "ttlInDays": 30,
            "imsOrgId": "{ORG_ID}",
            "sandbox": {
                "sandboxId": "",
                "sandboxName": "",
                "type": "production",
                "default": true
            },
            "name": " People who are NOT on their homepage ",
            "expression": {
                "type": "PQL",
                "format": "pql/text",
                "value": "select var1 from xEvent where var1._experience.analytics.endUser.firstWeb.webPageDetails.isHomePage = false"
            },
            "evaluationInfo": {
                "batch": {
                    "enabled": true
                },
                "continuous": {
                    "enabled": false
                },
                "synchronous": {
                    "enabled": false
                }
            },
            "creationTime": 1572029711000,
            "updateEpoch": 1572029712000,
            "updateTime": 1572029712000
        },
        {
            "id": "f15063cb-2da8-4851-a2e2-bf59ddd2f004",
            "schema": {
                "name": "_xdm.context.profile"
            },
            "ttlInDays": 30,
            "imsOrgId": "{ORG_ID}",
            "sandbox": {
                "sandboxId": "",
                "sandboxName": "",
                "type": "production",
                "default": true
            },
            "name": "Homepage_continuous",
            "description": "People who are on their homepage - continuous",
            "expression": {
                "type": "PQL",
                "format": "pql/text",
                "value": "select var1 from xEvent where var1._experience.analytics.endUser.firstWeb.webPageDetails.isHomePage = true"
            },
            "evaluationInfo": {
                "batch": {
                    "enabled": true
                },
                "continuous": {
                    "enabled": true
                },
                "synchronous": {
                    "enabled": false
                }
            },
            "creationTime": 1572021085000,
            "updateEpoch": 1572021086000,
            "updateTime": 1572021086000
        }
    ],
    "page": {
        "totalCount": 2,
        "totalPages": 1,
        "sortField": "creationTime",
        "sort": "desc",
        "pageSize": 2,
        "limit": 100
    },
    "link": {}
}

有关返回的区段定义的更多详细信息可在区段定义终结点指南中找到。

通过使用Audience Portal中的筛选条件,您可以检索贵组织中支持批量分段的所有受众。 选择 筛选器图标 图标以显示筛选器列表。

受众门户中突出显示了过滤器图标。

在可用筛选器内,转到​ 更新频率 ​并选择“批次”。 使用此过滤器可显示贵组织中使用批处理分段评估的所有受众。

选择了批次更新频率,显示组织中使用批次分段评估的所有受众。

要了解有关在Experience Platform中查看受众的更多信息,请阅读受众门户指南