Expand my Community achievements bar.

SOLVED

Profile Update API using web sdk

Avatar

Employee

We have implemented target using aep web sdk , How can we get  mboxPC value in aep web sdk to use in Single profile update API (https://developers.adobetarget.com/api/#updating-profiles) as ecid is not supported in api ?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

This value is returned in the profile.tntId response token e.g.
profile.tntId: "67677755157554962440218653604594169358-SfaPLX"

View solution in original post

9 Replies

Avatar

Correct answer by
Employee Advisor

This value is returned in the profile.tntId response token e.g.
profile.tntId: "67677755157554962440218653604594169358-SfaPLX"

Avatar

Level 1

We need your guidance on how to obtain profile.tntId. We searched the cookies but we couldn’t find it. We are using Single profile update API and AEP web SDK. We have ECID but we require mboxPC. 

Avatar

Employee Advisor

You can access it via the Response from the Web SDK request (see example here). Part of that response contains a meta object, which includes profile.tntId (and other response tokens that are enabled):
Skærmbillede 2024-02-15 kl. 17.16.20.png

Avatar

Level 1

1000012161.png

 I appreciate your reply, Alex! I can’t find the tntid in the web SDK response. How can I obtain it? Here is my screenshot. I also want to know how to store it in cookies or any other storage to use it after I get it.

Avatar

Employee Advisor

You'll only see data relevant to Target in the response if it's a page that qualifies for a Target activity and therefore the response contains activity information. In your screenshot the payload is empty for that "personalization:decisions" event type, which suggests you're not qualifying for any Target activities. If you're on a page/in a scenario where you qualify for a Target activity you will see the payload look something like this, and part of that payload contains the "meta" object: 

Skærmbillede 2024-02-15 kl. 18.18.35.png 
The link I shared in the previous message gives examples of how you can access the response, at which point you can then store it in cookies, storage etc

Avatar

Level 1

Hi Alex, I appreciate your help. I tried again on a page with a working target activity. I reached to the id:“AT:******” but I still don’t see the tntid in my meta tag. Here is a screenshot of what I get.

Vivek_Malik_0-1708020120591.png

 

Avatar

Employee Advisor

It most likely means the Response Token for profile.tntId isn't active then; if you go to Administration > Response Tokens you can check the status, and if it shows Deactivated then click the toggle button to activate it:
Skærmbillede 2024-02-15 kl. 20.17.11.png

Avatar

Level 1

Thank you Alex! I got it.

 

Last question, what is the best way to store the tntid in cookies? Is there any existing option or configuration for this, or do we have to create something custom? We would be grateful for your guidance on this matter.

 

Regards,

Vivek

Avatar

Employee Advisor

Great that it works now - there isn't any existing configuration for storing the profile.tntId value, so you would just need to write your own JS to do that