google-ads-googleads 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '073915c821223d938e05a8c8e22feb87ac183b3fa397833d28f287609d25e673'
4
- data.tar.gz: dbffa5c9e57a881112966f4a4f5e5ed2b8aef3f4a39aa261a4678ef1aa5f3f8e
3
+ metadata.gz: 17ec3014981940469ea97f1a9ed8af856120cc259429eb888e4e4abf3b88e199
4
+ data.tar.gz: e440cb784d71b9d592af5d30a221f2b1c2add36f4d7a2550f882989c218f4eee
5
5
  SHA512:
6
- metadata.gz: 71075dceb947e84989c2d98fe6e139e648c473b8cebccca30547dc5e3349b3b680f809558e17db48ad89b0591484096988346d174a33336e843af7c0d6a548f1
7
- data.tar.gz: f41a9ba40286bb07d658278355da4a388c64c8e588c4e7b9e9e386ff601cecd343c12ddc537ae0e9ef1bf0764765efbd6b29f2794b9f371b67911cf293ea4ea4
6
+ metadata.gz: cb69dd754baa94fde504a280f1fe203007c34a36932fc3afed6e7a02043f09469b424df1bd4bec032b29e72abd9f7dde85aaae3165b499dc3225475bac25355a
7
+ data.tar.gz: b053cf46b51c906c25348e69e30e5d0e4f07c7aaf98fbd7cc3ed9ff44e2efaa262c1fa5cbbe95bd446aa6fa5a7ce4837f1a106ac36b8a1cfb619c3bc28df9482
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ 2.4.1:
2
+ - Updated default inbound metadata size to allow for larger metadata
3
+ server responses.
4
+
1
5
  2.4.0:
2
6
  - Added config keys to support service accounts for authentication.
3
7
  - Added deprecation framework and deprecation warnings for old-style
data/Rakefile CHANGED
@@ -37,8 +37,33 @@ task :apply_patches do |t|
37
37
  apply_patches
38
38
  end
39
39
 
40
+ def proto_files
41
+ Dir["lib/google/ads/google_ads/v1/**/*.rb"]
42
+ end
43
+
44
+ def newest_of(files)
45
+ files.map { |fn| File.mtime(fn) }.max
46
+ end
47
+
48
+ def newest_proto_file
49
+ newest_of(proto_files)
50
+ end
51
+
52
+ def factory_files
53
+ ["lib/google/ads/google_ads/factories.rb"] + Dir["lib/google/ads/google_ads/factories/**/*.rb"]
54
+ end
55
+
56
+ def newest_factory_file
57
+ newest_of(factory_files)
58
+ end
59
+
60
+ def factories_are_recent?
61
+ return false unless File.exist?(factory_files.first)
62
+ newest_factory_file > newest_proto_file
63
+ end
64
+
40
65
  task :codegen do |t|
41
- `./scripts/codegen.sh`
66
+ `./scripts/codegen.sh` unless factories_are_recent?
42
67
  end
43
68
 
44
69
  task :copy_third_party_code do |t|
@@ -71,6 +71,9 @@ module Google
71
71
  DEFAULT_CONFIG_FILENAME = "google_ads_config.rb".freeze
72
72
  SCOPE = "https://www.googleapis.com/auth/adwords".freeze
73
73
 
74
+ MAX_MESSAGE_LENGTH = "grpc.max_receive_message_length".freeze
75
+ MAX_METADATA_SIZE = "grpc.max_metadata_size".freeze
76
+
74
77
  attr_reader :logger
75
78
  # Allow setting the lookup_util manually for users who use it before creating the client.
76
79
  attr_writer :lookup_util
@@ -138,7 +141,8 @@ module Google
138
141
  target = ENV.fetch('GOOGLEADS_SERVICE_PATH', default_target)
139
142
 
140
143
  channel_args = {
141
- GRPC::Core::Channel::MAX_MESSAGE_LENGTH => 64*1000*1000
144
+ MAX_MESSAGE_LENGTH => 64*1024*1024,
145
+ MAX_METADATA_SIZE => 16*1024*1024,
142
146
  }
143
147
 
144
148
  call_creds = GRPC::Core::CallCredentials.new(get_credentials)
@@ -19,7 +19,7 @@
19
19
  module Google
20
20
  module Ads
21
21
  module GoogleAds
22
- CLIENT_LIB_VERSION = '2.4.0'.freeze
22
+ CLIENT_LIB_VERSION = '2.4.1'.freeze
23
23
  end
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-ads-googleads
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-10 00:00:00.000000000 Z
11
+ date: 2019-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax