Reputation: 189
I am trying to get list of segments from my GA account using API. However, there are some segments which I have created in GA, but I do not get them from the API.
Any reason as to why is this happening?
Upvotes: 0
Views: 318
Reputation: 1862
This is because new segmentation features were added this past July, and they are not currently supported in the API.
So if you segment on users using the new segments UI in the Web Interface, the segments won't show up when listing in the Management API, and they won't work with the Core Reporting API. However, session/visitor segments with conditions continue to work. This is why you're seeing this behavior...until the API has full support for this.
You can review the Management API changelog, Release 2013-07-15 for exact details on this.
You should subscribe to the changelog so you'll be notified if support is added.
Upvotes: 1