开始使用Adobe Target投放API
IMPORTANT
本指南适用于直接调用Target投放API的at.js和直接服务器端实施。 如果您使用Adobe Experience Platform Web SDK实现Target,请改用Interact API (Experience Platform Edge Network上的
sendEvent命令)。 有关详细信息,请参阅Adobe Experience Platform Web SDK。Target交付API调用如下所示:
curl -X POST \
'https://`clientCode`.tt.omtrdc.net/rest/v1/delivery?client=`clientCode`&sessionId=d359234570e04f14e1faeeba02d6ab9914e' \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"context": {
"channel": "web",
"browser" : {
"host" : "demo"
},
"address" : {
"url" : "http://demo.dev.tt-demo.com/demo/store/index.html"
},
"screen" : {
"width" : 1200,
"height": 1400
}
},
"execute": {
"mboxes" : [
{
"name" : "homepage",
"index" : 1
}
]
}
}'
通过导航到管理 > 实现,可以从Target UI检索clientCode。
在进行Target投放API调用之前,请按照以下步骤操作,以确保响应包含向最终用户显示的相关体验:
recommendation-more-help
target-dev-help-dev