type in Target Delivery API response | Community
Skip to main content
ambikaTewari_ATCI
New Participant
November 8, 2022
Solved

type in Target Delivery API response

  • November 8, 2022
  • 2 replies
  • 947 views

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 ?

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 JacobTo1

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

 

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

JacobTo1Accepted solution
New Participant
November 15, 2022

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

 

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.

Gaureshk_Kodag
Employee
November 9, 2022

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.