Expand my Community achievements bar.

SOLVED

How to get segments from Audience Manager API

Avatar

Level 1

Does anyone have any suggestions for getting Segments out of the Adobe Audience Manager API?


I'm currently getting a 404 error when trying to get our segments from the AAM API. Does anyone have any tips for getting a successful response from https://aam.adobe.io/v1/segments/

 

It returns a 404 for me when I try the call in Swagger as well... https://bank.demdex.com/portal/swagger/index.html#/Segments%20API/get_segments_

 

I can get Traits, DataSources, Destinations, SegmentFolders, and even LargestSegments just fine but segments doesn't seem to be working for me for some reason.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hello @dbonomo ,

 

With https://aam.adobe.io/v1 domain, you need to pass:

x-api-key , your client ID

x-gw-ims-org-id. , your company's IMS OrgID

 

The call should get you all the segments.

 

If this doesn't work then you have BAAAM Tool to pull that information. Please follow the below steps:

 

Download BAAM Tool from here. 

Open this Excel file and enable “Editing” + “Macros” 

ankitasodhi_0-1647394866661.png

 

 

ankitasodhi_1-1647394866662.png

 

 

Now, in “Config” worksheet enter IMS ORGID. 

ankitasodhi_2-1647394866663.png

 

 

Go to “BAAAM” Tab and click on the authentication option which you would like to proceed with. Easy one is “Adobe ID” 

ankitasodhi_3-1647394866665.png

 

 

 

You will be redirected to your Experience Login page where you can login and get one token for yourself. Copy this token and paste it in token field. 

ankitasodhi_4-1647394866666.jpeg

 

 

ankitasodhi_5-1647394866668.png

 

 

Once the validate token step is complete, switch to “Request” worksheet. 

ankitasodhi_6-1647394866669.png

 

 

At this point, we will fire an API call to pull a complete list of segments with their details. 

Click on “Segments” and see the below menu: 

ankitasodhi_7-1647394866670.png

 

 

As per your requirement, you work with “Request All Segments”.

 

I hope this helps, please let me know if you have any additional questions.

 

Regards

Ankita Sodhi

View solution in original post

4 Replies

Avatar

Community Advisor

Just checking, have you tried pulling specific segments through integration code?

 

kishore963_0-1643029839369.png

 

Avatar

Level 1

Yes, and specific segments work ok. We just need a way to get all of the segments at once as well.

Avatar

Correct answer by
Employee Advisor

Hello @dbonomo ,

 

With https://aam.adobe.io/v1 domain, you need to pass:

x-api-key , your client ID

x-gw-ims-org-id. , your company's IMS OrgID

 

The call should get you all the segments.

 

If this doesn't work then you have BAAAM Tool to pull that information. Please follow the below steps:

 

Download BAAM Tool from here. 

Open this Excel file and enable “Editing” + “Macros” 

ankitasodhi_0-1647394866661.png

 

 

ankitasodhi_1-1647394866662.png

 

 

Now, in “Config” worksheet enter IMS ORGID. 

ankitasodhi_2-1647394866663.png

 

 

Go to “BAAAM” Tab and click on the authentication option which you would like to proceed with. Easy one is “Adobe ID” 

ankitasodhi_3-1647394866665.png

 

 

 

You will be redirected to your Experience Login page where you can login and get one token for yourself. Copy this token and paste it in token field. 

ankitasodhi_4-1647394866666.jpeg

 

 

ankitasodhi_5-1647394866668.png

 

 

Once the validate token step is complete, switch to “Request” worksheet. 

ankitasodhi_6-1647394866669.png

 

 

At this point, we will fire an API call to pull a complete list of segments with their details. 

Click on “Segments” and see the below menu: 

ankitasodhi_7-1647394866670.png

 

 

As per your requirement, you work with “Request All Segments”.

 

I hope this helps, please let me know if you have any additional questions.

 

Regards

Ankita Sodhi