googleads / google-api-ads-ruby

Ad Manager SOAP API Client Libraries for Ruby
297 stars 229 forks source link

File permissions issue in google-dfp-api-1.11.0 and google-dfp-api-1.12.0 gems #175

Open davidthou opened 3 years ago

davidthou commented 3 years ago

Hello, we are having errors like LoadError: cannot load such file -- ad_manager_api on our servers due to restrictive file permissions in the two latest versions of the gem published on RubyGems.

For example ad_manager_api.rb file is not readable by Other:

$ ls -l /usr/local/bundle/gems/google-dfp-api-1.12.0/lib/
drwxr-sr-x 6 root staff 4096 Oct 27 10:33 ad_manager_api
-rw-r----- 1 root staff 3602 Oct 27 10:33 ad_manager_api.rb
davidthou commented 3 years ago

Hello, we have the same issue with the new google-dfp-api-1.13.0 version.

The problem happened before in https://github.com/googleads/google-api-ads-ruby/issues/29 https://github.com/googleads/google-api-ads-ruby/issues/74 and https://github.com/googleads/google-api-ads-ruby/issues/89.

Thank you.

jleffert commented 3 years ago

Any solutions for this? Having the same issue on AWS elastic beanstalk servers when trying to deploy.

davidthou commented 3 years ago

As a workaround we pointed to the GitHub repository instead of the Rubygem in our Gemfile like this:

git 'git@github.com:googleads/google-api-ads-ruby.git' do
  gem 'google-dfp-api', tag: 'ad_manager_api-1.13.0', glob: 'ad_manager_api/*.gemspec'
  gem 'google-ads-common', tag: 'ad_manager_api-1.13.0', glob: 'ads_common/*.gemspec'
end
donovanfm commented 3 years ago

Thanks for letting me know about this issue. I'll look into it and get back to you.

jleffert commented 3 years ago

That workaround allowed me to deploy and saved me another day of banging my head against the desk. Thank you very much!

ajcantu commented 2 years ago

This is also an issue with Google Ads v14 and v15 (but v13 works).