Retrieve a Filtered Dimension from Analytics API
Fairly new to the Adobe Analytics API and I'm not sure how to go about pulling together some data that I need.
We have a Dimension we've created, which I'll just call 'evar' for now. I need to end up, further down my program, being able to select a segment and get a random selection of 'evar' values from the last 7 days. What I think I need from the API then is a report that will give me either:
- all Segments, and for each segment, all values of 'evar' that appear in that segment, or
- all values of 'evar', and for each value, all segmentIDs that would contain that value of 'evar'
That way I could cache the result for seven days before needing a new call, and I could retrieve my random set from the full set cache.
The Segments API endpoint doesn't appear to give me what I need, only the list of Segments.
If there's a way to get the 'evar' values per segment, then I could actually retrieve the list of 'evar' values as needed and merge them into a cache.
For now though, I have no idea how I would list the 'evar' values and filter them by their related Segments.
Any help is greatly appreciated.