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

The 1st edition of the Target Community Lens newsletter is out now! Click to the right to find all the latest updates
SOLVED

type in Target Delivery API response

Avatar

Community Advisor

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 @ambikaTewari_ATCI 

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.

2 Replies

Avatar

Employee

Hey @ambikaTewari_ATCI 

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 @ambikaTewari_ATCI 

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.