want to call particular youtube video analytics

11 views
Skip to the first unread message

Narendra Sharma

unread,
20 Sept 2013, 09:16:2220/09/2013
to google-api...@googlegroups.com
so far i have done the code but didn't get any success on the code.

$YoutubeChannelId=$snippet['items']['0']['snippet']['channelId'];
$optparam = array('video==**7Gg5yn44A;country==IN');
$metrics='views,comments,favoritesAdded,favoritesRemoved,likes,dislikes,shares,estimatedMinutesWatched,averageViewDuration,averageViewPercentage,annotationClickThroughRate,annotationCloseRate,subscribersGained,subscribersLost'; 
$YoutubeChannelReports=$youtubeAnalytics->reports->query("channel==$YoutubeChannelId", "2012-08-14", "2013-09-20", $metrics,$optparam);
echo "<pre>";print_r($YoutubeChannelReports);echo "</pre>"; 
Reply all
Reply to author
Forward
0 new messages