google-ads-googleads 9.0.0 → 10.0.0

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.
@@ -52,10 +52,7 @@ module Google
52
52
  # no args specified at all, just pass through
53
53
  service.public_send(name, request, nil)
54
54
  else
55
- # this branch is the legacy version
56
- kwargs.each do |name, value|
57
- request.public_send("#{name}=", value)
58
- end
55
+ # this branch is the legacy version, which is no longer supported
59
56
 
60
57
  # zip will fill with nils by default, so we truncate the number
61
58
  # of fields we set to match the argument length here.
@@ -65,7 +62,6 @@ module Google
65
62
 
66
63
  field_names = []
67
64
  args_and_fields.each do |(arg, field)|
68
- write_field(request, arg, field)
69
65
  field_names << field.name
70
66
  end
71
67
 
@@ -74,14 +70,10 @@ module Google
74
70
  service_name_segments[service_name_segments.length-2]
75
71
  )
76
72
  method_name = "#{service_name}.#{name}"
77
- deprecation.deprecate(
78
- "Calling #{method_name} with positional " \
73
+ raise ArgumentError, "Calling #{method_name} with positional " \
79
74
  "arguments is deprecated, please update it to use kwargs, e.g.: " \
80
75
  "#{method_name}" \
81
76
  "(#{field_names.map { |fn| "#{fn}: ..."}.join(", ")})"
82
- )
83
-
84
- service.public_send(name, request)
85
77
  end
86
78
  end
87
79
 
@@ -19,7 +19,7 @@
19
19
  module Google
20
20
  module Ads
21
21
  module GoogleAds
22
- CLIENT_LIB_VERSION = '9.0.0'.freeze
22
+ CLIENT_LIB_VERSION = '10.0.0'.freeze
23
23
  VERSION = CLIENT_LIB_VERSION
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: 9.0.0
4
+ version: 10.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-18 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -3672,7 +3672,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3672
3672
  - !ruby/object:Gem::Version
3673
3673
  version: '0'
3674
3674
  requirements: []
3675
- rubygems_version: 3.0.3
3675
+ rubygems_version: 3.1.4
3676
3676
  signing_key:
3677
3677
  specification_version: 4
3678
3678
  summary: Google client library for the Google Ads API