title: (403) User does not have any Google Analytics account
body: <p>i have issue with google api service account i have done successfull authentication and got the access token. when i try to run the query it shows error</p>
  
  <blockquote>
    <p>Warning: You need to set Client ID, Email address and the location of
    the Key from the Google API console:
    <a href="http://developers.google.com/consoleThere" rel="nofollow">http://developers.google.com/consoleThere</a> wan a general error : Error
    calling GE T
     (403)
    User does  not have any Google Analytics account.</p>
  </blockquote>
  
  <p>i have multiple websites and multiple accounts in it. the google account is an admin account please check the code below.</p>
  
  <pre><code>   $key_file_location = 'key path';
     $client = new Google_Client();
     $client-&gt;setApplicationName("name");
     $client-&gt;setClientId($client_id);
  
     if (isset($_SESSION['service_token'])) {
       $client-&gt;setAccessToken($_SESSION['service_token']);
     }
      $key = file_get_contents($key_file_location);
      $cred = new Google_Auth_AssertionCredentials(
      $service_account_name,
      array('https://www.googleapis.com/auth/analytics.readonly'),
      $key
  );
  $client-&gt;setAssertionCredentials($cred);
  if ($client-&gt;getAuth()-&gt;isAccessTokenExpired()) {
    $client-&gt;getAuth()-&gt;refreshTokenWithAssertion($cred);
  }
  
  $client-&gt;setAccessType('offline_access');
  $client-&gt;getAccessToken();
  $service = new Google_Service_Analytics($client);
  
  $analytics_id   = 'ga:xxxxxx';
  $lastWeek       = date('Y-m-d', strtotime('-1 week'));
  $today          = date('Y-m-d');
  try {
      $results = $service-&gt;data_ga-&gt;get($analytics_id, $lastWeek, $today,'ga:visits');
      echo '&lt;b&gt;Number of visits this week:&lt;/b&gt; ';
      echo $results['totalsForAllResults']['ga:visits'];
  } catch(Exception $e) {
      echo 'There was an error : - ' . $e-&gt;getMessage();
  }
  </code></pre>