title: 403 Insufficient permissions error while trying to get Google Analytics data
body: <p>I'm developing RoR application, which allows user to login with google account and download/upload report data from one of his analytics account. 
  I use <em>omniauth-google-oauth2</em> gem for authorization with google account and <em>google-api-client</em> for interaction with Google Analytics. 
  The problem is that when I try to get accounts list with <em>analytics.management.accounts.list</em> method, passing google token as one of authorization parameters, GA responds with 403 <em>Insufficient permissions</em> error. </p>
  
  <p>I suppose, I have to make user to give permission for reading Analytics data in process of authorization. How can I do this?</p>
  
  <p>I've read a lot of related questions, but didn't find solution to my exact problem.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>require 'google/api_client'
  
  client = Google::APIClient.new(:application_name =&gt; 'something you like', :application_version =&gt; '1')
  
  client.authorization.access_token = 'HERE_GOES_TOKEN'
  
  ga = client.discovered_api('analytics', 'v3')
  
  client.execute(:api_method =&gt; ga.management.accounts.list)
  </code></pre>