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 filter部分,Destination SDK支援所有函式。 下面的示例說明 date
函式可在Destination SDK中使用。
從 Pebble 函式部分,Adobe 不 支援 範圍 的子菜單。
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中支援函式,以及如何使用這些函式來調整導出資料的格式以滿足您的需要。 接下來,您應查看以下頁面: