want to call particular youtube video analytics

11 views
Skip to first unread message

Narendra Sharma

unread,
Sep 20, 2013, 9:16:22 AM9/20/13
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