自訂資源

Adobe Campaign提供了一個預定義的資料模型,資料通過不同的資源進行定義。 您可以通過擴展資源來添加您自己的自定義欄位或自定義表(如採購表或產品表)來豐富所提供的資料模型。

可通過API使用 /profileAndServicesExt 終結點和自定義資源名稱。

https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/<resourceName>/

注意

對於非現成資源,請始終使用 "cus" 資源名稱前的前置詞。

只要自定義資源連結到「配置檔案」(Profile)表,您就可以使用它們執行任何操作。 例如,讓我們考慮下面的表結構:

替代文字

在這種情況下, 交易記錄事務詳細資訊產品 只要表連結到 配置檔案 的子菜單。


示例請求

訪問擴展profileAndServicesExt資源的GET請求示例。

-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>' \

它返回所有連結的自定義資源的清單。 然後,可以使用資源URL執行本文檔中描述的任何API任務。

{
"apiName": "resourceType",
"cusProduct": {
        "content": ...,
        "data": "/profileAndServicesExt/cusProduct/",
        "help": "Product",
        "href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/cusProduct/metadata",
        "name": "cusProduct",
        "type": "collection"
    },
"cusTransaction": {
        "content": ...,
        "data": "/profileAndServicesExt/cusTransaction/",
        "help": "Product",
        "href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/cusTransaction/metadata",
        "name": "cusProduct",
        "type": "collection"
    },
    ...
}

有關資料模型擴展的詳細資訊,請參閱市場活動文檔:

本頁內容