Expand my Community achievements bar.

Webinar: Adobe Customer Journey Analytics Product Innovations: A Quarterly Overview. Come learn for the Adobe Analytics Product team who will be covering AJO reporting, Graph-based Stitching, guided analysis for CJA, and more!

Segmentation reference in Adobe Analytics API 2.0

Avatar

Level 1

Hello Community,

 

Good Day!

 

I stumbled upon an Adobe Analytics API 1.4 documentation 

URL: https://developer.adobe.com/analytics-apis/docs/1.4/guides/reporting/report-description/segments/

 

In the document, We can do something like search a specific value/s based on evar element. Sample below

"segments": [
{
    "element": "eVar1",
    "classification": "Group Name",
    "search": { "type": "OR", "keywords": ["Administrator", "Manager", "Director"] }
}
]
 
I want to ask, is there an equivalent of the above in Adobe Analytics API 2.0?
As I'm checking, we need the segmentId inside the globalFilter like below
 
"globalFilters":[
{
 {
     "type":"segment",
     "segmentId":"53adb46be4b0a2a175bf38c4"
  }
}
]
 
We need to add the specific evar value/s on the Reports API request same as the version v1.4 as we do not know the segmentIds of the segments. 
 
Appreciate the help. Thank you!
3 Replies

Avatar

Community Advisor

Here is a little known feature... but Workspace uses API 2.0, and the APIs that are used to build to your tables are all available to you.

 

First, you have to turn on debugging in the help menu:

Jennifer_Dungan_0-1724701754757.png

 

 

This will add a new icon:

Jennifer_Dungan_1-1724701776093.png

 

If you click on this, a menu will pop up asking if you want to look at the call for the table or the sparkline, choose the table

Jennifer_Dungan_2-1724701800523.png

 

 

Then, you will be presented with timestamps... some breakdowns require multiple requests:

Jennifer_Dungan_3-1724701859025.png

 

 

When you choose one, a new window will open showing you the API call in multiple formats that you can copy, and use as is, or modify. This will include the segments that are part of the call.

Avatar

Community Advisor

You're welcome This method is great for both learning the structure of the APIs, as well as getting the exact segments you need (and where they need to be added)