验证导出的配置文件结构 render-template-api-operations
https://platform.adobe.io/data/core/activation/authoring/testing/template/render
此页面列出并描述了可使用/authoring/testing/template/render
API端点执行的所有API操作,以根据消息转换模板渲染与目标的预期格式匹配的导出配置文件。 有关此端点支持的功能的说明,请阅读创建模板。
渲染模板API操作快速入门 get-started
在继续之前,请查看入门指南以了解成功调用API所需了解的重要信息,包括如何获取所需的目标创作权限和所需的标头。
根据消息转换模板呈现导出的用户档案 render-exported-data
您可以通过向authoring/testing/template/render
端点发出POST请求并提供目标配置的目标ID和使用示例模板API端点创建的模板来呈现导出的配置文件。
您可以首先使用简单模板导出原始配置文件而不应用任何转换,然后转到更复杂的模板,将转换应用到配置文件。 简单模板的语法为:"template": "{% for profile in input.profiles %}{{profile|raw}}{% endfor %}}"
- 您应在此处使用的目标ID是与使用
/destinations
端点创建的目标配置相对应的instanceId
。 有关详细信息,请参阅检索目标配置。
API格式
POST authoring/testing/template/render
destinationId
template
profiles
如果要在调用正文中添加配置文件,可以使用示例配置文件生成API来生成一些配置文件。
请注意,渲染模板API端点返回的响应因目标聚合策略而异。 如果您的目标具有可配置的聚合策略,则响应中还会返回用于确定如何聚合用户档案的聚合密钥。 有关详细信息,请阅读聚合策略。
aggregationKey
CONFIGURABLE_AGGREGATION
时才会出现。profiles
output
以下部分提供上述两种情况的详细请求和响应。
使用最大努力聚合和请求正文中包含的单个用户档案呈现导出的用户档案 best-effort
请求
以下请求渲染导出的配置文件,该配置文件符合您的目标所需的格式。 在本例中,目标ID对应于具有最大努力聚合的目标配置,而示例用户档案包含在请求正文中。
curl --location --request POST 'https://platform.adobe.io/data/core/activation/authoring/testing/template/render' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-api-key: {API_KEY}' \
--header 'Authorization: Bearer {ACCESS_TOKEN}' \
--header 'x-gw-ims-org-id: {ORG_ID}' \
--header 'x-sandbox-name: {SANDBOX_NAME}' \
--data-raw '
{
"destinationId": "947c1c46-008d-40b0-92ec-3af86eaf41c1",
"template": "{#- THIS is an example template for a single profile -#}\r\n{#- A '\''-'\'' at the beginning or end of a tag removes all whitespace on that side of the tag. -#}\r\n{\r\n \"identities\": [\r\n {%- for idMapEntry in input.profile.identityMap -%}\r\n {%- set namespace = idMapEntry.key -%}\r\n {%- for identity in idMapEntry.value %}\r\n {\r\n \"type\": \"{{ namespace }}\",\r\n \"id\": \"{{ identity.id }}\"\r\n }{%- if not loop.last -%},{%- endif -%}\r\n {%- endfor -%}{%- if not loop.last -%},{%- endif -%}\r\n {% endfor %}\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n {%- for segment in input.profile.segmentMembership.ups | added %}\r\n \"{{ segment.key }}\"{%- if not loop.last -%},{%- endif -%}\r\n {% endfor %}\r\n ],\r\n \"remove\": [\r\n {#- Alternative syntax for filtering audiences by status: -#}\r\n {% for segment in removedSegments(input.profile.segmentMembership.ups) %}\r\n \"{{ segment.key }}\"{%- if not loop.last -%},{%- endif -%}\r\n {% endfor %}\r\n ]\r\n }\r\n}",
"profiles": [
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T16:59:00.828461Z",
"status": "realized"
},
"segmentid3": {
"lastQualificationTime": "2021-10-26T16:59:00.828469Z",
"status": "exited"
},
"segmentid2": {
"lastQualificationTime": "2021-10-26T16:59:00.828468Z",
"status": "realized"
}
}
},
"identityMap": {
"gaid": [
{
"id": "gaid-BLAcJ"
}
],
"idfa": [
{
"id": "idfa-Iv5AG"
}
],
"email": [
{
"id": "email-rbN62"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
}
]
}'
响应
响应会返回渲染模板的结果,或返回遇到的任何错误。
成功的响应返回HTTP状态200以及导出数据的详细信息。 在output
参数中查找作为转义字符串的导出配置文件。
失败的响应返回HTTP状态400以及所遇到错误的描述。
{
"results": [
{
"profiles": [
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T16:59:00.828461Z",
"status": "realized"
},
"segmentid3": {
"lastQualificationTime": "2021-10-26T16:59:00.828469Z",
"status": "exited"
},
"segmentid2": {
"lastQualificationTime": "2021-10-26T16:59:00.828468Z",
"status": "realized"
}
}
},
"identityMap": {
"gaid": [
{
"id": "gaid-BLAcJ"
}
],
"idfa": [
{
"id": "idfa-Iv5AG"
}
],
"email": [
{
"id": "email-rbN62"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
}
],
"output": "{\r\n \"identities\": [\r\n {\r\n \"type\": \"gaid\",\r\n \"id\": \"gaid-BLAcJ\"\r\n },\r\n {\r\n \"type\": \"idfa\",\r\n \"id\": \"idfa-Iv5AG\"\r\n },\r\n {\r\n \"type\": \"email\",\r\n \"id\": \"email-rbN62\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\",\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n}"
}
]
}
呈现具有可配置聚合的导出用户档案和包含在请求正文中的用户档案 configurable-aggregation
请求
以下请求渲染多个导出配置文件,这些配置文件符合您的目标所需的格式。 在此示例中,目标ID对应于具有可配置聚合的目标配置。 请求正文中包含两个配置文件,每个配置文件具有三个受众资格和五个身份。 您可以使用示例配置文件生成API生成要在调用中发送的配置文件。
curl --location --request POST 'https://platform.adobe.io/data/core/activation/authoring/testing/template/render' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-api-key: {API_KEY}' \
--header 'Authorization: Bearer {ACCESS_TOKEN}' \
--header 'x-gw-ims-org-id: {ORG_ID}' \
--header 'x-sandbox-name: {SANDBOX_NAME}' \
--data-raw '{
"destinationId": "c2bc84c5-589c-43a1-96ea-becfa941f5be",
"template": "{#- THIS is an example template for multiple profiles -#}\r\n{#- A '\''-'\'' at the beginning or end of a tag removes all whitespace on that side of the tag. -#}\r\n{\r\n \"profiles\": [\r\n {%- for profile in input.profiles %}\r\n {\r\n \"identities\": [\r\n {%- for idMapEntry in profile.identityMap -%}\r\n {%- set namespace = idMapEntry.key -%}\r\n {%- for identity in idMapEntry.value %}\r\n {\r\n \"type\": \"{{ namespace }}\",\r\n \"id\": \"{{ customerData }}\"\r\n }{%- if not loop.last -%},{%- endif -%}\r\n {%- endfor -%}{%- if not loop.last -%},{%- endif -%}\r\n {% endfor %}\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n {%- for segment in profile.segmentMembership.ups | added %}\r\n \"{{ segment.key }}\"{%- if not loop.last -%},{%- endif -%}\r\n {% endfor %}\r\n ],\r\n \"remove\": [\r\n {#- Alternative syntax for filtering audiences by status: -#}\r\n {% for segment in removedSegments(profile.segmentMembership.ups) %}\r\n \"{{ segment.key }}\"{%- if not loop.last -%},{%- endif -%}\r\n {% endfor %}\r\n ]\r\n }\r\n }{%- if not loop.last -%},{%- endif -%}\r\n {% endfor %}\r\n ]\r\n}",
"profiles": [
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.947859Z",
"status": "realized"
},
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.947860Z",
"status": "exited"
},
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.947860Z",
"status": "realized"
}
}
},
"identityMap": {
"amazon_channel": [
{
"id": "amazon_channel-biCbJ"
}
],
"named_user_id": [
{
"id": "named_user_id-0Q3hp"
}
],
"channel": [
{
"id": "channel-mN1Hw"
}
],
"android_channel": [
{
"id": "android_channel-MVw4L"
}
],
"ios_channel": [
{
"id": "ios_channel-2OjnN"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.948187Z",
"status": "realized"
},
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.948188Z",
"status": "exited"
},
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.948188Z",
"status": "realized"
}
}
},
"identityMap": {
"amazon_channel": [
{
"id": "amazon_channel-fxt2p"
}
],
"named_user_id": [
{
"id": "named_user_id-sboQe"
}
],
"channel": [
{
"id": "channel-MRelR"
}
],
"android_channel": [
{
"id": "android_channel-M46ze"
}
],
"ios_channel": [
{
"id": "ios_channel-40Vrf"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
}
]
}'
响应
响应会返回渲染模板的结果,或返回遇到的任何错误。
成功的响应返回HTTP状态200以及导出数据的详细信息。 在响应中注意如何根据受众成员资格和身份聚合用户档案。 在output
参数中查找作为转义字符串的导出配置文件。
失败的响应返回HTTP状态400以及所遇到错误的描述。
{
"results": [
{
"aggregationKey": {
"destinationInstanceId": "49966037-32cd-4457-a105-2cbf9c01826a",
"segmentId": "segmentid3",
"segmentStatus": "exited",
"identityNamespaces": [
"android_channel",
"amazon_channel",
"ios_channel",
"channel"
]
},
"profiles": [
{
"segmentMembership": {
"ups": {
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "exited"
}
}
},
"identityMap": {
"ios_channel": [
{
"id": "ios_channel-2OjnN"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "exited"
}
}
},
"identityMap": {
"channel": [
{
"id": "channel-mN1Hw"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "exited"
}
}
},
"identityMap": {
"amazon_channel": [
{
"id": "amazon_channel-biCbJ"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "exited"
}
}
},
"identityMap": {
"android_channel": [
{
"id": "android_channel-MVw4L"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "exited"
}
}
},
"identityMap": {
"ios_channel": [
{
"id": "ios_channel-40Vrf"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "exited"
}
}
},
"identityMap": {
"channel": [
{
"id": "channel-MRelR"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "exited"
}
}
},
"identityMap": {
"amazon_channel": [
{
"id": "amazon_channel-fxt2p"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "exited"
}
}
},
"identityMap": {
"android_channel": [
{
"id": "android_channel-M46ze"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
}
],
"output": "{\r\n \"profiles\": [\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"ios_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"amazon_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"android_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"ios_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"amazon_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"android_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n }\r\n ]\r\n}"
},
{
"aggregationKey": {
"destinationInstanceId": "49966037-32cd-4457-a105-2cbf9c01826a",
"segmentId": "segmentid1",
"segmentStatus": "realized",
"identityNamespaces": [
"android_channel",
"amazon_channel",
"ios_channel",
"channel"
]
},
"profiles": [
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "realized"
}
}
},
"identityMap": {
"ios_channel": [
{
"id": "ios_channel-2OjnN"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "realized"
}
}
},
"identityMap": {
"channel": [
{
"id": "channel-mN1Hw"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "realized"
}
}
},
"identityMap": {
"amazon_channel": [
{
"id": "amazon_channel-biCbJ"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "realized"
}
}
},
"identityMap": {
"android_channel": [
{
"id": "android_channel-MVw4L"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "realized"
}
}
},
"identityMap": {
"ios_channel": [
{
"id": "ios_channel-40Vrf"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "realized"
}
}
},
"identityMap": {
"channel": [
{
"id": "channel-MRelR"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "realized"
}
}
},
"identityMap": {
"amazon_channel": [
{
"id": "amazon_channel-fxt2p"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "realized"
}
}
},
"identityMap": {
"android_channel": [
{
"id": "android_channel-M46ze"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
}
],
"output": "{\r\n \"profiles\": [\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"ios_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"amazon_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"android_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"ios_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"amazon_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"android_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n }\r\n ]\r\n}"
},
{
"aggregationKey": {
"destinationInstanceId": "49966037-32cd-4457-a105-2cbf9c01826a",
"segmentId": "segmentid2",
"segmentStatus": "realized",
"identityNamespaces": [
"android_channel",
"amazon_channel",
"ios_channel",
"channel"
]
},
"profiles": [
{
"segmentMembership": {
"ups": {
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "realized"
}
}
},
"identityMap": {
"ios_channel": [
{
"id": "ios_channel-2OjnN"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "realized"
}
}
},
"identityMap": {
"channel": [
{
"id": "channel-mN1Hw"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "realized"
}
}
},
"identityMap": {
"amazon_channel": [
{
"id": "amazon_channel-biCbJ"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "realized"
}
}
},
"identityMap": {
"android_channel": [
{
"id": "android_channel-MVw4L"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "realized"
}
}
},
"identityMap": {
"ios_channel": [
{
"id": "ios_channel-40Vrf"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "realized"
}
}
},
"identityMap": {
"channel": [
{
"id": "channel-MRelR"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "realized"
}
}
},
"identityMap": {
"amazon_channel": [
{
"id": "amazon_channel-fxt2p"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "realized"
}
}
},
"identityMap": {
"android_channel": [
{
"id": "android_channel-M46ze"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
}
],
"output": "{\r\n \"profiles\": [\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"ios_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"amazon_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"android_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"ios_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"amazon_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"android_channel\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n }\r\n ]\r\n}"
},
{
"aggregationKey": {
"destinationInstanceId": "49966037-32cd-4457-a105-2cbf9c01826a",
"segmentId": "segmentid3",
"segmentStatus": "exited",
"identityNamespaces": [
"named_user_id"
]
},
"profiles": [
{
"segmentMembership": {
"ups": {
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "exited"
}
}
},
"identityMap": {
"named_user_id": [
{
"id": "named_user_id-0Q3hp"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid3": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "exited"
}
}
},
"identityMap": {
"named_user_id": [
{
"id": "named_user_id-sboQe"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
}
],
"output": "{\r\n \"profiles\": [\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"named_user_id\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"named_user_id\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n ],\r\n \"remove\": [\r\n \"segmentid3\"\r\n ]\r\n }\r\n }\r\n ]\r\n}"
},
{
"aggregationKey": {
"destinationInstanceId": "49966037-32cd-4457-a105-2cbf9c01826a",
"segmentId": "segmentid1",
"segmentStatus": "realized",
"identityNamespaces": [
"named_user_id"
]
},
"profiles": [
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "realized"
}
}
},
"identityMap": {
"named_user_id": [
{
"id": "named_user_id-0Q3hp"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid1": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "realized"
}
}
},
"identityMap": {
"named_user_id": [
{
"id": "named_user_id-sboQe"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
}
],
"output": "{\r\n \"profiles\": [\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"named_user_id\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"named_user_id\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid1\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n }\r\n ]\r\n}"
},
{
"aggregationKey": {
"destinationInstanceId": "49966037-32cd-4457-a105-2cbf9c01826a",
"segmentId": "segmentid2",
"segmentStatus": "realized",
"identityNamespaces": [
"named_user_id"
]
},
"profiles": [
{
"segmentMembership": {
"ups": {
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.947+0000",
"status": "realized"
}
}
},
"identityMap": {
"named_user_id": [
{
"id": "named_user_id-0Q3hp"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
},
{
"segmentMembership": {
"ups": {
"segmentid2": {
"lastQualificationTime": "2021-10-26T17:41:55.948+0000",
"status": "realized"
}
}
},
"identityMap": {
"named_user_id": [
{
"id": "named_user_id-sboQe"
}
]
},
"attributes": {
"key": {
"value": "string"
}
}
}
],
"output": "{\r\n \"profiles\": [\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"named_user_id\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n },\r\n {\r\n \"identities\": [\r\n {\r\n \"type\": \"named_user_id\",\r\n \"id\": \"{moviestar_region=dIqYn-moviestar_region}\"\r\n }\r\n ],\r\n \"AdobeExperiencePlatformSegments\": {\r\n \"add\": [\r\n \"segmentid2\"\r\n ],\r\n \"remove\": [\r\n ]\r\n }\r\n }\r\n ]\r\n}"
}
]
}
API错误处理 api-error-handling
Destination SDKAPI端点遵循常规Experience PlatformAPI错误消息原则。 请参阅平台疑难解答指南中的API状态代码和请求标头错误。
后续步骤 next-steps
阅读本文档后,您现在知道如何使用消息转换模板生成与目标的预期数据格式匹配的导出用户档案。 阅读如何使用Destination SDK配置目标,以了解此步骤在配置目标的过程中所处的位置。