Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!
SOLVED

Target Admin API - Update A/B activity api does not make the activity Live.

Avatar

Level 1

We are using the Target Admin API to activate/deactivate a A/B test programmatically. When we invoke a PUT request with the Update A/B activity API , the state of the activity changes from “saved” to “approved” , but the activity is not really Live. We can see that the api request is successfully executed in the activity change log in the Target GUI but the activity status UI still shows as deactivated .

 

We observed that the activity only goes Live when we manually change the status from the Target GUI.

 

We are sending the payload as mentioned in the below API documentation :
https://developers.adobetarget.com/api/#update-ab-activity

 

1 Accepted Solution

Avatar

Correct answer by
Level 1

We opened an Adobe ticket in this regard and received the below response :

 

At the moment, it's not possible to use the API to activate/deactivate an activity, you need to use the UI for this functionality.It's possible though, to determine the Start and End of an AB activity when you are creating it (this is also possible via API), you need to define the attributes as in the example below:

 

- "startsAt": "2017-05-01T08:00Z"

- "endsAt": "2017-09-01T07:59:59Z"

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @kashyapmuc,
if you get the A/B test via API - does it still say inactive as status? Is it active - just not visible in the UI?

Avatar

Level 1

Hi @Perrin_Ennen ,

 

When we invoke the API to see the A/B Test status , then it shows as "approved" , but in reality the Test is not live. It does not show it as active in UI also. It just shows in the change log.

Avatar

Community Advisor

ah okay, that sounds a bit familiar, unfortunately. I also wanted to create and update our experiences via the api. But I also had the problem that it didn't show up in the Adobe Target UI. That was 2 years ago. Hopefully here is still someone who has a solution for this.

Avatar

Correct answer by
Level 1

We opened an Adobe ticket in this regard and received the below response :

 

At the moment, it's not possible to use the API to activate/deactivate an activity, you need to use the UI for this functionality.It's possible though, to determine the Start and End of an AB activity when you are creating it (this is also possible via API), you need to define the attributes as in the example below:

 

- "startsAt": "2017-05-01T08:00Z"

- "endsAt": "2017-09-01T07:59:59Z"