google-ads-googleads 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +8 -0
- data/google_ads_config.rb +6 -0
- data/lib/google/ads/google_ads/api_versions.rb +8 -0
- data/lib/google/ads/google_ads/config.rb +2 -0
- data/lib/google/ads/google_ads/google_ads_client.rb +37 -66
- data/lib/google/ads/google_ads/logging_interceptor.rb +108 -36
- data/lib/google/ads/google_ads/lookup_util.rb +105 -0
- data/lib/google/ads/google_ads/partial_failure_error_decoder.rb +24 -0
- data/lib/google/ads/google_ads/utils/v0/proto_lookup_util.rb +4 -1
- data/lib/google/ads/google_ads/utils/v1/path_lookup_util.rb +11 -1
- data/lib/google/ads/google_ads/utils/v1/proto_lookup_util.rb +39 -6
- data/lib/google/ads/google_ads/v1/common/ad_asset_pb.rb +12 -0
- data/lib/google/ads/google_ads/v1/common/ad_type_infos_pb.rb +39 -0
- data/lib/google/ads/google_ads/v1/common/asset_types_pb.rb +34 -0
- data/lib/google/ads/google_ads/v1/common/bidding_pb.rb +4 -0
- data/lib/google/ads/google_ads/v1/common/criteria_pb.rb +4 -0
- data/lib/google/ads/google_ads/v1/common/policy_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/common/segments_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/enums/ad_group_criterion_approval_status_pb.rb +23 -0
- data/lib/google/ads/google_ads/v1/enums/ad_group_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/enums/ad_type_pb.rb +3 -0
- data/lib/google/ads/google_ads/v1/enums/advertising_channel_sub_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/enums/advertising_channel_type_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/enums/app_campaign_app_store_pb.rb +21 -0
- data/lib/google/ads/google_ads/v1/enums/app_campaign_bidding_strategy_goal_type_pb.rb +23 -0
- data/lib/google/ads/google_ads/v1/enums/asset_type_pb.rb +22 -0
- data/lib/google/ads/google_ads/v1/enums/bidding_source_pb.rb +2 -2
- data/lib/google/ads/google_ads/v1/enums/budget_type_pb.rb +21 -0
- data/lib/google/ads/google_ads/v1/enums/conversion_adjustment_type_pb.rb +21 -0
- data/lib/google/ads/google_ads/v1/enums/legacy_app_install_ad_app_store_pb.rb +24 -0
- data/lib/google/ads/google_ads/v1/enums/payment_mode_pb.rb +21 -0
- data/lib/google/ads/google_ads/v1/enums/recommendation_type_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/errors/asset_error_pb.rb +23 -0
- data/lib/google/ads/google_ads/v1/errors/authorization_error_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/errors/bidding_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/errors/campaign_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/errors/conversion_adjustment_upload_error_pb.rb +28 -0
- data/lib/google/ads/google_ads/v1/errors/conversion_upload_error_pb.rb +6 -0
- data/lib/google/ads/google_ads/v1/errors/criterion_error_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/errors/errors_pb.rb +4 -0
- data/lib/google/ads/google_ads/v1/errors/media_upload_error_pb.rb +11 -0
- data/lib/google/ads/google_ads/v1/errors/mutate_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/errors/policy_validation_parameter_error_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/errors/recommendation_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/errors/request_error_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/errors/youtube_video_registration_error_pb.rb +11 -0
- data/lib/google/ads/google_ads/v1/resources/ad_group_criterion_pb.rb +3 -0
- data/lib/google/ads/google_ads/v1/resources/ad_pb.rb +3 -0
- data/lib/google/ads/google_ads/v1/resources/asset_pb.rb +26 -0
- data/lib/google/ads/google_ads/v1/resources/campaign_budget_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/resources/campaign_criterion_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/resources/campaign_pb.rb +23 -11
- data/lib/google/ads/google_ads/v1/resources/extension_feed_item_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/resources/mutate_job_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/resources/recommendation_pb.rb +21 -8
- data/lib/google/ads/google_ads/v1/resources/shared_criterion_pb.rb +1 -0
- data/lib/google/ads/google_ads/v1/services/ad_group_criterion_service_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/services/asset_service_client.rb +267 -0
- data/lib/google/ads/google_ads/v1/services/asset_service_client_config.json +36 -0
- data/lib/google/ads/google_ads/v1/services/asset_service_pb.rb +35 -0
- data/lib/google/ads/google_ads/v1/services/asset_service_services_pb.rb +42 -0
- data/lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client.rb +222 -0
- data/lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client_config.json +31 -0
- data/lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_pb.rb +56 -0
- data/lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_services_pb.rb +40 -0
- data/lib/google/ads/google_ads/v1/services/conversion_upload_service_client.rb +53 -0
- data/lib/google/ads/google_ads/v1/services/conversion_upload_service_client_config.json +5 -0
- data/lib/google/ads/google_ads/v1/services/conversion_upload_service_pb.rb +27 -0
- data/lib/google/ads/google_ads/v1/services/conversion_upload_service_services_pb.rb +2 -0
- data/lib/google/ads/google_ads/v1/services/google_ads_service_pb.rb +5 -0
- data/lib/google/ads/google_ads/v1/services/recommendation_service_pb.rb +5 -0
- data/lib/google/ads/google_ads/v1/services/shopping_performance_view_service_client.rb +19 -6
- data/lib/google/ads/google_ads/version.rb +1 -1
- data/lib/google/ads/google_ads/wrapper_util.rb +4 -0
- data/lib/google/ads/google_ads.rb +4 -0
- metadata +27 -2
@@ -0,0 +1,56 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/ads/google_ads/v1/services/conversion_adjustment_upload_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/ads/google_ads/v1/enums/conversion_adjustment_type_pb'
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/protobuf/wrappers_pb'
|
9
|
+
require 'google/rpc/status_pb'
|
10
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
|
+
add_message "google.ads.googleads.v1.services.UploadConversionAdjustmentsRequest" do
|
12
|
+
optional :customer_id, :string, 1
|
13
|
+
repeated :conversion_adjustments, :message, 2, "google.ads.googleads.v1.services.ConversionAdjustment"
|
14
|
+
optional :partial_failure, :bool, 3
|
15
|
+
end
|
16
|
+
add_message "google.ads.googleads.v1.services.UploadConversionAdjustmentsResponse" do
|
17
|
+
optional :partial_failure_error, :message, 1, "google.rpc.Status"
|
18
|
+
repeated :results, :message, 2, "google.ads.googleads.v1.services.ConversionAdjustmentResult"
|
19
|
+
end
|
20
|
+
add_message "google.ads.googleads.v1.services.ConversionAdjustment" do
|
21
|
+
optional :conversion_action, :message, 3, "google.protobuf.StringValue"
|
22
|
+
optional :adjustment_date_time, :message, 4, "google.protobuf.StringValue"
|
23
|
+
optional :adjustment_type, :enum, 5, "google.ads.googleads.v1.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType"
|
24
|
+
optional :restatement_value, :message, 6, "google.ads.googleads.v1.services.RestatementValue"
|
25
|
+
oneof :conversion_identifier do
|
26
|
+
optional :gclid_date_time_pair, :message, 1, "google.ads.googleads.v1.services.GclidDateTimePair"
|
27
|
+
optional :order_id, :message, 2, "google.protobuf.StringValue"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
add_message "google.ads.googleads.v1.services.RestatementValue" do
|
31
|
+
optional :adjusted_value, :message, 1, "google.protobuf.DoubleValue"
|
32
|
+
optional :currency_code, :message, 2, "google.protobuf.StringValue"
|
33
|
+
end
|
34
|
+
add_message "google.ads.googleads.v1.services.GclidDateTimePair" do
|
35
|
+
optional :gclid, :message, 1, "google.protobuf.StringValue"
|
36
|
+
optional :conversion_date_time, :message, 2, "google.protobuf.StringValue"
|
37
|
+
end
|
38
|
+
add_message "google.ads.googleads.v1.services.ConversionAdjustmentResult" do
|
39
|
+
optional :conversion_action, :message, 3, "google.protobuf.StringValue"
|
40
|
+
optional :adjustment_date_time, :message, 4, "google.protobuf.StringValue"
|
41
|
+
optional :adjustment_type, :enum, 5, "google.ads.googleads.v1.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType"
|
42
|
+
oneof :conversion_identifier do
|
43
|
+
optional :gclid_date_time_pair, :message, 1, "google.ads.googleads.v1.services.GclidDateTimePair"
|
44
|
+
optional :order_id, :message, 2, "google.protobuf.StringValue"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
module Google::Ads::GoogleAds::V1::Services
|
50
|
+
UploadConversionAdjustmentsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.UploadConversionAdjustmentsRequest").msgclass
|
51
|
+
UploadConversionAdjustmentsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.UploadConversionAdjustmentsResponse").msgclass
|
52
|
+
ConversionAdjustment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ConversionAdjustment").msgclass
|
53
|
+
RestatementValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.RestatementValue").msgclass
|
54
|
+
GclidDateTimePair = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.GclidDateTimePair").msgclass
|
55
|
+
ConversionAdjustmentResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ConversionAdjustmentResult").msgclass
|
56
|
+
end
|
data/lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_services_pb.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/ads/google_ads/v1/services/conversion_adjustment_upload_service.proto for package 'Google::Ads::GoogleAds::V1::Services'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2019 Google LLC.
|
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
|
+
|
20
|
+
require 'grpc'
|
21
|
+
require 'google/ads/google_ads/v1/services/conversion_adjustment_upload_service_pb'
|
22
|
+
|
23
|
+
module Google::Ads::GoogleAds::V1::Services
|
24
|
+
module ConversionAdjustmentUploadService
|
25
|
+
# Service to upload conversion adjustments.
|
26
|
+
class Service
|
27
|
+
|
28
|
+
include GRPC::GenericService
|
29
|
+
|
30
|
+
self.marshal_class_method = :encode
|
31
|
+
self.unmarshal_class_method = :decode
|
32
|
+
self.service_name = 'google.ads.googleads.v1.services.ConversionAdjustmentUploadService'
|
33
|
+
|
34
|
+
# Processes the given conversion adjustments.
|
35
|
+
rpc :UploadConversionAdjustments, UploadConversionAdjustmentsRequest, UploadConversionAdjustmentsResponse
|
36
|
+
end
|
37
|
+
|
38
|
+
Stub = Service.rpc_stub_class
|
39
|
+
end
|
40
|
+
end
|
@@ -163,6 +163,11 @@ module Google
|
|
163
163
|
defaults["upload_click_conversions"],
|
164
164
|
exception_transformer: exception_transformer
|
165
165
|
)
|
166
|
+
@upload_call_conversions = Google::Gax.create_api_call(
|
167
|
+
@conversion_upload_service_stub.method(:upload_call_conversions),
|
168
|
+
defaults["upload_call_conversions"],
|
169
|
+
exception_transformer: exception_transformer
|
170
|
+
)
|
166
171
|
end
|
167
172
|
|
168
173
|
# Service calls
|
@@ -214,6 +219,54 @@ module Google
|
|
214
219
|
req = Google::Gax::to_proto(req, Google::Ads::GoogleAds::V1::Services::UploadClickConversionsRequest)
|
215
220
|
@upload_click_conversions.call(req, options, &block)
|
216
221
|
end
|
222
|
+
|
223
|
+
# Processes the given call conversions.
|
224
|
+
#
|
225
|
+
# @param customer_id [String]
|
226
|
+
# The ID of the customer performing the upload.
|
227
|
+
# @param conversions [Array<Google::Ads::GoogleAds::V1::Services::CallConversion | Hash>]
|
228
|
+
# The conversions that are being uploaded.
|
229
|
+
# A hash of the same form as `Google::Ads::GoogleAds::V1::Services::CallConversion`
|
230
|
+
# can also be provided.
|
231
|
+
# @param partial_failure [true, false]
|
232
|
+
# If true, successful operations will be carried out and invalid
|
233
|
+
# operations will return errors. If false, all operations will be carried
|
234
|
+
# out in one transaction if and only if they are all valid.
|
235
|
+
# This should always be set to true.
|
236
|
+
# @param options [Google::Gax::CallOptions]
|
237
|
+
# Overrides the default settings for this call, e.g, timeout,
|
238
|
+
# retries, etc.
|
239
|
+
# @yield [result, operation] Access the result along with the RPC operation
|
240
|
+
# @yieldparam result [Google::Ads::GoogleAds::V1::Services::UploadCallConversionsResponse]
|
241
|
+
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
242
|
+
# @return [Google::Ads::GoogleAds::V1::Services::UploadCallConversionsResponse]
|
243
|
+
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
244
|
+
# @example
|
245
|
+
# require "google/ads/google_ads"
|
246
|
+
#
|
247
|
+
# conversion_upload_service_client = Google::Ads::GoogleAds::ConversionUpload.new(version: :v1)
|
248
|
+
#
|
249
|
+
# # TODO: Initialize `customer_id`:
|
250
|
+
# customer_id = ''
|
251
|
+
#
|
252
|
+
# # TODO: Initialize `conversions`:
|
253
|
+
# conversions = []
|
254
|
+
# response = conversion_upload_service_client.upload_call_conversions(customer_id, conversions)
|
255
|
+
|
256
|
+
def upload_call_conversions \
|
257
|
+
customer_id,
|
258
|
+
conversions,
|
259
|
+
partial_failure: nil,
|
260
|
+
options: nil,
|
261
|
+
&block
|
262
|
+
req = {
|
263
|
+
customer_id: customer_id,
|
264
|
+
conversions: conversions,
|
265
|
+
partial_failure: partial_failure
|
266
|
+
}.delete_if { |_, v| v.nil? }
|
267
|
+
req = Google::Gax::to_proto(req, Google::Ads::GoogleAds::V1::Services::UploadCallConversionsRequest)
|
268
|
+
@upload_call_conversions.call(req, options, &block)
|
269
|
+
end
|
217
270
|
end
|
218
271
|
end
|
219
272
|
end
|
@@ -24,6 +24,11 @@
|
|
24
24
|
"timeout_millis": 60000,
|
25
25
|
"retry_codes_name": "non_idempotent",
|
26
26
|
"retry_params_name": "default"
|
27
|
+
},
|
28
|
+
"UploadCallConversions": {
|
29
|
+
"timeout_millis": 60000,
|
30
|
+
"retry_codes_name": "non_idempotent",
|
31
|
+
"retry_params_name": "default"
|
27
32
|
}
|
28
33
|
}
|
29
34
|
}
|
@@ -16,6 +16,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
16
|
optional :partial_failure_error, :message, 1, "google.rpc.Status"
|
17
17
|
repeated :results, :message, 2, "google.ads.googleads.v1.services.ClickConversionResult"
|
18
18
|
end
|
19
|
+
add_message "google.ads.googleads.v1.services.UploadCallConversionsRequest" do
|
20
|
+
optional :customer_id, :string, 1
|
21
|
+
repeated :conversions, :message, 2, "google.ads.googleads.v1.services.CallConversion"
|
22
|
+
optional :partial_failure, :bool, 3
|
23
|
+
end
|
24
|
+
add_message "google.ads.googleads.v1.services.UploadCallConversionsResponse" do
|
25
|
+
optional :partial_failure_error, :message, 1, "google.rpc.Status"
|
26
|
+
repeated :results, :message, 2, "google.ads.googleads.v1.services.CallConversionResult"
|
27
|
+
end
|
19
28
|
add_message "google.ads.googleads.v1.services.ClickConversion" do
|
20
29
|
optional :gclid, :message, 1, "google.protobuf.StringValue"
|
21
30
|
optional :conversion_action, :message, 2, "google.protobuf.StringValue"
|
@@ -25,6 +34,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
25
34
|
optional :order_id, :message, 6, "google.protobuf.StringValue"
|
26
35
|
optional :external_attribution_data, :message, 7, "google.ads.googleads.v1.services.ExternalAttributionData"
|
27
36
|
end
|
37
|
+
add_message "google.ads.googleads.v1.services.CallConversion" do
|
38
|
+
optional :caller_id, :message, 1, "google.protobuf.StringValue"
|
39
|
+
optional :call_start_date_time, :message, 2, "google.protobuf.StringValue"
|
40
|
+
optional :conversion_action, :message, 3, "google.protobuf.StringValue"
|
41
|
+
optional :conversion_date_time, :message, 4, "google.protobuf.StringValue"
|
42
|
+
optional :conversion_value, :message, 5, "google.protobuf.DoubleValue"
|
43
|
+
optional :currency_code, :message, 6, "google.protobuf.StringValue"
|
44
|
+
end
|
28
45
|
add_message "google.ads.googleads.v1.services.ExternalAttributionData" do
|
29
46
|
optional :external_attribution_credit, :message, 1, "google.protobuf.DoubleValue"
|
30
47
|
optional :external_attribution_model, :message, 2, "google.protobuf.StringValue"
|
@@ -34,12 +51,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
34
51
|
optional :conversion_action, :message, 2, "google.protobuf.StringValue"
|
35
52
|
optional :conversion_date_time, :message, 3, "google.protobuf.StringValue"
|
36
53
|
end
|
54
|
+
add_message "google.ads.googleads.v1.services.CallConversionResult" do
|
55
|
+
optional :caller_id, :message, 1, "google.protobuf.StringValue"
|
56
|
+
optional :call_start_date_time, :message, 2, "google.protobuf.StringValue"
|
57
|
+
optional :conversion_action, :message, 3, "google.protobuf.StringValue"
|
58
|
+
optional :conversion_date_time, :message, 4, "google.protobuf.StringValue"
|
59
|
+
end
|
37
60
|
end
|
38
61
|
|
39
62
|
module Google::Ads::GoogleAds::V1::Services
|
40
63
|
UploadClickConversionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.UploadClickConversionsRequest").msgclass
|
41
64
|
UploadClickConversionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.UploadClickConversionsResponse").msgclass
|
65
|
+
UploadCallConversionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.UploadCallConversionsRequest").msgclass
|
66
|
+
UploadCallConversionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.UploadCallConversionsResponse").msgclass
|
42
67
|
ClickConversion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ClickConversion").msgclass
|
68
|
+
CallConversion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.CallConversion").msgclass
|
43
69
|
ExternalAttributionData = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ExternalAttributionData").msgclass
|
44
70
|
ClickConversionResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ClickConversionResult").msgclass
|
71
|
+
CallConversionResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.CallConversionResult").msgclass
|
45
72
|
end
|
@@ -33,6 +33,8 @@ module Google::Ads::GoogleAds::V1::Services
|
|
33
33
|
|
34
34
|
# Processes the given click conversions.
|
35
35
|
rpc :UploadClickConversions, UploadClickConversionsRequest, UploadClickConversionsResponse
|
36
|
+
# Processes the given call conversions.
|
37
|
+
rpc :UploadCallConversions, UploadCallConversionsRequest, UploadCallConversionsResponse
|
36
38
|
end
|
37
39
|
|
38
40
|
Stub = Service.rpc_stub_class
|
@@ -19,6 +19,7 @@ require 'google/ads/google_ads/v1/resources/ad_group_feed_pb'
|
|
19
19
|
require 'google/ads/google_ads/v1/resources/ad_group_label_pb'
|
20
20
|
require 'google/ads/google_ads/v1/resources/ad_schedule_view_pb'
|
21
21
|
require 'google/ads/google_ads/v1/resources/age_range_view_pb'
|
22
|
+
require 'google/ads/google_ads/v1/resources/asset_pb'
|
22
23
|
require 'google/ads/google_ads/v1/resources/bidding_strategy_pb'
|
23
24
|
require 'google/ads/google_ads/v1/resources/billing_setup_pb'
|
24
25
|
require 'google/ads/google_ads/v1/resources/campaign_pb'
|
@@ -97,6 +98,7 @@ require 'google/ads/google_ads/v1/services/ad_group_feed_service_pb'
|
|
97
98
|
require 'google/ads/google_ads/v1/services/ad_group_label_service_pb'
|
98
99
|
require 'google/ads/google_ads/v1/services/ad_group_service_pb'
|
99
100
|
require 'google/ads/google_ads/v1/services/ad_parameter_service_pb'
|
101
|
+
require 'google/ads/google_ads/v1/services/asset_service_pb'
|
100
102
|
require 'google/ads/google_ads/v1/services/bidding_strategy_service_pb'
|
101
103
|
require 'google/ads/google_ads/v1/services/campaign_bid_modifier_service_pb'
|
102
104
|
require 'google/ads/google_ads/v1/services/campaign_budget_service_pb'
|
@@ -156,6 +158,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
156
158
|
optional :age_range_view, :message, 48, "google.ads.googleads.v1.resources.AgeRangeView"
|
157
159
|
optional :ad_schedule_view, :message, 89, "google.ads.googleads.v1.resources.AdScheduleView"
|
158
160
|
optional :domain_category, :message, 91, "google.ads.googleads.v1.resources.DomainCategory"
|
161
|
+
optional :asset, :message, 105, "google.ads.googleads.v1.resources.Asset"
|
159
162
|
optional :bidding_strategy, :message, 18, "google.ads.googleads.v1.resources.BiddingStrategy"
|
160
163
|
optional :billing_setup, :message, 41, "google.ads.googleads.v1.resources.BillingSetup"
|
161
164
|
optional :campaign_budget, :message, 19, "google.ads.googleads.v1.resources.CampaignBudget"
|
@@ -248,6 +251,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
248
251
|
optional :ad_group_label_operation, :message, 21, "google.ads.googleads.v1.services.AdGroupLabelOperation"
|
249
252
|
optional :ad_group_operation, :message, 5, "google.ads.googleads.v1.services.AdGroupOperation"
|
250
253
|
optional :ad_parameter_operation, :message, 22, "google.ads.googleads.v1.services.AdParameterOperation"
|
254
|
+
optional :asset_operation, :message, 23, "google.ads.googleads.v1.services.AssetOperation"
|
251
255
|
optional :bidding_strategy_operation, :message, 6, "google.ads.googleads.v1.services.BiddingStrategyOperation"
|
252
256
|
optional :campaign_bid_modifier_operation, :message, 7, "google.ads.googleads.v1.services.CampaignBidModifierOperation"
|
253
257
|
optional :campaign_budget_operation, :message, 8, "google.ads.googleads.v1.services.CampaignBudgetOperation"
|
@@ -288,6 +292,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
288
292
|
optional :ad_group_label_result, :message, 21, "google.ads.googleads.v1.services.MutateAdGroupLabelResult"
|
289
293
|
optional :ad_group_result, :message, 5, "google.ads.googleads.v1.services.MutateAdGroupResult"
|
290
294
|
optional :ad_parameter_result, :message, 22, "google.ads.googleads.v1.services.MutateAdParameterResult"
|
295
|
+
optional :asset_result, :message, 23, "google.ads.googleads.v1.services.MutateAssetResult"
|
291
296
|
optional :bidding_strategy_result, :message, 6, "google.ads.googleads.v1.services.MutateBiddingStrategyResult"
|
292
297
|
optional :campaign_bid_modifier_result, :message, 7, "google.ads.googleads.v1.services.MutateCampaignBidModifierResult"
|
293
298
|
optional :campaign_budget_result, :message, 8, "google.ads.googleads.v1.services.MutateCampaignBudgetResult"
|
@@ -25,6 +25,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
25
25
|
optional :text_ad, :message, 3, "google.ads.googleads.v1.services.ApplyRecommendationOperation.TextAdParameters"
|
26
26
|
optional :keyword, :message, 4, "google.ads.googleads.v1.services.ApplyRecommendationOperation.KeywordParameters"
|
27
27
|
optional :target_cpa_opt_in, :message, 5, "google.ads.googleads.v1.services.ApplyRecommendationOperation.TargetCpaOptInParameters"
|
28
|
+
optional :move_unused_budget, :message, 9, "google.ads.googleads.v1.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters"
|
28
29
|
end
|
29
30
|
end
|
30
31
|
add_message "google.ads.googleads.v1.services.ApplyRecommendationOperation.CampaignBudgetParameters" do
|
@@ -42,6 +43,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
42
43
|
optional :target_cpa_micros, :message, 1, "google.protobuf.Int64Value"
|
43
44
|
optional :new_campaign_budget_amount_micros, :message, 2, "google.protobuf.Int64Value"
|
44
45
|
end
|
46
|
+
add_message "google.ads.googleads.v1.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters" do
|
47
|
+
optional :budget_micros_to_move, :message, 1, "google.protobuf.Int64Value"
|
48
|
+
end
|
45
49
|
add_message "google.ads.googleads.v1.services.ApplyRecommendationResponse" do
|
46
50
|
repeated :results, :message, 1, "google.ads.googleads.v1.services.ApplyRecommendationResult"
|
47
51
|
optional :partial_failure_error, :message, 2, "google.rpc.Status"
|
@@ -74,6 +78,7 @@ module Google::Ads::GoogleAds::V1::Services
|
|
74
78
|
ApplyRecommendationOperation::TextAdParameters = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ApplyRecommendationOperation.TextAdParameters").msgclass
|
75
79
|
ApplyRecommendationOperation::KeywordParameters = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ApplyRecommendationOperation.KeywordParameters").msgclass
|
76
80
|
ApplyRecommendationOperation::TargetCpaOptInParameters = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ApplyRecommendationOperation.TargetCpaOptInParameters").msgclass
|
81
|
+
ApplyRecommendationOperation::MoveUnusedBudgetParameters = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters").msgclass
|
77
82
|
ApplyRecommendationResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ApplyRecommendationResponse").msgclass
|
78
83
|
ApplyRecommendationResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.ApplyRecommendationResult").msgclass
|
79
84
|
DismissRecommendationRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.ads.googleads.v1.services.DismissRecommendationRequest").msgclass
|
@@ -57,19 +57,32 @@ module Google
|
|
57
57
|
|
58
58
|
|
59
59
|
SHOPPING_PERFORMANCE_VIEW_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
60
|
-
"customers/{customer}/shoppingPerformanceView
|
60
|
+
"customers/{customer}/shoppingPerformanceView"
|
61
61
|
)
|
62
62
|
|
63
63
|
private_constant :SHOPPING_PERFORMANCE_VIEW_PATH_TEMPLATE
|
64
64
|
|
65
|
+
CUSTOMER_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
66
|
+
"customers/{customer}"
|
67
|
+
)
|
68
|
+
|
69
|
+
private_constant :CUSTOMER_PATH_TEMPLATE
|
70
|
+
|
65
71
|
# Returns a fully-qualified shopping_performance_view resource name string.
|
66
72
|
# @param customer [String]
|
67
|
-
# @param shopping_performance_view [String]
|
68
73
|
# @return [String]
|
69
|
-
def self.shopping_performance_view_path customer
|
74
|
+
def self.shopping_performance_view_path customer
|
70
75
|
SHOPPING_PERFORMANCE_VIEW_PATH_TEMPLATE.render(
|
71
|
-
:"customer" => customer
|
72
|
-
|
76
|
+
:"customer" => customer
|
77
|
+
)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Returns a fully-qualified customer resource name string.
|
81
|
+
# @param customer [String]
|
82
|
+
# @return [String]
|
83
|
+
def self.customer_path customer
|
84
|
+
CUSTOMER_PATH_TEMPLATE.render(
|
85
|
+
:"customer" => customer
|
73
86
|
)
|
74
87
|
end
|
75
88
|
|
@@ -200,7 +213,7 @@ module Google
|
|
200
213
|
# require "google/ads/google_ads"
|
201
214
|
#
|
202
215
|
# shopping_performance_view_service_client = Google::Ads::GoogleAds::ShoppingPerformanceView.new(version: :v1)
|
203
|
-
# formatted_resource_name = Google::Ads::GoogleAds::V1::Services::ShoppingPerformanceViewServiceClient.
|
216
|
+
# formatted_resource_name = Google::Ads::GoogleAds::V1::Services::ShoppingPerformanceViewServiceClient.customer_path("[CUSTOMER]")
|
204
217
|
# response = shopping_performance_view_service_client.get_shopping_performance_view(formatted_resource_name)
|
205
218
|
|
206
219
|
def get_shopping_performance_view \
|
@@ -16,10 +16,14 @@
|
|
16
16
|
# limitations under the License.
|
17
17
|
|
18
18
|
require 'google/ads/google_ads/google_ads_client'
|
19
|
+
require 'google/ads/google_ads/api_versions'
|
19
20
|
|
20
21
|
module Google
|
21
22
|
module Ads
|
22
23
|
module GoogleAds
|
24
|
+
def self.valid_version?(version)
|
25
|
+
KNOWN_API_VERSIONS.include?(version)
|
26
|
+
end
|
23
27
|
end
|
24
28
|
end
|
25
29
|
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: 1.
|
4
|
+
version: 1.1.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: 2019-03-
|
11
|
+
date: 2019-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -84,11 +84,14 @@ files:
|
|
84
84
|
- Rakefile
|
85
85
|
- google_ads_config.rb
|
86
86
|
- lib/google/ads/google_ads.rb
|
87
|
+
- lib/google/ads/google_ads/api_versions.rb
|
87
88
|
- lib/google/ads/google_ads/config.rb
|
88
89
|
- lib/google/ads/google_ads/errors.rb
|
89
90
|
- lib/google/ads/google_ads/field_mask_util.rb
|
90
91
|
- lib/google/ads/google_ads/google_ads_client.rb
|
91
92
|
- lib/google/ads/google_ads/logging_interceptor.rb
|
93
|
+
- lib/google/ads/google_ads/lookup_util.rb
|
94
|
+
- lib/google/ads/google_ads/partial_failure_error_decoder.rb
|
92
95
|
- lib/google/ads/google_ads/patches.rb
|
93
96
|
- lib/google/ads/google_ads/utils/v0/path_lookup_util.rb
|
94
97
|
- lib/google/ads/google_ads/utils/v0/proto_lookup_util.rb
|
@@ -661,6 +664,7 @@ files:
|
|
661
664
|
- lib/google/ads/google_ads/v0/services/video_service_services_pb.rb
|
662
665
|
- lib/google/ads/google_ads/v1/common/ad_asset_pb.rb
|
663
666
|
- lib/google/ads/google_ads/v1/common/ad_type_infos_pb.rb
|
667
|
+
- lib/google/ads/google_ads/v1/common/asset_types_pb.rb
|
664
668
|
- lib/google/ads/google_ads/v1/common/bidding_pb.rb
|
665
669
|
- lib/google/ads/google_ads/v1/common/click_location_pb.rb
|
666
670
|
- lib/google/ads/google_ads/v1/common/criteria_pb.rb
|
@@ -690,6 +694,7 @@ files:
|
|
690
694
|
- lib/google/ads/google_ads/v1/enums/ad_customizer_placeholder_field_pb.rb
|
691
695
|
- lib/google/ads/google_ads/v1/enums/ad_group_ad_rotation_mode_pb.rb
|
692
696
|
- lib/google/ads/google_ads/v1/enums/ad_group_ad_status_pb.rb
|
697
|
+
- lib/google/ads/google_ads/v1/enums/ad_group_criterion_approval_status_pb.rb
|
693
698
|
- lib/google/ads/google_ads/v1/enums/ad_group_criterion_status_pb.rb
|
694
699
|
- lib/google/ads/google_ads/v1/enums/ad_group_status_pb.rb
|
695
700
|
- lib/google/ads/google_ads/v1/enums/ad_group_type_pb.rb
|
@@ -702,9 +707,12 @@ files:
|
|
702
707
|
- lib/google/ads/google_ads/v1/enums/affiliate_location_feed_relationship_type_pb.rb
|
703
708
|
- lib/google/ads/google_ads/v1/enums/affiliate_location_placeholder_field_pb.rb
|
704
709
|
- lib/google/ads/google_ads/v1/enums/age_range_type_pb.rb
|
710
|
+
- lib/google/ads/google_ads/v1/enums/app_campaign_app_store_pb.rb
|
711
|
+
- lib/google/ads/google_ads/v1/enums/app_campaign_bidding_strategy_goal_type_pb.rb
|
705
712
|
- lib/google/ads/google_ads/v1/enums/app_payment_model_type_pb.rb
|
706
713
|
- lib/google/ads/google_ads/v1/enums/app_placeholder_field_pb.rb
|
707
714
|
- lib/google/ads/google_ads/v1/enums/app_store_pb.rb
|
715
|
+
- lib/google/ads/google_ads/v1/enums/asset_type_pb.rb
|
708
716
|
- lib/google/ads/google_ads/v1/enums/attribution_model_pb.rb
|
709
717
|
- lib/google/ads/google_ads/v1/enums/bid_modifier_source_pb.rb
|
710
718
|
- lib/google/ads/google_ads/v1/enums/bidding_source_pb.rb
|
@@ -715,6 +723,7 @@ files:
|
|
715
723
|
- lib/google/ads/google_ads/v1/enums/budget_delivery_method_pb.rb
|
716
724
|
- lib/google/ads/google_ads/v1/enums/budget_period_pb.rb
|
717
725
|
- lib/google/ads/google_ads/v1/enums/budget_status_pb.rb
|
726
|
+
- lib/google/ads/google_ads/v1/enums/budget_type_pb.rb
|
718
727
|
- lib/google/ads/google_ads/v1/enums/call_conversion_reporting_state_pb.rb
|
719
728
|
- lib/google/ads/google_ads/v1/enums/call_placeholder_field_pb.rb
|
720
729
|
- lib/google/ads/google_ads/v1/enums/callout_placeholder_field_pb.rb
|
@@ -729,6 +738,7 @@ files:
|
|
729
738
|
- lib/google/ads/google_ads/v1/enums/conversion_action_counting_type_pb.rb
|
730
739
|
- lib/google/ads/google_ads/v1/enums/conversion_action_status_pb.rb
|
731
740
|
- lib/google/ads/google_ads/v1/enums/conversion_action_type_pb.rb
|
741
|
+
- lib/google/ads/google_ads/v1/enums/conversion_adjustment_type_pb.rb
|
732
742
|
- lib/google/ads/google_ads/v1/enums/conversion_attribution_event_type_pb.rb
|
733
743
|
- lib/google/ads/google_ads/v1/enums/conversion_lag_bucket_pb.rb
|
734
744
|
- lib/google/ads/google_ads/v1/enums/conversion_or_adjustment_lag_bucket_pb.rb
|
@@ -783,6 +793,7 @@ files:
|
|
783
793
|
- lib/google/ads/google_ads/v1/enums/keyword_plan_forecast_interval_pb.rb
|
784
794
|
- lib/google/ads/google_ads/v1/enums/keyword_plan_network_pb.rb
|
785
795
|
- lib/google/ads/google_ads/v1/enums/label_status_pb.rb
|
796
|
+
- lib/google/ads/google_ads/v1/enums/legacy_app_install_ad_app_store_pb.rb
|
786
797
|
- lib/google/ads/google_ads/v1/enums/listing_custom_attribute_index_pb.rb
|
787
798
|
- lib/google/ads/google_ads/v1/enums/listing_group_type_pb.rb
|
788
799
|
- lib/google/ads/google_ads/v1/enums/local_placeholder_field_pb.rb
|
@@ -803,6 +814,7 @@ files:
|
|
803
814
|
- lib/google/ads/google_ads/v1/enums/operating_system_version_operator_type_pb.rb
|
804
815
|
- lib/google/ads/google_ads/v1/enums/page_one_promoted_strategy_goal_pb.rb
|
805
816
|
- lib/google/ads/google_ads/v1/enums/parental_status_type_pb.rb
|
817
|
+
- lib/google/ads/google_ads/v1/enums/payment_mode_pb.rb
|
806
818
|
- lib/google/ads/google_ads/v1/enums/placeholder_type_pb.rb
|
807
819
|
- lib/google/ads/google_ads/v1/enums/placement_type_pb.rb
|
808
820
|
- lib/google/ads/google_ads/v1/enums/policy_approval_status_pb.rb
|
@@ -874,6 +886,7 @@ files:
|
|
874
886
|
- lib/google/ads/google_ads/v1/errors/ad_parameter_error_pb.rb
|
875
887
|
- lib/google/ads/google_ads/v1/errors/ad_sharing_error_pb.rb
|
876
888
|
- lib/google/ads/google_ads/v1/errors/adx_error_pb.rb
|
889
|
+
- lib/google/ads/google_ads/v1/errors/asset_error_pb.rb
|
877
890
|
- lib/google/ads/google_ads/v1/errors/authentication_error_pb.rb
|
878
891
|
- lib/google/ads/google_ads/v1/errors/authorization_error_pb.rb
|
879
892
|
- lib/google/ads/google_ads/v1/errors/bidding_error_pb.rb
|
@@ -888,6 +901,7 @@ files:
|
|
888
901
|
- lib/google/ads/google_ads/v1/errors/collection_size_error_pb.rb
|
889
902
|
- lib/google/ads/google_ads/v1/errors/context_error_pb.rb
|
890
903
|
- lib/google/ads/google_ads/v1/errors/conversion_action_error_pb.rb
|
904
|
+
- lib/google/ads/google_ads/v1/errors/conversion_adjustment_upload_error_pb.rb
|
891
905
|
- lib/google/ads/google_ads/v1/errors/conversion_upload_error_pb.rb
|
892
906
|
- lib/google/ads/google_ads/v1/errors/country_code_error_pb.rb
|
893
907
|
- lib/google/ads/google_ads/v1/errors/criterion_error_pb.rb
|
@@ -930,6 +944,7 @@ files:
|
|
930
944
|
- lib/google/ads/google_ads/v1/errors/list_operation_error_pb.rb
|
931
945
|
- lib/google/ads/google_ads/v1/errors/media_bundle_error_pb.rb
|
932
946
|
- lib/google/ads/google_ads/v1/errors/media_file_error_pb.rb
|
947
|
+
- lib/google/ads/google_ads/v1/errors/media_upload_error_pb.rb
|
933
948
|
- lib/google/ads/google_ads/v1/errors/multiplier_error_pb.rb
|
934
949
|
- lib/google/ads/google_ads/v1/errors/mutate_error_pb.rb
|
935
950
|
- lib/google/ads/google_ads/v1/errors/mutate_job_error_pb.rb
|
@@ -957,6 +972,7 @@ files:
|
|
957
972
|
- lib/google/ads/google_ads/v1/errors/string_length_error_pb.rb
|
958
973
|
- lib/google/ads/google_ads/v1/errors/url_field_error_pb.rb
|
959
974
|
- lib/google/ads/google_ads/v1/errors/user_list_error_pb.rb
|
975
|
+
- lib/google/ads/google_ads/v1/errors/youtube_video_registration_error_pb.rb
|
960
976
|
- lib/google/ads/google_ads/v1/resources/account_budget_pb.rb
|
961
977
|
- lib/google/ads/google_ads/v1/resources/account_budget_proposal_pb.rb
|
962
978
|
- lib/google/ads/google_ads/v1/resources/ad_group_ad_label_pb.rb
|
@@ -973,6 +989,7 @@ files:
|
|
973
989
|
- lib/google/ads/google_ads/v1/resources/ad_pb.rb
|
974
990
|
- lib/google/ads/google_ads/v1/resources/ad_schedule_view_pb.rb
|
975
991
|
- lib/google/ads/google_ads/v1/resources/age_range_view_pb.rb
|
992
|
+
- lib/google/ads/google_ads/v1/resources/asset_pb.rb
|
976
993
|
- lib/google/ads/google_ads/v1/resources/bidding_strategy_pb.rb
|
977
994
|
- lib/google/ads/google_ads/v1/resources/billing_setup_pb.rb
|
978
995
|
- lib/google/ads/google_ads/v1/resources/campaign_audience_view_pb.rb
|
@@ -1105,6 +1122,10 @@ files:
|
|
1105
1122
|
- lib/google/ads/google_ads/v1/services/age_range_view_service_client_config.json
|
1106
1123
|
- lib/google/ads/google_ads/v1/services/age_range_view_service_pb.rb
|
1107
1124
|
- lib/google/ads/google_ads/v1/services/age_range_view_service_services_pb.rb
|
1125
|
+
- lib/google/ads/google_ads/v1/services/asset_service_client.rb
|
1126
|
+
- lib/google/ads/google_ads/v1/services/asset_service_client_config.json
|
1127
|
+
- lib/google/ads/google_ads/v1/services/asset_service_pb.rb
|
1128
|
+
- lib/google/ads/google_ads/v1/services/asset_service_services_pb.rb
|
1108
1129
|
- lib/google/ads/google_ads/v1/services/bidding_strategy_service_client.rb
|
1109
1130
|
- lib/google/ads/google_ads/v1/services/bidding_strategy_service_client_config.json
|
1110
1131
|
- lib/google/ads/google_ads/v1/services/bidding_strategy_service_pb.rb
|
@@ -1165,6 +1186,10 @@ files:
|
|
1165
1186
|
- lib/google/ads/google_ads/v1/services/conversion_action_service_client_config.json
|
1166
1187
|
- lib/google/ads/google_ads/v1/services/conversion_action_service_pb.rb
|
1167
1188
|
- lib/google/ads/google_ads/v1/services/conversion_action_service_services_pb.rb
|
1189
|
+
- lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client.rb
|
1190
|
+
- lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client_config.json
|
1191
|
+
- lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_pb.rb
|
1192
|
+
- lib/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_services_pb.rb
|
1168
1193
|
- lib/google/ads/google_ads/v1/services/conversion_upload_service_client.rb
|
1169
1194
|
- lib/google/ads/google_ads/v1/services/conversion_upload_service_client_config.json
|
1170
1195
|
- lib/google/ads/google_ads/v1/services/conversion_upload_service_pb.rb
|