Reputation: 1
I can see from the docs that insightTrafficSourceDetail is only available for certain combinations of dimensions/filters/number of results, however I can't seem to get a legit query going.
For example:
metrics=views&dimensions=insightTrafficSourceDetail&filter=insightTrafficSourceType==GOOGLE_SEARCH&max-results=1
That seems like it should work to me based on the docs, but I get this:
{"errors":[{"domain":"global","reason":"badRequest","message":"The query is not supported. Check the documentation for supported queries."}],"code":400,"message":"The query is not supported. Check the documentation for supported queries."}
Tried many other combinations to no avail.
I noticed a couple of bug reports around this, so maybe it's broken?
https://code.google.com/p/gdata-issues/issues/detail?id=3995
https://code.google.com/p/gdata-issues/issues/detail?id=3963
Upvotes: 0
Views: 660
Reputation: 76
This query is only available on video level. This means you have to add to filters "video==%some-video-id%"
And: https://developers.google.com/youtube/analytics/v1/available_reports Section about channel reports (insightTrafficSourceDetail)
Cheers
Upvotes: 3