書き出されたプロファイル構造の検証 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 は、宛先設定に対応した
instanceId
で、/destinations
エンドポイントを使用して作成されています。詳しくは、宛先設定の取得を参照してください。
API 形式
POST authoring/testing/template/render
destinationId
template
profiles
呼び出しの本文にプロファイルを追加する場合は、サンプルプロファイル生成 API を使用することで、一部のプロファイルを生成できます。
Render template 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 は、設定可能な集計を使用した宛先設定に対応しています。リクエストの本文には、2 つのプロファイルが含まれ、それぞれに 3 つのオーディエンス資格と 5 つの 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 が、書き出されたデータの詳細と共に返されます。応答では、オーディエンスメンバーシップと ID に基づいてプロファイルが集計されていることがわかります。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 SDK API エンドポイントは、一般的な Experience Platform API エラーメッセージの原則に従います。Platform トラブルシューティングガイドの API ステータスコードおよびリクエストヘッダーエラーを参照してください。
次の手順 next-steps
このドキュメントでは、メッセージ変換テンプレートを使用して、宛先で想定されているデータ形式に一致する、書き出されたプロファイルを生成する方法を確認しました。この手順が宛先設定プロセスのどこに当てはまるかを把握するには、Destination SDK を使用した宛先の設定方法を参照してください。