MakoBuk
MakoBuk

Reputation: 652

Google Analytics API - allowed dimension/metrics in segments

I have server-side app creating Audiences with specific segments. I know the names of dimensions/metrics can differ for UI and API. Therefore I am using Dimensions & Metrics Explorer for checking the appropriate name in API.

Explorer settings:

The problem is, that there are some dimensions/metrics which explorer tag as "allowed in segment" but I am getting error from API "ga:xyz is not allowed in advanced segments."

It is doing for example:

Do anyone know why? Is it bug in API documentation?

Upvotes: 2

Views: 467

Answers (1)

Mike Sullivan
Mike Sullivan

Reputation: 629

Documentation error. In the MetaData API, it is marked as "allowedInSegments": "false",

https://www.googleapis.com/analytics/v3/metadata/ga/columns?pp=1

Upvotes: 1

Related Questions