Multiple IDs in Criteria | Community
Skip to main content
New Participant
September 22, 2020
Solved

Multiple IDs in Criteria

  • September 22, 2020
  • 1 reply
  • 1188 views

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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ryanr7

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.

1 reply

ryanr7Accepted solution
Employee
September 23, 2020

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.