Hi Team,
I was using Delivery API for Adobe Target Recommendations Activity. I get "html" as "type" in response.
What other values could be present here ?
content has "\" , can we have refined response in the content like defined in the design ?
Solved! Go to Solution.
I created a test Recommendations Criteria (HTML Design was disabled), and checked the response from the Delivery API.
It shows me the same output - content type = html
You will need to parse the response escaped string into actual JSON, process to do this will vary depending on the what environment you are calling the API with
Example: In JavaScript I can use replaceAll('\n','') and then JSON.parse() to convert the response content to JSON.
I guess type depends on type of offer that you are creating for particular mbox in adobe target. Maybe you could try creating activity with JSON offer.
I created a test Recommendations Criteria (HTML Design was disabled), and checked the response from the Delivery API.
It shows me the same output - content type = html
You will need to parse the response escaped string into actual JSON, process to do this will vary depending on the what environment you are calling the API with
Example: In JavaScript I can use replaceAll('\n','') and then JSON.parse() to convert the response content to JSON.
Views
Like
Replies
Views
Likes
Replies