Expand my Community achievements bar.

Query for Audience Attributes & Events

Avatar

Level 1

I want to write a query that contains the Segment Name within Audiences, as well as each attribute/event that is written within that audience. How can I write this query? 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Level 4

I do not think "each attribute/ event" for an audience can be retrieved via query. You can get the segment names and people in an audience via query job.

Adobe has a python package aepp (or OOB Rest API). Using aepp, you can retrieve the attribute/ events and join them together 

Avatar

Level 1

Thank you for your response! Are you able to provide any more direction into the aepp package and were I could find information on the attribute/events? 

 

Thanks!

Avatar

Level 4

paths (list) variable will give you all the attributes in the audience:

 

# here is your audience id
audienceId = ''
myseg_obj = aepp.segmentation.Segmentation()
paths = myseg_obj.extractPaths(audience=audienceId, recursive=True)
paths