Validar estructura de perfil exportada render-template-api-operations
https://platform.adobe.io/data/core/activation/authoring/testing/template/render
Esta página enumera y describe todas las operaciones de API que puede realizar mediante el extremo de API /authoring/testing/template/render
para procesar perfiles exportados que coincidan con el formato esperado del destino, según su plantilla de transformación de mensajes. Para obtener una descripción de la funcionalidad admitida por este extremo, lea crear plantilla.
Introducción a las operaciones de API de plantilla de procesamiento get-started
Antes de continuar, revisa la guía de introducción para obtener información importante que necesitas conocer para poder realizar llamadas a la API correctamente, incluyendo cómo obtener el permiso de creación de destino requerido y los encabezados requeridos.
Procesar perfiles exportados basados en la plantilla de transformación de mensajes render-exported-data
Puede procesar perfiles exportados realizando una solicitud de POST al extremo authoring/testing/template/render
y proporcionando el ID de destino de la configuración de destino y la plantilla que creó mediante el extremo de API de plantilla de ejemplo.
Puede empezar por utilizar una plantilla sencilla que exporte los perfiles sin procesar sin aplicar ninguna transformación y, a continuación, pasar a una plantilla más compleja que aplique transformaciones a los perfiles. La sintaxis de la plantilla simple es:"template": "{% for profile in input.profiles %}{{profile|raw}}{% endfor %}}"
- El id. de destino que debe usar aquí es el
instanceId
que corresponde a una configuración de destino creada con el extremo/destinations
. Consulte recuperar una configuración de destino para obtener más información.
Formato de API
POST authoring/testing/template/render
destinationId
template
profiles
Si desea agregar perfiles al cuerpo de la llamada, puede generar algunos mediante la API de generación de perfiles de muestra.
Tenga en cuenta que la respuesta devuelta por el extremo de la API de plantilla de procesamiento difiere según la política de agregación de destino. Si el destino tiene una política de agregación configurable, la clave de agregación que determina cómo se agregan los perfiles también se devuelve en la respuesta. Lea acerca de directivas de agregación para obtener más detalles.
aggregationKey
CONFIGURABLE_AGGREGATION
.profiles
output
En las secciones siguientes se proporcionan solicitudes y respuestas detalladas para los dos casos descritos anteriormente.
Procesar perfiles exportados con agregación de mejor esfuerzo y un solo perfil incluido en el cuerpo de la solicitud best-effort
Solicitud
La siguiente solicitud procesa un perfil exportado que coincide con el formato esperado por el destino. En este ejemplo, el ID de destino corresponde a una configuración de destino con agregación de esfuerzo máximo y se incluye un perfil de muestra en el cuerpo de la solicitud.
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"
}
}
}
]
}'
Respuesta
La respuesta devuelve el resultado de procesar la plantilla o cualquier error encontrado.
Una respuesta correcta devuelve el estado HTTP 200 con detalles de los datos exportados. Busque el perfil exportado en el parámetro output
, como una cadena de escape.
Una respuesta incorrecta devolverá el estado HTTP 400 junto con descripciones de los errores encontrados.
{
"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}"
}
]
}
Procesar perfiles exportados con agregación y perfiles configurables incluidos en el cuerpo de la solicitud configurable-aggregation
Solicitud
La siguiente solicitud procesa varios perfiles exportados que coinciden con el formato esperado por el destino. En este ejemplo, el ID de destino corresponde a una configuración de destino con agregación configurable. En el cuerpo de la solicitud se incluyen dos perfiles, cada uno con tres cualificaciones de audiencia y cinco identidades. Puede generar perfiles para enviarlos en la llamada usando la API de generación de perfiles de muestra.
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"
}
}
}
]
}'
Respuesta
La respuesta devuelve el resultado de procesar la plantilla o cualquier error encontrado.
Una respuesta correcta devuelve el estado HTTP 200 con detalles de los datos exportados. Observe en la respuesta cómo se agregan los perfiles en función de la pertenencia a la audiencia y las identidades. Busque los perfiles exportados en el parámetro output
, como una cadena de escape.
Una respuesta incorrecta devolverá el estado HTTP 400 junto con descripciones de los errores encontrados.
{
"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}"
}
]
}
Administración de errores de API api-error-handling
Los extremos de la API de Destination SDK siguen los principios generales del mensaje de error de la API de Experience Platform. Consulte Códigos de estado de API y errores de encabezado de solicitud en la guía de solución de problemas de Platform.
Pasos siguientes next-steps
Después de leer este documento, ahora sabe cómo utilizar la plantilla de transformación de mensajes para generar perfiles exportados que coincidan con el formato de datos esperado del destino. Lee cómo usar el Destination SDK para configurar tu destino para saber dónde encaja este paso en el proceso de configuración de tu destino.