Error using metrics listed in Google's Metrics and dimensions
<p>I am using this code to query the api </p>

<pre><code>    function getResults(&amp;$analytics, $profileId) {
  // Calls the Core Reporting API and queries for the number of sessions
  // for the last 30 days.
   return $analytics-&gt;data_ga-&gt;get(
       'ga:' . $profileId,
       '30daysAgo',
       'today',
       'ga:sessionCount,ga:sessionDurationBucket,ga:users,ga:percentNewSessions,ga:bounceRate,ga:pageviews');
}
</code></pre>

<p>i get this error upon executing the code </p>

<blockquote>
  <p>Fatal error: Uncaught exception 'Google_Service_Exception' with
  message 'Error calling GET
  <a href="https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A114460017&amp;start-date=30daysAgo&amp;end-date=today&amp;metrics=ga%3AsessionCount%2Cga%3AsessionDurationBucket%2Cga%3Ausers%2Cga%3ApercentNewSessions%2Cga%3AbounceRate%2Cga%3Apageviews" rel="nofollow">https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A114460017&amp;start-date=30daysAgo&amp;end-date=today&amp;metrics=ga%3AsessionCount%2Cga%3AsessionDurationBucket%2Cga%3Ausers%2Cga%3ApercentNewSessions%2Cga%3AbounceRate%2Cga%3Apageviews</a>:
  (400) Unknown metric(s): ga:sessionCount, ga:sessionDurationBucket</p>
</blockquote>

<p>anyone ever experience? I do not understand why it does not recognize those metrics when it is listed </p>

<p><a href="https://developers.google.com/analytics/devguides/reporting/core/dimsmets#view=detail&amp;group=user&amp;jump=ga_sessioncount" rel="nofollow">https://developers.google.com/analytics/devguides/reporting/core/dimsmets#view=detail&amp;group=user&amp;jump=ga_sessioncount</a></p>