Third Party ID (thirdPartyId)
If your organization uses an ID to identify your visitor, you can use thirdPartyID
to deliver content. A thirdPartyID
is a persistent ID that your business utilizes to identify an end user, regardless of whether they interact with your business from web, mobile, or IoT channels. In other words, the thirdPartyId
references user profile data that can be utilized across channels. However, you must provide the thirdPartyID
for every Adobe Target Delivery API call you make.
The following sample call demonstrates the use of a thirdPartyId
.
const TargetClient = require("@adobe/target-nodejs-sdk");
const CONFIG = {
client: "acmeclient",
organizationId: "1234567890@AdobeOrg"
};
const targetClient = TargetClient.create(CONFIG);
targetClient.getOffers({
request: {
id: {
thirdPartyId: "B234A029348"
},
execute: {
mboxes: [{
name: "some-mbox"
}]
}
}
})
.then(console.log)
.catch(console.error);
ClientConfig config = ClientConfig.builder()
.client("acmeclient")
.organizationId("1234567890@AdobeOrg")
.build();
TargetClient targetClient = TargetClient.create(config);
VisitorId id = new VisitorId()
.thirdPartyId("B234A029348");
Context context = new Context().channel(ChannelType.WEB);
MboxRequest mbox = new MboxRequest()
.name("some-mbox")
.index(0);
ExecuteRequest executeRequest = new ExecuteRequest()
.mboxes(Arrays.asList(mbox));
TargetDeliveryRequest request = TargetDeliveryRequest.builder()
.context(context)
.execute(executeRequest)
.build();
TargetDeliveryResponse offers = targetClient.getOffers(request);
In this scenario, Adobe Target will generate a tntId
since it was not passed into the original call, which will be mapped to the provided thirdPartyId
.
Marketing Cloud Visitor ID (marketingCloudVisitorId)
The marketingCloudVisitorId
is a universal and persistent ID that identifies your visitors across all solutions in the Adobe Experience Cloud. When your organization implements the ID service, this ID lets you identify the same site visitor and their data in different Experience Cloud solutions, including Adobe Target, Adobe Analytics, and Adobe Audience Manager. Please note the marketingCloudVisitorId
is required when integrating Target with Adobe Analytics and Adobe Audience Manager.
The following sample call demonstrates how a marketingCloudVisitorId
that was retrieved from the Experience Cloud ID Service is passed to Target.
const TargetClient = require("@adobe/target-nodejs-sdk");
const CONFIG = {
client: "acmeclient",
organizationId: "1234567890@AdobeOrg"
};
const targetClient = TargetClient.create(CONFIG);
targetClient.getOffers({
request: {
id: {
marketingCloudVisitorId: "10527837386392355901041112038610706884"
},
execute: {
mboxes: [{
name: "some-mbox"
}]
}
}
})
.then(console.log)
.catch(console.error);
ClientConfig config = ClientConfig.builder()
.client("acmeclient")
.organizationId("1234567890@AdobeOrg")
.build();
TargetClient targetClient = TargetClient.create(config);
VisitorId id = new VisitorId()
.marketingCloudVisitorId("10527837386392355901041112038610706884");
Context context = new Context().channel(ChannelType.WEB);
MboxRequest mbox = new MboxRequest()
.name("some-mbox")
.index(0);
ExecuteRequest executeRequest = new ExecuteRequest()
.mboxes(Arrays.asList(mbox));
TargetDeliveryRequest request = TargetDeliveryRequest.builder()
.context(context)
.execute(executeRequest)
.build();
TargetDeliveryResponse offers = targetClient.getOffers(request);
In this scenario, Target will generate a tntId
since it was not passed into the original call, which will be mapped to the provided marketingCloudVisitorId
.
Customer ID (customerIds)
Customer IDs can be added to, or associated with, an Experience Cloud Visitor ID. Whenever sending customerIds
, the marketingCloudVisitorId
must also be provided. Furthermore, an authentication status can be provided along with each customerId
for each visitor. The following authentication statuses may be used:
Authentication Status | User Status |
---|---|
unknown | Unknown or never authenticated. This state can be used for scenarios such as that in which a visitor lands on your site by clicking a display advert. |
authenticated | The user is currently authenticated with an active session on your website or app. |
logged_out | The user was authenticated but actively logged out. The user intended to disconnect from the authenticated state. The user no longer wants to be treated as authenticated. |
Please note that only when the customerId
is in an authenticated state will Target reference the user profile data that is stored and linked to the customerId. If the customerId
is in an unknown or logged_out
state, it will be ignored, and any user profile data that may be associated with that customerId
will not be leveraged for audience targeting.
const TargetClient = require("@adobe/target-nodejs-sdk");
const CONFIG = {
client: "acmeclient",
organizationId: "1234567890@AdobeOrg"
};
const targetClient = TargetClient.create(CONFIG);
targetClient.getOffers({
request: {
id: {
marketingCloudVisitorId : "10527837386392355901041112038610706884",
customerIds: [{
id: "134325423",
integrationCode : "crm_data",
authenticatedState : "authenticated"
}]
},
execute: {
mboxes: [{
name: "some-mbox"
}]
}
}
})
.then(console.log)
.catch(console.error);
ClientConfig config = ClientConfig.builder()
.client("acmeclient")
.organizationId("1234567890@AdobeOrg")
.build();
TargetClient targetClient = TargetClient.create(config);
CustomerId customerId = new CustomerId()
.id("134325423")
.integrationCode("crm_data")
.authenticatedState(AuthenticatedState.AUTHENTICATED);
VisitorId id = new VisitorId()
.marketingCloudVisitorId("10527837386392355901041112038610706884")
.customerIds(Arrays.asList(customerId));
Context context = new Context().channel(ChannelType.WEB);
MboxRequest mbox = new MboxRequest()
.name("some-mbox")
.index(0);
ExecuteRequest executeRequest = new ExecuteRequest()
.mboxes(Arrays.asList(mbox));
TargetDeliveryRequest request = TargetDeliveryRequest.builder()
.context(context)
.execute(executeRequest)
.build();
TargetDeliveryResponse offers = targetClient.getOffers(request);
The example above demonstrates how to send a customerId
with an authenticatedState
. When sending a customerId
, the integrationCode
, id
, and authenticatedState
as well as the marketingCloudVisitorId
are required. The integrationCode
is the alias of the customer attributes file you provided through CRS.
Merged Profile
You can combine tntId
, thirdPartyID
, and marketingCloudVisitorId
in the same request. In this scenario, Adobe Target will maintain the mapping of all these IDs and pin it to a visitor. Learn how profiles are merged and synced in real time using the different identifiers.
const TargetClient = require("@adobe/target-nodejs-sdk");
const CONFIG = {
client: "acmeclient",
organizationId: "1234567890@AdobeOrg"
};
const targetClient = TargetClient.create(CONFIG);
targetClient.getOffers({
request: {
id: {
tntId: "d359234570e044f14e1faeeba02d6ab23439914e.35_0",
thirdPartyId: "B234A029348",
marketingCloudVisitorId : "10527837386392355901041112038610706884"
},
execute: {
mboxes: [{
name: "some-mbox"
}]
}
}
})
.then(console.log)
.catch(console.error);
ClientConfig config = ClientConfig.builder()
.client("acmeclient")
.organizationId("1234567890@AdobeOrg")
.build();
TargetClient targetClient = TargetClient.create(config);
VisitorId id = new VisitorId()
.tntId("d359234570e044f14e1faeeba02d6ab23439914e.35_0")
.thirdPartyId("B234A029348")
.marketingCloudVisitorId("10527837386392355901041112038610706884");
Context context = new Context().channel(ChannelType.WEB);
MboxRequest mbox = new MboxRequest()
.name("some-mbox")
.index(0);
ExecuteRequest executeRequest = new ExecuteRequest()
.mboxes(Arrays.asList(mbox));
TargetDeliveryRequest request = TargetDeliveryRequest.builder()
.context(context)
.execute(executeRequest)
.build();
TargetDeliveryResponse offers = targetClient.getOffers(request);
The example above demonstrates how you can combine tntId
, thirdPartyID
, and marketingCloudVisitorId
in the same request.
Bucketing
Your users are bucketed into seeing an experience depending on how you set up your Adobe Target activities. In Adobe Target, bucketing is:
- Deterministic: MurmurHash3 is used to ensure that your user is bucketed and sees the right variation every single time as long as the user ID is consistent.
- Sticky: Adobe Target stores the variation that your user sees in the user profile to ensure the variation is consistently shown to that user across sessions and channels. Variations and stickiness are guaranteed when using server-side decisioning. When on-device decisioning is used, stickiness is not guaranteed.
End-to-end bucketing workflow
Before diving into the actual bucketing algorithm, it is important to highlight that similar steps are used both to select activities based on their traffic allocation percentage, as well as to select an experience within an activity.
Activity selection steps
- Generate a device ID, usually a UUID
- Get the client code
- Get the activity ID
- Get the salt, which is usually some string like “activity”
- Compute the hash using MurmurHash3
- Get the absolute value of the hash
- Divide the hash absolute value by 10000
- Divide the remainder by 10000, which should produce a value between 0 and 1
- Multiply the result by 100%
- Compare activity traffic allocation percentage against the obtained percentage. If the traffic allocation percentage is lower, then the activity is selected. Otherwise, the activity is skipped.
Experience selection steps
- Generate a device ID, usually a UUID
- Get the client code
- Get the activity ID
- Get the salt, which is usually some string like “experience”
- Compute the hash using MurmurHash3
- Get the absolute value of the hash
- Divide the hash absolute value by 10000
- Divide the remainder by 10000, which should produce a value between 0 and 1
- Multiply the result by the total number of experiences within the activity
- Round the result. This should produce the experience index.
Example
Assume the following:
- Client C with client code
acmeclient
- Activity A that has ID
1111
and three experiencesE1
,E2
,E3
- Experiences have the following distribution:
E1
- 33%,E2
- 33%,E3
- 34%
The selection flow looks like this:
- Device ID
702ff4d0-83b1-4e2e-a0a6-22cbe460eb15
- Client code
acmeclient
- Activity ID
1111
- Salt
experience
- Value to hash
acmeclient.1111.702ff4d0-83b1-4e2e-a0a6-22cbe460eb15.experience
, hash value-919077116
- Absolute value of the hash
919077116
- Remainder after division by 10000,
7116
- Value after remainder is divided by 10000,
0.7116
- Result after multiplying the value against the total number of experiences
3 * 0.7116 = 2.1348
- The experience index is
2
, which means the third experience, since we are using0
based indexing.
Personalization & Experiementation Excellence with Recommendations and AI
Adobe Customer Success Webinars
Tuesday, Mar 4, 4:00 PM UTC
Adobe Target innovations, including GenAI, and best practices on AI-powered personalization and experimentation at scale.
RegisterAdobe Target at Summit
Register for these developer sessions:
- Put the Customer at the Center and Build Relationships That Last a Lifetime (attend online)
- How Air India’s Digital Transformation Is Driving Business Turnaround
- Do it Best Leverages the Adobe Platform to Drive Growth for Independents
- Personalization at Scale, with Accuracy: Flexible Identity Graph Management (hands-on lab)
- The Secret to Next-Level Mobile App Engagement and Growth
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more