Expand my Community achievements bar.

Join Cristinel Anastasoaie, Timothy Furlow, and Brent Kostak, WEDNESDAY, 2/28/24 @8am PT for the next Adobe Target Community Q&A Coffee Break on topics from the recent High Performance Recommendations Webinar PT 2 of the ongoing Target Personalization Maturity Webinar Series
SOLVED

sending multiple Supplemental Data Id in the same request

Avatar

Level 1

can we send multiple Supplemental Data Id in the same request to Delivery API? Adobe Delivery API 

curl -X POST \
  'https://demo.tt.omtrdc.net/rest/v1/delivery?client=demo&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
        }
      },
      "id": {
        "marketingCloudVisitorId": "2304820394812039"
      },
      "property" : {
        "token": "08b62abd-c3e7-dfb2-da93-96b3aa724d81"
      },
      "experienceCloud": {
        "analytics": {
          "supplementalDataId" : "23423498732598234",
          "trackingServer": "ags041.sc.omtrdc.net",
          "logging": "server_side"
        }
      },
        "execute": {
        "mboxes" : [
          {
            "name" : "homepage",
            "index" : 1
          }
        ]
      }
    }'

 can I also determine Supplemental Data Id to a specific mbox if I have more than one ?

curl -X POST \
  'https://demo.tt.omtrdc.net/rest/v1/delivery?client=demo&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
        }
      },
      "id": {
        "marketingCloudVisitorId": "2304820394812039"
      },
      "property" : {
        "token": "08b62abd-c3e7-dfb2-da93-96b3aa724d81"
      },
      "experienceCloud": {
        "analytics": {
          "supplementalDataId" : "23423498732598234",
          "trackingServer": "ags041.sc.omtrdc.net",
          "logging": "server_side"
        }
      },
        "execute": {
        "mboxes" : [
          {
            "name" : "homepage",
            "index" : 1
          },
{ "name" : "homepage2", "index" : 1 }
] } }'

 Thanks For Your Help

1 Accepted Solution

Avatar

Correct answer by
Level 5

Please read this section how the SDID works

https://www.npmjs.com/package/@adobe-mcid/visitor-js-server


- Use reset server state to generate new SDID (part of visitor id service)

- Use SDID to your Target payload (use Target Server Side Batch for multiple mBoxes);
- Send the same SDID in Analytics payload
(So you are not generating multiple SDID)
 /

View solution in original post

1 Reply

Avatar

Correct answer by
Level 5

Please read this section how the SDID works

https://www.npmjs.com/package/@adobe-mcid/visitor-js-server


- Use reset server state to generate new SDID (part of visitor id service)

- Use SDID to your Target payload (use Target Server Side Batch for multiple mBoxes);
- Send the same SDID in Analytics payload
(So you are not generating multiple SDID)
 /