title: GAPI: Failed to request report data. Error: "User does not have any Google Analytics account."
body: <p>I have problem with gapi. I have many ga_id from sites partners. I need his statistics. My code:`</p>
  
  <pre><code>$this-&gt;ga = new gapi($myemail, $path_to_key_p12);
          if (false === $this-&gt;ga-&gt;requestReportData(
              $ga_id,
              array_merge(array('country'), $dimensions), 
              $metrics, 
              '-visits',
              $filter, 
              $datestart, $datefinish,
              1, 1000))
          {
              return false;
          }
  
  
      /** @var gapiAccountEntry $result */
      $result = null;
      foreach ($this-&gt;ga-&gt;getResults() as $result) { 
          $row['site_uid'] = $site_id;
          $row['country'] = $result-&gt;getCountry();
          $row['visitors'] = $result-&gt;getVisitors(); // unique
          $row['pageviews'] = $result-&gt;getPageviews();
          $row['visits'] = $result-&gt;getVisits();
          $row['crdate'] = $result-&gt;getDate());            
          $this-&gt;save_ga_data($type, $row);
      }`
  </code></pre>
  
  <p>it doesn't work. I have: </p>
  
  <blockquote>
    <p>GAPI: Failed to request report data. Error: "User does not have any
    Google Analytics account.
    but in google developers console this url works.</p>
  </blockquote>
  
  <p><strong>UPD</strong>: from google developers console I can get all info 
  <a href="https://i.stack.imgur.com/cYLfk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cYLfk.png" alt="enter image description here"></a> I use this lib <a href="https://github.com/erebusnz/gapi-google-analytics-php-interface" rel="nofollow noreferrer">link</a> may be I have mistake with her?</p>