Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Multiple IDs in Criteria

Avatar

Level 2

Good day,

 

I am using a criteria with a custom key. That works fine when passing an ID, e.g. when using "People who bought this, bought that".

 

However, it is not working when passing multiple IDs, whatever the format is. Are the recommendation logics not able to work with more than one ID? Or am I doing something wrong with the formatting of the custom key?

 

Thanks in advance. 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hello @moritzh76280848,

Recommendations only supports a single key per request for item based algo types (e.g., viewed this, viewed that; viewed this, bought that; bought this, bought that). However, it has a keyless type that is meant to be based on a visitor's set of behaviors (i.e., user-based recommendations).

You could in theory make multiple requests (each with a single key) to Target to achieve a multi-key recommendation scenario and then use some client-side JS to merge the results.

Hope that helps.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hello @moritzh76280848,

Recommendations only supports a single key per request for item based algo types (e.g., viewed this, viewed that; viewed this, bought that; bought this, bought that). However, it has a keyless type that is meant to be based on a visitor's set of behaviors (i.e., user-based recommendations).

You could in theory make multiple requests (each with a single key) to Target to achieve a multi-key recommendation scenario and then use some client-side JS to merge the results.

Hope that helps.