Analytics API requests - filtering by segments

chrisp30948737

28-09-2018

Hi,

I've recently started using the API to make requests and am now successfully pulling metrics and splitting them out by elements.

However I am not succeeding to filter my results by previously configured segments. I have two issues:

1) To obtain the segment ID I am pulling a list using Segments.Get. It returns a list of 101 segments showing ID and name, but this does not appear to be comprehensive, and doesn't include the one I'm looking for. The segment definitely exists because I'm using it regularly in workspace.

2) In the absence of the segment I'm attempting to recreate it by using inline segments, as described here (analytics-1.4-apis/inline_segments.md at master · AdobeDocs/analytics-1.4-apis · GitHub ). However the original segment is based on an exclusion - e.g. "propXX" is NOT "zzz". The documentation shows how to create an inclusive one with " segment element selected " but not an exclusive one . Any ideas how to achieve this?

Thanks!

Answers (4)

Answers (4)

ursboller

MVP

28-09-2018

2) if you want to use 1.4, just add a simple classification with regex * to map original values. just a workaround with lot of work ...

ursboller

MVP

28-09-2018

2) yes, thats right. this is one if the mayor issues in API 1.4, but will be solved in 2.0. If you start to use the API, I recommend you start with 2.0 (I think it will be officially released in the next month ....)

chrisp30948737

28-09-2018

Wow, thanks for the instant reply!

The accessLevel:all worked - is that documented somewhere?

Regarding the examples for "does not contain". I did see these but they seem to require Classification Values which I'm not familiar with. I tried to simply remove "classification": "Group Name", from the query but that didn't work.