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

Adobe Target Community Q&A Coffee Break: On Wednesday, February 1 at 8am PT, Brent Kostak of the Adobe Target Product team will be joining us to answer your Target questions. To register and for more information, follow the link to the right.
SOLVED

type in Target Delivery API response

Avatar

Level 8

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 ?

LordOfTheRings_0-1667899939492.png

 

content has "\" , can we have refined response in the content like defined in the design ?

1 Accepted Solution

Avatar

Correct answer by
Level 3

Hi @LordOfTheRings 

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

Jacob_T1_0-1668470668210.png

Jacob_T1_1-1668470671857.png

 

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.

View solution in original post

0 Replies

Avatar

Level 10

Hey @LordOfTheRings 

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. 

Avatar

Correct answer by
Level 3

Hi @LordOfTheRings 

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

Jacob_T1_0-1668470668210.png

Jacob_T1_1-1668470671857.png

 

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.