Adobe Experience Platform中的目标API响应为空

尝试使用Adobe Experience Platform (AEP)中的特定目标API端点检索目标列表时,返回空列表。 当终结点仅检索自定义目标类型定义,并且不存在任何定义时,会发生此行为。 要解决此问题,请使用流服务API,而不是创作端点。

描述 description

环境

Adobe Experience Platform (AEP)

问题/症状

查询/data/core/activation/authoring/destinations终结点会返回空项目数组,即使存在目标也是如此,并且响应不会反映已配置或活动的目标流。

解决方法 resolution

  1. 在选择API端点之前,确定您需要自定义目标类型定义还是现有已配置目标。

  2. 使用流服务API(而不是创作端点)来检索现有目标。

  3. 向流服务API发送请求,其中包含已启用状态和目标流的筛选器:

    code language-none
    https://platform.adobe.io/data/foundation/flowservice/flows?property=state%3D%3Denabled&property=inheritedAttributes.properties.isDestinationFlow%3D%3Dtrue&projectionFields=name%2CtargetConnectionIds&limit=100
    
  4. 在请求中包含所有必需的标头:

    code language-none
    Accept: application/json
    Content-Type: application/json
    Authorization: Bearer xxxxxxxxxx
    x-api-key: xxxxxxxxx
    x-gw-ims-org-id: xxxxxxxx@AdobeOrg
    x-sandbox-name: xxxxx
    
  5. 发送请求并查看响应,确认返回填充的目标列表。

  6. 验证检索到的数据是否与预期配置的目标匹配。

  7. 仅当使用使用Destination SDK创建的自定义目标类型时,才使用创作端点,因为它不返回标准配置的目标。

相关阅读

目标创作API

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f