I'm using YouTube Analytics API to find authorize a YouTube channel using OAuth2 and then trying to find the unique viewers that the channel encountered. This is the URL that I'm sending a request to:
https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel==MINE&start-date=2000-06-01&end-date=2016-04-25&metrics=uniques&access_token=XXXX
I'm using the uniques
metric in the above case. However, this is what is returned as response:
Array (
[error] => Array (
[errors] => Array (
[0] => Array (
[domain] =>
global [reason] =>
badRequest [message] =>
The query is not supported.
Check the documentation at
https://developers.google.com/youtube/analytics/v1/available_reports
for a list of supported queries.
)
)
[code] =>
400 [message] =>
The query is not supported. Check the documentation a
https://developers.google.com/youtube/analytics/v1/available_reports
for a list of supported queries.
)
)
What seems to be wrong here?