Experience PlatformDestination SDK使用 Pebble 範本,可讓您將從Experience Platform匯出的資料轉換為目的地所需的格式。
Experience Platform Pebble 與提供的現成版本相比,實作有一些變更 Pebble. 此外,除了 Pebble,Adobe已建立一些可搭配Destination SDK使用的額外函式。
若 建立訊息轉換範本 從Experience Platform匯出至目的地的資料。 訊息轉換範本用於 目標伺服器配置 用於串流目的地。
若要了解此參考頁面中的概念和功能,請閱讀 訊息格式 檔案。 您需要了解 輪廓結構 在Experience Platform中 Pebble 要轉換的範本和匯出的資料。
在前往下文說明的功能之前,請先檢閱區段中的範本範例 使用範本語言進行身分、屬性和區段成員資格轉換. 這裡的例子開始非常簡單,而且複雜性也在增加。
從 Pebble 標籤區段,Destination SDK僅支援:
使用 for
迭代時不同 陣列 或 地圖 範本中的元素。 當您逐一查看陣列時,可以直接取得元素。 當您逐一查看地圖時,會取得每個地圖項目,其中都有索引鍵值組。
identityMap.gaid
, identityMap.email
、或類似。從 Pebble 篩選區段,Destination SDK支援所有功能。 以下進一步的範例說明 date
函式。
從 Pebble 函式部分,Adobe執行 not 支援 範圍 函式。
date
函式。以示範 Pebble 函式用於Destination SDK中,請參閱下方的日期函式(Pebble檔案中的連結)來轉換時間戳記的格式。
您想要變更 lastQualificationTime
預設時間戳記 ISO 8601 Experience Platform匯出至目的地所偏好的其他值的值。
{
"lastQualificationTime": "2022-02-08T18:34:24.000+0000"
}
{{ lastQualificationTime | date(existingFormat="yyyy-MM-dd'T'HH:mm:sss.SSSX", format="yyyy-MM-dd'T'HH:mm:ssX") }}
{
"lastQualificationTime": "2022-02-21T18:34:24Z"
}
除了 Pebble,請參閱下方可供匯出資料的Adobe所建立的其他函式。
addedSegments
和 removedSegments
函式這些函式可用來取得已新增至設定檔或從設定檔移除的區段清單。
{
"identityMap": {
"myIdNamespace": [
{
"id": "external_id1"
},
{
"id": "external_id2"
}
]
},
"segmentMembership": {
"ups": {
"111111": {
"lastQualificationTime": "2019-11-20T13:15:49Z",
"status": "realized"
},
"222222": {
"lastQualificationTime": "2019-11-20T13:15:49Z",
"status": "exited"
},
"333333": {
"lastQualificationTime": "2019-11-20T13:15:49Z",
"status": "realized"
}
}
}
}
added: {% for s in addedSegments(segmentMembership.ups) %}<{{s.key}}>{% endfor %}; removed: {% for s in removedSegments(segmentMembership.ups) %}<{{s.key}}>{% endfor %}
added: <111111><333333>; removed: <222222>
你現在知道 Pebble Destination SDK支援函式,以及如何使用函式來調整匯出資料的格式,以符合您的需求。 接下來,您應檢閱下列頁面: