google-ads-googleads 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +4 -1
  3. data/README.md +1 -1
  4. data/lib/google/ads/googleads/{v0/services/credentials.rb → credentials.rb} +6 -10
  5. data/lib/google/ads/googleads/path_lookup_util.rb +18 -0
  6. data/lib/google/ads/googleads/proto_lookup_util.rb +79 -8
  7. data/lib/google/ads/googleads/v0/common/ad_pb.rb +4 -0
  8. data/lib/google/ads/googleads/v0/common/criteria_pb.rb +71 -0
  9. data/lib/google/ads/googleads/v0/enums/ad_group_type_pb.rb +1 -0
  10. data/lib/google/ads/googleads/v0/enums/ad_type_pb.rb +1 -0
  11. data/lib/google/ads/googleads/v0/enums/advertising_channel_type_pb.rb +1 -0
  12. data/lib/google/ads/googleads/v0/enums/bidding_source_pb.rb +29 -0
  13. data/lib/google/ads/googleads/v0/enums/criterion_type_pb.rb +3 -0
  14. data/lib/google/ads/googleads/v0/enums/listing_custom_attribute_index_pb.rb +31 -0
  15. data/lib/google/ads/googleads/v0/enums/listing_group_type_pb.rb +28 -0
  16. data/lib/google/ads/googleads/v0/enums/recommendation_type_pb.rb +30 -0
  17. data/lib/google/ads/googleads/v0/enums/target_cpa_opt_in_recommendation_goal_pb.rb +30 -0
  18. data/lib/google/ads/googleads/v0/errors/ad_error_pb.rb +1 -0
  19. data/lib/google/ads/googleads/v0/errors/ad_group_bid_modifier_error_pb.rb +28 -0
  20. data/lib/google/ads/googleads/v0/errors/ad_group_criterion_error_pb.rb +9 -9
  21. data/lib/google/ads/googleads/v0/errors/authentication_error_pb.rb +0 -4
  22. data/lib/google/ads/googleads/v0/errors/authorization_error_pb.rb +1 -0
  23. data/lib/google/ads/googleads/v0/errors/campaign_error_pb.rb +3 -0
  24. data/lib/google/ads/googleads/v0/errors/context_error_pb.rb +27 -0
  25. data/lib/google/ads/googleads/v0/errors/criterion_error_pb.rb +2 -0
  26. data/lib/google/ads/googleads/v0/errors/errors_pb.rb +8 -0
  27. data/lib/google/ads/googleads/v0/errors/field_error_pb.rb +31 -0
  28. data/lib/google/ads/googleads/v0/errors/internal_error_pb.rb +1 -0
  29. data/lib/google/ads/googleads/v0/errors/mutate_error_pb.rb +0 -3
  30. data/lib/google/ads/googleads/v0/errors/query_error_pb.rb +2 -0
  31. data/lib/google/ads/googleads/v0/errors/recommendation_error_pb.rb +32 -0
  32. data/lib/google/ads/googleads/v0/resources/ad_group_bid_modifier_pb.rb +33 -0
  33. data/lib/google/ads/googleads/v0/resources/ad_group_criterion_pb.rb +5 -4
  34. data/lib/google/ads/googleads/v0/resources/campaign_criterion_pb.rb +3 -0
  35. data/lib/google/ads/googleads/v0/resources/campaign_pb.rb +5 -0
  36. data/lib/google/ads/googleads/v0/resources/customer_pb.rb +1 -0
  37. data/lib/google/ads/googleads/v0/resources/geo_target_constant_pb.rb +27 -0
  38. data/lib/google/ads/googleads/v0/resources/recommendation_pb.rb +85 -0
  39. data/lib/google/ads/googleads/v0/services/ad_group_ad_service_client.rb +3 -3
  40. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_client.rb +263 -0
  41. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_client_config.json +36 -0
  42. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_pb.rb +47 -0
  43. data/lib/google/ads/googleads/v0/services/ad_group_bid_modifier_service_services_pb.rb +52 -0
  44. data/lib/google/ads/googleads/v0/services/ad_group_criterion_service_client.rb +3 -3
  45. data/lib/google/ads/googleads/v0/services/ad_group_service_client.rb +3 -3
  46. data/lib/google/ads/googleads/v0/services/bidding_strategy_service_client.rb +3 -3
  47. data/lib/google/ads/googleads/v0/services/campaign_budget_service_client.rb +3 -3
  48. data/lib/google/ads/googleads/v0/services/campaign_criterion_service_client.rb +3 -3
  49. data/lib/google/ads/googleads/v0/services/campaign_service_client.rb +3 -3
  50. data/lib/google/ads/googleads/v0/services/customer_service_client.rb +3 -3
  51. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_client.rb +214 -0
  52. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_client_config.json +31 -0
  53. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_pb.rb +24 -0
  54. data/lib/google/ads/googleads/v0/services/geo_target_constant_service_services_pb.rb +49 -0
  55. data/lib/google/ads/googleads/v0/services/google_ads_field_service_client.rb +3 -3
  56. data/lib/google/ads/googleads/v0/services/google_ads_field_service_client_config.json +2 -2
  57. data/lib/google/ads/googleads/v0/services/google_ads_service_client.rb +3 -3
  58. data/lib/google/ads/googleads/v0/services/google_ads_service_client_config.json +1 -1
  59. data/lib/google/ads/googleads/v0/services/google_ads_service_pb.rb +6 -0
  60. data/lib/google/ads/googleads/v0/services/keyword_view_service_client.rb +3 -3
  61. data/lib/google/ads/googleads/v0/services/recommendation_service_client.rb +262 -0
  62. data/lib/google/ads/googleads/v0/services/recommendation_service_client_config.json +36 -0
  63. data/lib/google/ads/googleads/v0/services/recommendation_service_pb.rb +73 -0
  64. data/lib/google/ads/googleads/v0/services/recommendation_service_services_pb.rb +51 -0
  65. data/lib/google/ads/googleads/version.rb +1 -1
  66. metadata +27 -4
  67. data/lib/google/ads/googleads/v0/enums/bid_source_pb.rb +0 -29
@@ -0,0 +1,214 @@
1
+ # Copyright 2018 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # EDITING INSTRUCTIONS
16
+ # This file was generated from the file
17
+ # https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v0/services/geo_target_constant_service.proto,
18
+ # and updates to that file get reflected here through a refresh process.
19
+ # For the short term, the refresh process will only be runnable by Google
20
+ # engineers.
21
+
22
+ require "json"
23
+ require "pathname"
24
+
25
+ require "google/gax"
26
+
27
+ require "google/ads/googleads/v0/services/geo_target_constant_service_pb"
28
+ require "google/ads/googleads/credentials"
29
+
30
+ module Google
31
+ module Ads
32
+ module Googleads
33
+ module V0
34
+ module Services
35
+ # Service to fetch geo target constants.
36
+ #
37
+ # @!attribute [r] geo_target_constant_service_stub
38
+ # @return [Google::Ads::Googleads::V0::Services::GeoTargetConstantService::Stub]
39
+ class GeoTargetConstantServiceClient
40
+ attr_reader :geo_target_constant_service_stub
41
+
42
+ # The default address of the service.
43
+ SERVICE_ADDRESS = "googleads.googleapis.com".freeze
44
+
45
+ # The default port of the service.
46
+ DEFAULT_SERVICE_PORT = 443
47
+
48
+ DEFAULT_TIMEOUT = 30
49
+
50
+ # The scopes needed to make gRPC calls to all of the methods defined in
51
+ # this service.
52
+ ALL_SCOPES = [
53
+ ].freeze
54
+
55
+
56
+ GEO_TARGET_CONSTANT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
57
+ "geoTargetConstants/{geo_target_constant}"
58
+ )
59
+
60
+ private_constant :GEO_TARGET_CONSTANT_PATH_TEMPLATE
61
+
62
+ # Returns a fully-qualified geo_target_constant resource name string.
63
+ # @param geo_target_constant [String]
64
+ # @return [String]
65
+ def self.geo_target_constant_path geo_target_constant
66
+ GEO_TARGET_CONSTANT_PATH_TEMPLATE.render(
67
+ :"geo_target_constant" => geo_target_constant
68
+ )
69
+ end
70
+
71
+ # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
72
+ # Provides the means for authenticating requests made by the client. This parameter can
73
+ # be many types.
74
+ # A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
75
+ # authenticating requests made by this client.
76
+ # A `String` will be treated as the path to the keyfile to be used for the construction of
77
+ # credentials for this client.
78
+ # A `Hash` will be treated as the contents of a keyfile to be used for the construction of
79
+ # credentials for this client.
80
+ # A `GRPC::Core::Channel` will be used to make calls through.
81
+ # A `GRPC::Core::ChannelCredentials` for the setting up the RPC client. The channel credentials
82
+ # should already be composed with a `GRPC::Core::CallCredentials` object.
83
+ # A `Proc` will be used as an updater_proc for the Grpc channel. The proc transforms the
84
+ # metadata for requests, generally, to give OAuth credentials.
85
+ # @param scopes [Array<String>]
86
+ # The OAuth scopes for this service. This parameter is ignored if
87
+ # an updater_proc is supplied.
88
+ # @param client_config [Hash]
89
+ # A Hash for call options for each method. See
90
+ # Google::Gax#construct_settings for the structure of
91
+ # this data. Falls back to the default config if not specified
92
+ # or the specified config is missing data points.
93
+ # @param timeout [Numeric]
94
+ # The default timeout, in seconds, for calls made through this client.
95
+ # @param metadata [Hash]
96
+ # Default metadata to be sent with each request. This can be overridden on a per call basis.
97
+ # @param exception_transformer [Proc]
98
+ # An optional proc that intercepts any exceptions raised during an API call to inject
99
+ # custom error handling.
100
+ def initialize \
101
+ credentials: nil,
102
+ scopes: ALL_SCOPES,
103
+ client_config: {},
104
+ timeout: DEFAULT_TIMEOUT,
105
+ metadata: nil,
106
+ exception_transformer: nil,
107
+ lib_name: nil,
108
+ lib_version: ""
109
+ # These require statements are intentionally placed here to initialize
110
+ # the gRPC module only when it's required.
111
+ # See https://github.com/googleapis/toolkit/issues/446
112
+ require "google/gax/grpc"
113
+ require "google/ads/googleads/v0/services/geo_target_constant_service_services_pb"
114
+
115
+ credentials ||= Google::Ads::Googleads::Credentials.default
116
+
117
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
118
+ updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
119
+ end
120
+ if credentials.is_a?(GRPC::Core::Channel)
121
+ channel = credentials
122
+ end
123
+ if credentials.is_a?(GRPC::Core::ChannelCredentials)
124
+ chan_creds = credentials
125
+ end
126
+ if credentials.is_a?(Proc)
127
+ updater_proc = credentials
128
+ end
129
+ if credentials.is_a?(Google::Auth::Credentials)
130
+ updater_proc = credentials.updater_proc
131
+ end
132
+
133
+ package_version = Gem.loaded_specs['google-ads-googleads'].version.version
134
+
135
+ google_api_client = "gl-ruby/#{RUBY_VERSION}"
136
+ google_api_client << " #{lib_name}/#{lib_version}" if lib_name
137
+ google_api_client << " gapic/#{package_version} gax/#{Google::Gax::VERSION}"
138
+ google_api_client << " grpc/#{GRPC::VERSION}"
139
+ google_api_client.freeze
140
+
141
+ headers = { :"x-goog-api-client" => google_api_client }
142
+ headers.merge!(metadata) unless metadata.nil?
143
+ client_config_file = Pathname.new(__dir__).join(
144
+ "geo_target_constant_service_client_config.json"
145
+ )
146
+ defaults = client_config_file.open do |f|
147
+ Google::Gax.construct_settings(
148
+ "google.ads.googleads.v0.services.GeoTargetConstantService",
149
+ JSON.parse(f.read),
150
+ client_config,
151
+ Google::Gax::Grpc::STATUS_CODE_NAMES,
152
+ timeout,
153
+ errors: Google::Gax::Grpc::API_ERRORS,
154
+ metadata: headers
155
+ )
156
+ end
157
+
158
+ # Allow overriding the service path/port in subclasses.
159
+ service_path = self.class::SERVICE_ADDRESS
160
+ port = self.class::DEFAULT_SERVICE_PORT
161
+ @geo_target_constant_service_stub = Google::Gax::Grpc.create_stub(
162
+ service_path,
163
+ port,
164
+ chan_creds: chan_creds,
165
+ channel: channel,
166
+ updater_proc: updater_proc,
167
+ scopes: scopes,
168
+ &Google::Ads::Googleads::V0::Services::GeoTargetConstantService::Stub.method(:new)
169
+ )
170
+
171
+ @get_geo_target_constant = Google::Gax.create_api_call(
172
+ @geo_target_constant_service_stub.method(:get_geo_target_constant),
173
+ defaults["get_geo_target_constant"],
174
+ exception_transformer: exception_transformer
175
+ )
176
+ end
177
+
178
+ # Service calls
179
+
180
+ # Returns the requested geo target constant in full detail.
181
+ #
182
+ # @param resource_name [String]
183
+ # The resource name of the geo target constant to fetch.
184
+ # @param options [Google::Gax::CallOptions]
185
+ # Overrides the default settings for this call, e.g, timeout,
186
+ # retries, etc.
187
+ # @yield [result, operation] Access the result along with the RPC operation
188
+ # @yieldparam result [Google::Ads::Googleads::V0::Resources::GeoTargetConstant]
189
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
190
+ # @return [Google::Ads::Googleads::V0::Resources::GeoTargetConstant]
191
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
192
+ # @example
193
+ # require "google/ads/googleads/v0/services"
194
+ #
195
+ # geo_target_constant_service_client = Google::Ads::Googleads::V0::Services::GeoTargetConstant.new
196
+ # formatted_resource_name = Google::Ads::Googleads::V0::Services::GeoTargetConstantServiceClient.geo_target_constant_path("[GEO_TARGET_CONSTANT]")
197
+ # response = geo_target_constant_service_client.get_geo_target_constant(formatted_resource_name)
198
+
199
+ def get_geo_target_constant \
200
+ resource_name,
201
+ options: nil,
202
+ &block
203
+ req = {
204
+ resource_name: resource_name
205
+ }.delete_if { |_, v| v.nil? }
206
+ req = Google::Gax::to_proto(req, Google::Ads::Googleads::V0::Services::GetGeoTargetConstantRequest)
207
+ @get_geo_target_constant.call(req, options, &block)
208
+ end
209
+ end
210
+ end
211
+ end
212
+ end
213
+ end
214
+ end
@@ -0,0 +1,31 @@
1
+ {
2
+ "interfaces": {
3
+ "google.ads.googleads.v0.services.GeoTargetConstantService": {
4
+ "retry_codes": {
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
10
+ },
11
+ "retry_params": {
12
+ "default": {
13
+ "initial_retry_delay_millis": 100,
14
+ "retry_delay_multiplier": 1.3,
15
+ "max_retry_delay_millis": 60000,
16
+ "initial_rpc_timeout_millis": 20000,
17
+ "rpc_timeout_multiplier": 1.0,
18
+ "max_rpc_timeout_millis": 20000,
19
+ "total_timeout_millis": 600000
20
+ }
21
+ },
22
+ "methods": {
23
+ "GetGeoTargetConstant": {
24
+ "timeout_millis": 60000,
25
+ "retry_codes_name": "idempotent",
26
+ "retry_params_name": "default"
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,24 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/ads/googleads/v0/services/geo_target_constant_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/ads/googleads/v0/resources/geo_target_constant_pb'
7
+ require 'google/api/annotations_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_message "google.ads.googleads.v0.services.GetGeoTargetConstantRequest" do
10
+ optional :resource_name, :string, 1
11
+ end
12
+ end
13
+
14
+ module Google
15
+ module Ads
16
+ module Googleads
17
+ module V0
18
+ module Services
19
+ GetGeoTargetConstantRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v0.services.GetGeoTargetConstantRequest").msgclass
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/ads/googleads/v0/services/geo_target_constant_service.proto for package 'google.ads.googleads.v0.services'
3
+ # Original file comments:
4
+ # Copyright 2018 Google Inc.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/ads/googleads/v0/services/geo_target_constant_service_pb'
21
+
22
+ module Google
23
+ module Ads
24
+ module Googleads
25
+ module V0
26
+ module Services
27
+ module GeoTargetConstantService
28
+ # Proto file describing the Geo target constant service.
29
+ #
30
+ # Service to fetch geo target constants.
31
+ class Service
32
+
33
+ include GRPC::GenericService
34
+
35
+ self.marshal_class_method = :encode
36
+ self.unmarshal_class_method = :decode
37
+ self.service_name = 'google.ads.googleads.v0.services.GeoTargetConstantService'
38
+
39
+ # Returns the requested geo target constant in full detail.
40
+ rpc :GetGeoTargetConstant, GetGeoTargetConstantRequest, Google::Ads::Googleads::V0::Resources::GeoTargetConstant
41
+ end
42
+
43
+ Stub = Service.rpc_stub_class
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -25,7 +25,7 @@ require "pathname"
25
25
  require "google/gax"
26
26
 
27
27
  require "google/ads/googleads/v0/services/google_ads_field_service_pb"
28
- require "google/ads/googleads/v0/services/credentials"
28
+ require "google/ads/googleads/credentials"
29
29
 
30
30
  module Google
31
31
  module Ads
@@ -121,10 +121,10 @@ module Google
121
121
  require "google/gax/grpc"
122
122
  require "google/ads/googleads/v0/services/google_ads_field_service_services_pb"
123
123
 
124
- credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
124
+ credentials ||= Google::Ads::Googleads::Credentials.default
125
125
 
126
126
  if credentials.is_a?(String) || credentials.is_a?(Hash)
127
- updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
127
+ updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
128
128
  end
129
129
  if credentials.is_a?(GRPC::Core::Channel)
130
130
  channel = credentials
@@ -21,12 +21,12 @@
21
21
  },
22
22
  "methods": {
23
23
  "GetGoogleAdsField": {
24
- "timeout_millis": 600000,
24
+ "timeout_millis": 60000,
25
25
  "retry_codes_name": "idempotent",
26
26
  "retry_params_name": "default"
27
27
  },
28
28
  "SearchGoogleAdsFields": {
29
- "timeout_millis": 600000,
29
+ "timeout_millis": 60000,
30
30
  "retry_codes_name": "non_idempotent",
31
31
  "retry_params_name": "default"
32
32
  }
@@ -25,7 +25,7 @@ require "pathname"
25
25
  require "google/gax"
26
26
 
27
27
  require "google/ads/googleads/v0/services/google_ads_service_pb"
28
- require "google/ads/googleads/v0/services/credentials"
28
+ require "google/ads/googleads/credentials"
29
29
 
30
30
  module Google
31
31
  module Ads
@@ -106,10 +106,10 @@ module Google
106
106
  require "google/gax/grpc"
107
107
  require "google/ads/googleads/v0/services/google_ads_service_services_pb"
108
108
 
109
- credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
109
+ credentials ||= Google::Ads::Googleads::Credentials.default
110
110
 
111
111
  if credentials.is_a?(String) || credentials.is_a?(Hash)
112
- updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
112
+ updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
113
113
  end
114
114
  if credentials.is_a?(GRPC::Core::Channel)
115
115
  channel = credentials
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "methods": {
23
23
  "Search": {
24
- "timeout_millis": 600000,
24
+ "timeout_millis": 60000,
25
25
  "retry_codes_name": "non_idempotent",
26
26
  "retry_params_name": "default"
27
27
  }
@@ -10,13 +10,16 @@ require 'google/ads/googleads/v0/enums/device_pb'
10
10
  require 'google/ads/googleads/v0/enums/slot_pb'
11
11
  require 'google/ads/googleads/v0/resources/ad_group_pb'
12
12
  require 'google/ads/googleads/v0/resources/ad_group_ad_pb'
13
+ require 'google/ads/googleads/v0/resources/ad_group_bid_modifier_pb'
13
14
  require 'google/ads/googleads/v0/resources/ad_group_criterion_pb'
14
15
  require 'google/ads/googleads/v0/resources/bidding_strategy_pb'
15
16
  require 'google/ads/googleads/v0/resources/campaign_pb'
16
17
  require 'google/ads/googleads/v0/resources/campaign_budget_pb'
17
18
  require 'google/ads/googleads/v0/resources/campaign_criterion_pb'
18
19
  require 'google/ads/googleads/v0/resources/customer_pb'
20
+ require 'google/ads/googleads/v0/resources/geo_target_constant_pb'
19
21
  require 'google/ads/googleads/v0/resources/keyword_view_pb'
22
+ require 'google/ads/googleads/v0/resources/recommendation_pb'
20
23
  require 'google/api/annotations_pb'
21
24
  require 'google/protobuf/field_mask_pb'
22
25
  require 'google/protobuf/wrappers_pb'
@@ -36,13 +39,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
36
39
  add_message "google.ads.googleads.v0.services.GoogleAdsRow" do
37
40
  optional :ad_group, :message, 3, "google.ads.googleads.v0.resources.AdGroup"
38
41
  optional :ad_group_ad, :message, 16, "google.ads.googleads.v0.resources.AdGroupAd"
42
+ optional :ad_group_bid_modifier, :message, 24, "google.ads.googleads.v0.resources.AdGroupBidModifier"
39
43
  optional :ad_group_criterion, :message, 17, "google.ads.googleads.v0.resources.AdGroupCriterion"
40
44
  optional :bidding_strategy, :message, 18, "google.ads.googleads.v0.resources.BiddingStrategy"
41
45
  optional :campaign_budget, :message, 19, "google.ads.googleads.v0.resources.CampaignBudget"
42
46
  optional :campaign, :message, 2, "google.ads.googleads.v0.resources.Campaign"
43
47
  optional :campaign_criterion, :message, 20, "google.ads.googleads.v0.resources.CampaignCriterion"
44
48
  optional :customer, :message, 1, "google.ads.googleads.v0.resources.Customer"
49
+ optional :geo_target_constant, :message, 23, "google.ads.googleads.v0.resources.GeoTargetConstant"
45
50
  optional :keyword_view, :message, 21, "google.ads.googleads.v0.resources.KeywordView"
51
+ optional :recommendation, :message, 22, "google.ads.googleads.v0.resources.Recommendation"
46
52
  optional :metrics, :message, 4, "google.ads.googleads.v0.common.Metrics"
47
53
  optional :ad_network_type, :enum, 5, "google.ads.googleads.v0.enums.AdNetworkTypeEnum.AdNetworkType"
48
54
  optional :date, :message, 6, "google.protobuf.StringValue"
@@ -25,7 +25,7 @@ require "pathname"
25
25
  require "google/gax"
26
26
 
27
27
  require "google/ads/googleads/v0/services/keyword_view_service_pb"
28
- require "google/ads/googleads/v0/services/credentials"
28
+ require "google/ads/googleads/credentials"
29
29
 
30
30
  module Google
31
31
  module Ads
@@ -114,10 +114,10 @@ module Google
114
114
  require "google/gax/grpc"
115
115
  require "google/ads/googleads/v0/services/keyword_view_service_services_pb"
116
116
 
117
- credentials ||= Google::Ads::Googleads::V0::Services::Credentials.default
117
+ credentials ||= Google::Ads::Googleads::Credentials.default
118
118
 
119
119
  if credentials.is_a?(String) || credentials.is_a?(Hash)
120
- updater_proc = Google::Ads::Googleads::V0::Services::Credentials.new(credentials).updater_proc
120
+ updater_proc = Google::Ads::Googleads::Credentials.new(credentials).updater_proc
121
121
  end
122
122
  if credentials.is_a?(GRPC::Core::Channel)
123
123
  channel = credentials