google-api-client 0.39.5 → 0.40.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +39 -4
- data/generated/google/apis/apigee_v1/representations.rb +5 -0
- data/generated/google/apis/apigee_v1/service.rb +15 -13
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -0
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +2 -0
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +2 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
- data/generated/google/apis/{pagespeedonline_v2.rb → chromeuxreport_v1.rb} +10 -10
- data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
- data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
- data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +26 -10
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +281 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +23 -7
- data/generated/google/apis/compute_alpha/representations.rb +3 -1
- data/generated/google/apis/compute_alpha/service.rb +671 -671
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1 -1
- data/generated/google/apis/compute_beta/service.rb +591 -591
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +37 -1
- data/generated/google/apis/compute_v1/representations.rb +5 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +2 -4
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +27 -4
- data/generated/google/apis/container_v1beta1/representations.rb +16 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +331 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +164 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +261 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v2/representations.rb +238 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +238 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +44 -0
- data/generated/google/apis/dialogflow_v3alpha1.rb +1 -1
- data/generated/google/apis/dialogflow_v3alpha1/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v3alpha1/representations.rb +238 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +149 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +76 -0
- data/generated/google/apis/displayvideo_v1/service.rb +280 -0
- data/generated/google/apis/fitness_v1.rb +4 -4
- data/generated/google/apis/fitness_v1/classes.rb +185 -158
- data/generated/google/apis/fitness_v1/service.rb +187 -215
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +36 -27
- data/generated/google/apis/healthcare_v1/service.rb +61 -29
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +38 -34
- data/generated/google/apis/healthcare_v1beta1/service.rb +162 -144
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +24 -12
- data/generated/google/apis/iam_v1/service.rb +7 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +7 -0
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +29 -10
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +3 -3
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +26 -26
- data/generated/google/apis/youtube_v3/service.rb +1 -36
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -11
- data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
- data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
- data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
- data/generated/google/apis/pagespeedonline_v4.rb +0 -32
- data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
- data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
- data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
|
@@ -70,6 +70,12 @@ module Google
|
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
+
class AdvertiserTargetingConfig
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
73
79
|
class AgeRangeAssignedTargetingOptionDetails
|
|
74
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
81
|
|
|
@@ -160,6 +166,18 @@ module Google
|
|
|
160
166
|
include Google::Apis::Core::JsonObjectSupport
|
|
161
167
|
end
|
|
162
168
|
|
|
169
|
+
class BulkEditAdvertiserAssignedTargetingOptionsRequest
|
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
171
|
+
|
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
class BulkEditAdvertiserAssignedTargetingOptionsResponse
|
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
|
+
|
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
179
|
+
end
|
|
180
|
+
|
|
163
181
|
class BulkEditLineItemAssignedTargetingOptionsRequest
|
|
164
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
183
|
|
|
@@ -172,6 +190,12 @@ module Google
|
|
|
172
190
|
include Google::Apis::Core::JsonObjectSupport
|
|
173
191
|
end
|
|
174
192
|
|
|
193
|
+
class BulkListAdvertiserAssignedTargetingOptionsResponse
|
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
195
|
+
|
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
197
|
+
end
|
|
198
|
+
|
|
175
199
|
class BulkListLineItemAssignedTargetingOptionsResponse
|
|
176
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
201
|
|
|
@@ -712,6 +736,12 @@ module Google
|
|
|
712
736
|
include Google::Apis::Core::JsonObjectSupport
|
|
713
737
|
end
|
|
714
738
|
|
|
739
|
+
class ListAdvertiserAssignedTargetingOptionsResponse
|
|
740
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
741
|
+
|
|
742
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
743
|
+
end
|
|
744
|
+
|
|
715
745
|
class ListAdvertisersResponse
|
|
716
746
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
717
747
|
|
|
@@ -1138,6 +1168,8 @@ module Google
|
|
|
1138
1168
|
|
|
1139
1169
|
property :name, as: 'name'
|
|
1140
1170
|
property :partner_id, :numeric_string => true, as: 'partnerId'
|
|
1171
|
+
property :serving_config, as: 'servingConfig', class: Google::Apis::DisplayvideoV1::AdvertiserTargetingConfig, decorator: Google::Apis::DisplayvideoV1::AdvertiserTargetingConfig::Representation
|
|
1172
|
+
|
|
1141
1173
|
property :update_time, as: 'updateTime'
|
|
1142
1174
|
end
|
|
1143
1175
|
end
|
|
@@ -1188,6 +1220,13 @@ module Google
|
|
|
1188
1220
|
end
|
|
1189
1221
|
end
|
|
1190
1222
|
|
|
1223
|
+
class AdvertiserTargetingConfig
|
|
1224
|
+
# @private
|
|
1225
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1226
|
+
property :exempt_tv_from_viewability_targeting, as: 'exemptTvFromViewabilityTargeting'
|
|
1227
|
+
end
|
|
1228
|
+
end
|
|
1229
|
+
|
|
1191
1230
|
class AgeRangeAssignedTargetingOptionDetails
|
|
1192
1231
|
# @private
|
|
1193
1232
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1398,6 +1437,24 @@ module Google
|
|
|
1398
1437
|
end
|
|
1399
1438
|
end
|
|
1400
1439
|
|
|
1440
|
+
class BulkEditAdvertiserAssignedTargetingOptionsRequest
|
|
1441
|
+
# @private
|
|
1442
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1443
|
+
collection :create_requests, as: 'createRequests', class: Google::Apis::DisplayvideoV1::CreateAssignedTargetingOptionsRequest, decorator: Google::Apis::DisplayvideoV1::CreateAssignedTargetingOptionsRequest::Representation
|
|
1444
|
+
|
|
1445
|
+
collection :delete_requests, as: 'deleteRequests', class: Google::Apis::DisplayvideoV1::DeleteAssignedTargetingOptionsRequest, decorator: Google::Apis::DisplayvideoV1::DeleteAssignedTargetingOptionsRequest::Representation
|
|
1446
|
+
|
|
1447
|
+
end
|
|
1448
|
+
end
|
|
1449
|
+
|
|
1450
|
+
class BulkEditAdvertiserAssignedTargetingOptionsResponse
|
|
1451
|
+
# @private
|
|
1452
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1453
|
+
collection :created_assigned_targeting_options, as: 'createdAssignedTargetingOptions', class: Google::Apis::DisplayvideoV1::AssignedTargetingOption, decorator: Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
|
|
1454
|
+
|
|
1455
|
+
end
|
|
1456
|
+
end
|
|
1457
|
+
|
|
1401
1458
|
class BulkEditLineItemAssignedTargetingOptionsRequest
|
|
1402
1459
|
# @private
|
|
1403
1460
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1416,6 +1473,15 @@ module Google
|
|
|
1416
1473
|
end
|
|
1417
1474
|
end
|
|
1418
1475
|
|
|
1476
|
+
class BulkListAdvertiserAssignedTargetingOptionsResponse
|
|
1477
|
+
# @private
|
|
1478
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1479
|
+
collection :assigned_targeting_options, as: 'assignedTargetingOptions', class: Google::Apis::DisplayvideoV1::AssignedTargetingOption, decorator: Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
|
|
1480
|
+
|
|
1481
|
+
property :next_page_token, as: 'nextPageToken'
|
|
1482
|
+
end
|
|
1483
|
+
end
|
|
1484
|
+
|
|
1419
1485
|
class BulkListLineItemAssignedTargetingOptionsResponse
|
|
1420
1486
|
# @private
|
|
1421
1487
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1677,6 +1743,7 @@ module Google
|
|
|
1677
1743
|
property :ias_campaign_monitoring, as: 'iasCampaignMonitoring'
|
|
1678
1744
|
property :integration_code, as: 'integrationCode'
|
|
1679
1745
|
property :js_tracker_url, as: 'jsTrackerUrl'
|
|
1746
|
+
collection :line_item_ids, as: 'lineItemIds'
|
|
1680
1747
|
property :media_duration, as: 'mediaDuration'
|
|
1681
1748
|
property :name, as: 'name'
|
|
1682
1749
|
property :notes, as: 'notes'
|
|
@@ -2328,6 +2395,15 @@ module Google
|
|
|
2328
2395
|
end
|
|
2329
2396
|
end
|
|
2330
2397
|
|
|
2398
|
+
class ListAdvertiserAssignedTargetingOptionsResponse
|
|
2399
|
+
# @private
|
|
2400
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2401
|
+
collection :assigned_targeting_options, as: 'assignedTargetingOptions', class: Google::Apis::DisplayvideoV1::AssignedTargetingOption, decorator: Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
|
|
2402
|
+
|
|
2403
|
+
property :next_page_token, as: 'nextPageToken'
|
|
2404
|
+
end
|
|
2405
|
+
end
|
|
2406
|
+
|
|
2331
2407
|
class ListAdvertisersResponse
|
|
2332
2408
|
# @private
|
|
2333
2409
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -48,6 +48,109 @@ module Google
|
|
|
48
48
|
@batch_path = 'batch'
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
+
# Bulk edits targeting options under a single advertiser.
|
|
52
|
+
# The operation will delete the assigned targeting options provided in
|
|
53
|
+
# BulkEditAdvertiserAssignedTargetingOptionsRequest.delete_requests and
|
|
54
|
+
# then create the assigned targeting options provided in
|
|
55
|
+
# BulkEditAdvertiserAssignedTargetingOptionsRequest.create_requests .
|
|
56
|
+
# @param [Fixnum] advertiser_id
|
|
57
|
+
# Required. The ID of the advertiser.
|
|
58
|
+
# @param [Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsRequest] bulk_edit_advertiser_assigned_targeting_options_request_object
|
|
59
|
+
# @param [String] fields
|
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
|
61
|
+
# @param [String] quota_user
|
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
|
65
|
+
# Request-specific options
|
|
66
|
+
#
|
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
|
68
|
+
# @yieldparam result [Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsResponse] parsed result object
|
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
70
|
+
#
|
|
71
|
+
# @return [Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsResponse]
|
|
72
|
+
#
|
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
76
|
+
def bulk_edit_advertiser_assigned_targeting_options(advertiser_id, bulk_edit_advertiser_assigned_targeting_options_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
77
|
+
command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}:bulkEditAdvertiserAssignedTargetingOptions', options)
|
|
78
|
+
command.request_representation = Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsRequest::Representation
|
|
79
|
+
command.request_object = bulk_edit_advertiser_assigned_targeting_options_request_object
|
|
80
|
+
command.response_representation = Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsResponse::Representation
|
|
81
|
+
command.response_class = Google::Apis::DisplayvideoV1::BulkEditAdvertiserAssignedTargetingOptionsResponse
|
|
82
|
+
command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
|
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
85
|
+
execute_or_queue_command(command, &block)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Lists assigned targeting options of an advertiser across targeting types.
|
|
89
|
+
# @param [Fixnum] advertiser_id
|
|
90
|
+
# Required. The ID of the advertiser the line item belongs to.
|
|
91
|
+
# @param [String] filter
|
|
92
|
+
# Allows filtering by assigned targeting option properties.
|
|
93
|
+
# Supported syntax:
|
|
94
|
+
# * Filter expressions are made up of one or more restrictions.
|
|
95
|
+
# * Restrictions can be combined by the logical operator `OR`..
|
|
96
|
+
# * A restriction has the form of ``field` `operator` `value``.
|
|
97
|
+
# * The operator must be `EQUALS (=)`.
|
|
98
|
+
# * Supported fields:
|
|
99
|
+
# - `targetingType`
|
|
100
|
+
# Examples:
|
|
101
|
+
# * targetingType with value TARGETING_TYPE_CHANNEL
|
|
102
|
+
# `targetingType="TARGETING_TYPE_CHANNEL"`
|
|
103
|
+
# The length of this field should be no more than 500 characters.
|
|
104
|
+
# @param [String] order_by
|
|
105
|
+
# Field by which to sort the list.
|
|
106
|
+
# Acceptable values are:
|
|
107
|
+
# * `targetingType` (default)
|
|
108
|
+
# The default sorting order is ascending. To specify descending order for
|
|
109
|
+
# a field, a suffix "desc" should be added to the field name. Example:
|
|
110
|
+
# `targetingType desc`.
|
|
111
|
+
# @param [Fixnum] page_size
|
|
112
|
+
# Requested page size.
|
|
113
|
+
# The size must be an integer between `1` and `5000`. If unspecified,
|
|
114
|
+
# the default is '5000'. Returns error code `INVALID_ARGUMENT` if an invalid
|
|
115
|
+
# value is specified.
|
|
116
|
+
# @param [String] page_token
|
|
117
|
+
# A token that lets the client fetch the next page of results.
|
|
118
|
+
# Typically, this is the value of
|
|
119
|
+
# next_page_token
|
|
120
|
+
# returned from the previous call to
|
|
121
|
+
# `BulkListAdvertiserAssignedTargetingOptions` method.
|
|
122
|
+
# If not specified, the first page of results will be returned.
|
|
123
|
+
# @param [String] fields
|
|
124
|
+
# Selector specifying which fields to include in a partial response.
|
|
125
|
+
# @param [String] quota_user
|
|
126
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
127
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
128
|
+
# @param [Google::Apis::RequestOptions] options
|
|
129
|
+
# Request-specific options
|
|
130
|
+
#
|
|
131
|
+
# @yield [result, err] Result & error if block supplied
|
|
132
|
+
# @yieldparam result [Google::Apis::DisplayvideoV1::BulkListAdvertiserAssignedTargetingOptionsResponse] parsed result object
|
|
133
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
134
|
+
#
|
|
135
|
+
# @return [Google::Apis::DisplayvideoV1::BulkListAdvertiserAssignedTargetingOptionsResponse]
|
|
136
|
+
#
|
|
137
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
138
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
139
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
140
|
+
def bulk_advertiser_list_advertiser_assigned_targeting_options(advertiser_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
141
|
+
command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}:bulkListAdvertiserAssignedTargetingOptions', options)
|
|
142
|
+
command.response_representation = Google::Apis::DisplayvideoV1::BulkListAdvertiserAssignedTargetingOptionsResponse::Representation
|
|
143
|
+
command.response_class = Google::Apis::DisplayvideoV1::BulkListAdvertiserAssignedTargetingOptionsResponse
|
|
144
|
+
command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
|
|
145
|
+
command.query['filter'] = filter unless filter.nil?
|
|
146
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
147
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
148
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
149
|
+
command.query['fields'] = fields unless fields.nil?
|
|
150
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
151
|
+
execute_or_queue_command(command, &block)
|
|
152
|
+
end
|
|
153
|
+
|
|
51
154
|
# Creates a new advertiser.
|
|
52
155
|
# Returns the newly created advertiser if successful.
|
|
53
156
|
# This method can take up to 180 seconds to complete.
|
|
@@ -1794,6 +1897,183 @@ module Google
|
|
|
1794
1897
|
execute_or_queue_command(command, &block)
|
|
1795
1898
|
end
|
|
1796
1899
|
|
|
1900
|
+
# Assigns a targeting option to an advertiser.
|
|
1901
|
+
# Returns the assigned targeting option if successful.
|
|
1902
|
+
# @param [Fixnum] advertiser_id
|
|
1903
|
+
# Required. The ID of the advertiser.
|
|
1904
|
+
# @param [String] targeting_type
|
|
1905
|
+
# Required. Identifies the type of this assigned targeting option.
|
|
1906
|
+
# @param [Google::Apis::DisplayvideoV1::AssignedTargetingOption] assigned_targeting_option_object
|
|
1907
|
+
# @param [String] fields
|
|
1908
|
+
# Selector specifying which fields to include in a partial response.
|
|
1909
|
+
# @param [String] quota_user
|
|
1910
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1911
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1912
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1913
|
+
# Request-specific options
|
|
1914
|
+
#
|
|
1915
|
+
# @yield [result, err] Result & error if block supplied
|
|
1916
|
+
# @yieldparam result [Google::Apis::DisplayvideoV1::AssignedTargetingOption] parsed result object
|
|
1917
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1918
|
+
#
|
|
1919
|
+
# @return [Google::Apis::DisplayvideoV1::AssignedTargetingOption]
|
|
1920
|
+
#
|
|
1921
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1922
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1923
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1924
|
+
def create_advertiser_targeting_type_assigned_targeting_option(advertiser_id, targeting_type, assigned_targeting_option_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1925
|
+
command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions', options)
|
|
1926
|
+
command.request_representation = Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
|
|
1927
|
+
command.request_object = assigned_targeting_option_object
|
|
1928
|
+
command.response_representation = Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
|
|
1929
|
+
command.response_class = Google::Apis::DisplayvideoV1::AssignedTargetingOption
|
|
1930
|
+
command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
|
|
1931
|
+
command.params['targetingType'] = targeting_type unless targeting_type.nil?
|
|
1932
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1933
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1934
|
+
execute_or_queue_command(command, &block)
|
|
1935
|
+
end
|
|
1936
|
+
|
|
1937
|
+
# Deletes an assigned targeting option from an advertiser.
|
|
1938
|
+
# @param [Fixnum] advertiser_id
|
|
1939
|
+
# Required. The ID of the advertiser.
|
|
1940
|
+
# @param [String] targeting_type
|
|
1941
|
+
# Required. Identifies the type of this assigned targeting option.
|
|
1942
|
+
# @param [String] assigned_targeting_option_id
|
|
1943
|
+
# Required. The ID of the assigned targeting option to delete.
|
|
1944
|
+
# @param [String] fields
|
|
1945
|
+
# Selector specifying which fields to include in a partial response.
|
|
1946
|
+
# @param [String] quota_user
|
|
1947
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1948
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1949
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1950
|
+
# Request-specific options
|
|
1951
|
+
#
|
|
1952
|
+
# @yield [result, err] Result & error if block supplied
|
|
1953
|
+
# @yieldparam result [Google::Apis::DisplayvideoV1::Empty] parsed result object
|
|
1954
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1955
|
+
#
|
|
1956
|
+
# @return [Google::Apis::DisplayvideoV1::Empty]
|
|
1957
|
+
#
|
|
1958
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1959
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1960
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1961
|
+
def delete_advertiser_targeting_type_assigned_targeting_option(advertiser_id, targeting_type, assigned_targeting_option_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
1962
|
+
command = make_simple_command(:delete, 'v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}', options)
|
|
1963
|
+
command.response_representation = Google::Apis::DisplayvideoV1::Empty::Representation
|
|
1964
|
+
command.response_class = Google::Apis::DisplayvideoV1::Empty
|
|
1965
|
+
command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
|
|
1966
|
+
command.params['targetingType'] = targeting_type unless targeting_type.nil?
|
|
1967
|
+
command.params['assignedTargetingOptionId'] = assigned_targeting_option_id unless assigned_targeting_option_id.nil?
|
|
1968
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1969
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1970
|
+
execute_or_queue_command(command, &block)
|
|
1971
|
+
end
|
|
1972
|
+
|
|
1973
|
+
# Gets a single targeting option assigned to an advertiser.
|
|
1974
|
+
# @param [Fixnum] advertiser_id
|
|
1975
|
+
# Required. The ID of the advertiser.
|
|
1976
|
+
# @param [String] targeting_type
|
|
1977
|
+
# Required. Identifies the type of this assigned targeting option.
|
|
1978
|
+
# @param [String] assigned_targeting_option_id
|
|
1979
|
+
# Required. An identifier unique to the targeting type in this advertiser that
|
|
1980
|
+
# identifies the assigned targeting option being requested.
|
|
1981
|
+
# @param [String] fields
|
|
1982
|
+
# Selector specifying which fields to include in a partial response.
|
|
1983
|
+
# @param [String] quota_user
|
|
1984
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1985
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1986
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1987
|
+
# Request-specific options
|
|
1988
|
+
#
|
|
1989
|
+
# @yield [result, err] Result & error if block supplied
|
|
1990
|
+
# @yieldparam result [Google::Apis::DisplayvideoV1::AssignedTargetingOption] parsed result object
|
|
1991
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1992
|
+
#
|
|
1993
|
+
# @return [Google::Apis::DisplayvideoV1::AssignedTargetingOption]
|
|
1994
|
+
#
|
|
1995
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1996
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1997
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1998
|
+
def get_advertiser_targeting_type_assigned_targeting_option(advertiser_id, targeting_type, assigned_targeting_option_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
1999
|
+
command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}', options)
|
|
2000
|
+
command.response_representation = Google::Apis::DisplayvideoV1::AssignedTargetingOption::Representation
|
|
2001
|
+
command.response_class = Google::Apis::DisplayvideoV1::AssignedTargetingOption
|
|
2002
|
+
command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
|
|
2003
|
+
command.params['targetingType'] = targeting_type unless targeting_type.nil?
|
|
2004
|
+
command.params['assignedTargetingOptionId'] = assigned_targeting_option_id unless assigned_targeting_option_id.nil?
|
|
2005
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2006
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2007
|
+
execute_or_queue_command(command, &block)
|
|
2008
|
+
end
|
|
2009
|
+
|
|
2010
|
+
# Lists the targeting options assigned to an advertiser.
|
|
2011
|
+
# @param [Fixnum] advertiser_id
|
|
2012
|
+
# Required. The ID of the advertiser.
|
|
2013
|
+
# @param [String] targeting_type
|
|
2014
|
+
# Required. Identifies the type of assigned targeting options to list.
|
|
2015
|
+
# @param [String] filter
|
|
2016
|
+
# Allows filtering by assigned targeting option properties.
|
|
2017
|
+
# Supported syntax:
|
|
2018
|
+
# * Filter expressions are made up of one or more restrictions.
|
|
2019
|
+
# * Restrictions can be combined by the logical operator `OR`.
|
|
2020
|
+
# * A restriction has the form of ``field` `operator` `value``.
|
|
2021
|
+
# * The operator must be `EQUALS (=)`.
|
|
2022
|
+
# * Supported fields:
|
|
2023
|
+
# - `assignedTargetingOptionId`
|
|
2024
|
+
# Examples:
|
|
2025
|
+
# * AssignedTargetingOption with ID 123456
|
|
2026
|
+
# `assignedTargetingOptionId="123456"`
|
|
2027
|
+
# The length of this field should be no more than 500 characters.
|
|
2028
|
+
# @param [String] order_by
|
|
2029
|
+
# Field by which to sort the list.
|
|
2030
|
+
# Acceptable values are:
|
|
2031
|
+
# * `assignedTargetingOptionId` (default)
|
|
2032
|
+
# The default sorting order is ascending. To specify descending order for
|
|
2033
|
+
# a field, a suffix "desc" should be added to the field name. Example:
|
|
2034
|
+
# `assignedTargetingOptionId desc`.
|
|
2035
|
+
# @param [Fixnum] page_size
|
|
2036
|
+
# Requested page size. Must be between `1` and `100`. If unspecified will
|
|
2037
|
+
# default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
|
|
2038
|
+
# is specified.
|
|
2039
|
+
# @param [String] page_token
|
|
2040
|
+
# A token identifying a page of results the server should return.
|
|
2041
|
+
# Typically, this is the value of
|
|
2042
|
+
# next_page_token
|
|
2043
|
+
# returned from the previous call to `ListAdvertiserAssignedTargetingOptions`
|
|
2044
|
+
# method. If not specified, the first page of results will be returned.
|
|
2045
|
+
# @param [String] fields
|
|
2046
|
+
# Selector specifying which fields to include in a partial response.
|
|
2047
|
+
# @param [String] quota_user
|
|
2048
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2049
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2050
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2051
|
+
# Request-specific options
|
|
2052
|
+
#
|
|
2053
|
+
# @yield [result, err] Result & error if block supplied
|
|
2054
|
+
# @yieldparam result [Google::Apis::DisplayvideoV1::ListAdvertiserAssignedTargetingOptionsResponse] parsed result object
|
|
2055
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2056
|
+
#
|
|
2057
|
+
# @return [Google::Apis::DisplayvideoV1::ListAdvertiserAssignedTargetingOptionsResponse]
|
|
2058
|
+
#
|
|
2059
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2060
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2061
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2062
|
+
def list_advertiser_targeting_type_assigned_targeting_options(advertiser_id, targeting_type, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2063
|
+
command = make_simple_command(:get, 'v1/advertisers/{+advertiserId}/targetingTypes/{+targetingType}/assignedTargetingOptions', options)
|
|
2064
|
+
command.response_representation = Google::Apis::DisplayvideoV1::ListAdvertiserAssignedTargetingOptionsResponse::Representation
|
|
2065
|
+
command.response_class = Google::Apis::DisplayvideoV1::ListAdvertiserAssignedTargetingOptionsResponse
|
|
2066
|
+
command.params['advertiserId'] = advertiser_id unless advertiser_id.nil?
|
|
2067
|
+
command.params['targetingType'] = targeting_type unless targeting_type.nil?
|
|
2068
|
+
command.query['filter'] = filter unless filter.nil?
|
|
2069
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
2070
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
2071
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2072
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2073
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2074
|
+
execute_or_queue_command(command, &block)
|
|
2075
|
+
end
|
|
2076
|
+
|
|
1797
2077
|
# Gets a combined audience.
|
|
1798
2078
|
# @param [Fixnum] combined_audience_id
|
|
1799
2079
|
# Required. The ID of the combined audience to fetch.
|
|
@@ -18,14 +18,14 @@ require 'google/apis/fitness_v1/representations.rb'
|
|
|
18
18
|
|
|
19
19
|
module Google
|
|
20
20
|
module Apis
|
|
21
|
-
# Fitness
|
|
21
|
+
# Fitness API
|
|
22
22
|
#
|
|
23
|
-
#
|
|
23
|
+
# The Fitness API for managing users' fitness tracking data.
|
|
24
24
|
#
|
|
25
|
-
# @see https://developers.google.com/fit/rest/
|
|
25
|
+
# @see https://developers.google.com/fit/rest/v1/get-started
|
|
26
26
|
module FitnessV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200522'
|
|
29
29
|
|
|
30
30
|
# Use Google Fit to see and store your physical activity data
|
|
31
31
|
AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
|