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 +4 -4
- data/ChangeLog +4 -0
- data/Rakefile +26 -1
- data/lib/google/ads/google_ads/google_ads_client.rb +5 -1
- data/lib/google/ads/google_ads/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17ec3014981940469ea97f1a9ed8af856120cc259429eb888e4e4abf3b88e199
|
|
4
|
+
data.tar.gz: e440cb784d71b9d592af5d30a221f2b1c2add36f4d7a2550f882989c218f4eee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb69dd754baa94fde504a280f1fe203007c34a36932fc3afed6e7a02043f09469b424df1bd4bec032b29e72abd9f7dde85aaae3165b499dc3225475bac25355a
|
|
7
|
+
data.tar.gz: b053cf46b51c906c25348e69e30e5d0e4f07c7aaf98fbd7cc3ed9ff44e2efaa262c1fa5cbbe95bd446aa6fa5a7ce4837f1a106ac36b8a1cfb619c3bc28df9482
|
data/ChangeLog
CHANGED
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
|
-
|
|
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)
|
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.
|
|
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-
|
|
11
|
+
date: 2019-06-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-gax
|