Ruby on rails 错误-#<;Google::API::ClientError:权限不足:用户没有任何Google Analytics帐户。>;

Ruby on rails 错误-#<;Google::API::ClientError:权限不足:用户没有任何Google Analytics帐户。>;,ruby-on-rails,ruby,google-api-ruby-client,google-client,Ruby On Rails,Ruby,Google Api Ruby Client,Google Client,我想从我公司的GA账户中获取行为报告 我使用了以下代码 ` 但这会带来错误 Error - #<Google::Apis::ClientError: insufficientPermissions: User does not have any Google Analytics account.> Google::Apis::ClientError: insufficientPermissions: User does not have any Google Analytics a

我想从我公司的GA账户中获取行为报告

我使用了以下代码

`

但这会带来错误

Error - #<Google::Apis::ClientError: insufficientPermissions: User does not have any Google Analytics account.>

Google::Apis::ClientError: insufficientPermissions: User does not have any Google Analytics account.
from /Users/user_name/.rvm/gems/ruby-2.2.2/gems/google-api-client-0.13.3/lib/google/apis/core/http_command.rb:218:in check_status' from /Users/user_name/.rvm/gems/ruby-2.2.2/gems/google-api-client-0.13.3/lib/google/apis/core/api_command.rb:116:incheck_status'
from /Users/user_name/.rvm/gems/ruby-2.2.2/gems/google-api-client-0.13.3/lib/google/apis/core/http_command.rb:183:in `process_response'
错误-#
Google::API::ClientError:权限不足:用户没有任何Google Analytics帐户。
from/Users/user_name/.rvm/gems/ruby-2.2.2/gems/google-api-client-0.13.3/lib/google/api/core/http_command.rb:218:in check_status'from/Users/user_name/.rvm/gems/ruby-2.2.2/gems/google-api-client-0.13.3/lib/google/api/core/api/api/api_command.rb:116:incheck_status'
来自/Users/user_name/.rvm/gems/ruby-2.2.2/gems/google-api-client-0.13.3/lib/google/api/core/http_command.rb:183:在“过程\响应”中
请让我知道我错过了什么

Error - #<Google::Apis::ClientError: insufficientPermissions: User does not have any Google Analytics account.>

Google::Apis::ClientError: insufficientPermissions: User does not have any Google Analytics account.
from /Users/user_name/.rvm/gems/ruby-2.2.2/gems/google-api-client-0.13.3/lib/google/apis/core/http_command.rb:218:in check_status' from /Users/user_name/.rvm/gems/ruby-2.2.2/gems/google-api-client-0.13.3/lib/google/apis/core/api_command.rb:116:incheck_status'
from /Users/user_name/.rvm/gems/ruby-2.2.2/gems/google-api-client-0.13.3/lib/google/apis/core/http_command.rb:183:in `process_response'