【发布时间】:2013-08-02 13:47:15
【问题描述】:
我目前正在使用 Youtube Analytics API,
到目前为止,我已经能够提取 youtube 必须提供的所有数据,但查询每次都失败的性别/年龄组维度除外,
docs 指向播放位置的示例,而不是其自身的人口统计。
我正在使用PHP Client Library,
== PHP ==
$analytics_gender = new Google_YouTubeAnalyticsService($client);
$optparam = array('dimensions' => 'gender');
$metrics= "views";
$analytics_demo_gender = $analytics_gender->reports->query("channel==".$channelId, "2012-08-14", "2013-05-30", $metrics, $optparam);
当我运行此查询时,我得到一个 error (400) The query is not supported.,即使它适用于所有其他指标和维度。
【问题讨论】:
标签: php youtube youtube-api google-api-php-client youtube-analytics