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