Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions google-ads-ruby.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}
2 changes: 1 addition & 1 deletion google_ads_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# project instead of developer token to determine your Google Ads API access levels.
# Use this flag only if you are enrolled into a limited pilot that supports
# this configuration.
# c.use_cloud_org_for_api_access = false
c.use_cloud_org_for_api_access = false

# You can also authenticate using a service account. If "keyfile" is
# specified below, then service account authentication will be assumed and
Expand Down
4 changes: 4 additions & 0 deletions lib/google/ads/google_ads/google_ads_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ def load_environment_config
# Client library-specific variables
@config.log_level = ENV.fetch("GOOGLE_ADS_RUBY_LOG_LEVEL", @config.log_level)
@config.http_proxy = ENV.fetch("GOOGLE_ADS_RUBY_HTTP_PROXY", @config.http_proxy)
@config.use_cloud_org_for_api_access = ENV.fetch("GOOGLE_ADS_USE_CLOUD_ORG_FOR_API_ACCESS", @config.use_cloud_org_for_api_access)
if @config.use_cloud_org_for_api_access.is_a?(String)
@config.use_cloud_org_for_api_access = @config.use_cloud_org_for_api_access.downcase == "true"
end
Comment thread
dorasun marked this conversation as resolved.
end

# Return a service for the provided entity type. For example, passing
Expand Down
Loading