google-api-ads-ruby icon indicating copy to clipboard operation
google-api-ads-ruby copied to clipboard

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

Open davidthou opened this issue 4 years ago • 6 comments

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 avatar Oct 28 '20 13:10 davidthou

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.

davidthou avatar Dec 16 '20 10:12 davidthou

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

jleffert avatar Dec 30 '20 16:12 jleffert

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

git '[email protected]: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

davidthou avatar Dec 30 '20 16:12 davidthou

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

donovanfm avatar Dec 30 '20 17:12 donovanfm

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

jleffert avatar Jan 04 '21 15:01 jleffert

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

ajcantu avatar Feb 14 '22 21:02 ajcantu