KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
According to the Youtube Analytics API documentation ( https://developers.google.com/youtube/analytics/v1/available_reports ), it looks like you should be able to retrieve metrics for specific videos using the "video" dimension. I am able to get all other metrics successfully - either specifying dimensions like "day" and "country" or supplying no dimension at all. But when I change the dimensions value to "video", I get a 400 error code with the message "The query is not supported. Check the documentation for supported queries." This is a channel report - not a content owner report - but according to the documentation, this should be a valid report request. I've even tried limiting the result set with a number of extra parameters like start-index, max-results, and sort. WORKS client.execute(:api_method => "youtubeAnalytics.reports.query", :parameters => {'ids' => "channel==##USER_ID##", "start-date" => "2012-01-01", "end-date" => "2012-02-01", "metrics" => "views"}) client.execute(:api_method => "youtubeAnalytics.reports.query", :parameters => {'ids' => "channel==##USER_ID##", "start-date" => "2012-01-01", "end-date" => "2012-02-01", "metrics" => "views", "dimensions" => "day"}) DOES NOT WORK - returns 400 error client.execute(:api_method => "youtubeAnalytics.reports.query", :parameters => {'ids' => "channel==##USER_ID##", "start-date" => "2012-01-01", "end-date" => "2012-02-01", "metrics" => "views", "dimensions" => "video"}) client.execut
Tags (comma-separated)
Save Edits
Cancel