问题
The Metadata API doesn't have an attribute or specific mapping to allowed dimensions/metrics combinations?
回答1:
I am not sure if this is a question or a statement but you are correct the Google Analytics metadata API returns a list of dimensions and metrics that can be used in the Google Analytics Core reporting API.
At this time there is no API that will tell you which dimensions and metrics are valid combinations. the only way to do that is to check the dimensions and metrics reference manually or run the request and see what happens.
I have discussed it with the API team over the last several years its on there list but I don't think it has a very high priority for them.
来源:https://stackoverflow.com/questions/36768915/google-analytics-metadata-api-allowed-dimensions-metrics-combinations