title: Google Analytics API - Retrieving a list of segments for a profile / account
body: <p>We have multiple Analytics accounts accessed by a single login. We would like to get a list of custom segments that are valid for a given account.  The GData API (management.segments.list) returns all segments for the <strong>user</strong> but does not include any information mapping the segments to the accounts (profiles, really).</p>
  
  <p>So, if you have 10 accounts with 10 segments each, when you get the list of segments from management.segments.list V3.0 it returns 100, of which 90 will return 0 visits for any core analytics request (since requests must include a profile id).</p>
  
  <p>While the documentation is normally unclear or links to a 404 URL in this case it seems complete - you just can't get a list of segments that are valid for a profile, nor see which profile a segment was created in.  Anyone have any ideas?</p>
  
  <hr>
  
  <p>I have an answer but couldn't post it as an answer due to my points level.  Turns out all the functionality for segments and profiles is hidden in the new interface.  Switching to the old interface made it visible.  So segments are defined at the user level and either shown or hidden for each account / profile that the user has access to.</p>