google-api-client 0.23.9 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +42 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2030 -58
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +878 -43
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +604 -0
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +0 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +8 -2
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +108 -5
- data/generated/google/apis/androidenterprise_v1/representations.rb +60 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
- data/generated/google/apis/appengine_v1beta/service.rb +3 -3
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +14 -14
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +3 -2
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +1 -1
- data/generated/google/apis/composer_v1/service.rb +6 -6
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +475 -0
- data/generated/google/apis/dataproc_v1/representations.rb +188 -0
- data/generated/google/apis/dataproc_v1/service.rb +550 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +21 -21
- data/generated/google/apis/file_v1beta1.rb +34 -0
- data/generated/google/apis/file_v1beta1/classes.rb +810 -0
- data/generated/google/apis/file_v1beta1/representations.rb +298 -0
- data/generated/google/apis/file_v1beta1/service.rb +472 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +16 -17
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +8 -9
- data/generated/google/apis/logging_v2/service.rb +9 -9
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +8 -9
- data/generated/google/apis/logging_v2beta1/service.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +14 -14
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +142 -98
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +0 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +142 -98
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +142 -98
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +142 -98
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +142 -98
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +91 -0
- data/generated/google/apis/speech_v1/representations.rb +18 -0
- data/generated/google/apis/speech_v1/service.rb +47 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +25 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +15 -0
- data/generated/google/apis/speech_v1beta1/service.rb +47 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +3 -3
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +34 -31
- data/generated/google/apis/sqladmin_v1beta4/service.rb +8 -8
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -4
- data/generated/google/apis/storage_v1/service.rb +2 -1
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/classes.rb +1 -2
- data/generated/google/apis/storage_v1beta2/service.rb +2 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +21 -21
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +308 -14
- data/generated/google/apis/testing_v1/representations.rb +136 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +156 -2
- data/generated/google/apis/vision_v1/representations.rb +60 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +156 -2
- data/generated/google/apis/vision_v1p1beta1/representations.rb +60 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +156 -2
- data/generated/google/apis/vision_v1p2beta1/representations.rb +60 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -14
- data/generated/google/apis/adexchangeseller_v1.rb +0 -37
- data/generated/google/apis/adexchangeseller_v1/classes.rb +0 -557
- data/generated/google/apis/adexchangeseller_v1/representations.rb +0 -248
- data/generated/google/apis/adexchangeseller_v1/service.rb +0 -544
- data/generated/google/apis/adexchangeseller_v1_1.rb +0 -37
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +0 -842
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +0 -364
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +0 -735
- data/generated/google/apis/adexchangeseller_v2_0.rb +0 -37
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +0 -792
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +0 -347
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +0 -638
@@ -1,347 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
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
|
-
# http://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
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module AdexchangesellerV2_0
|
24
|
-
|
25
|
-
class Account
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class Accounts
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class AdClient
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class AdClients
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class Alert
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class Alerts
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class CustomChannel
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
class TargetingInfo
|
65
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
66
|
-
|
67
|
-
include Google::Apis::Core::JsonObjectSupport
|
68
|
-
end
|
69
|
-
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
71
|
-
end
|
72
|
-
|
73
|
-
class CustomChannels
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
-
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
77
|
-
end
|
78
|
-
|
79
|
-
class Metadata
|
80
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
-
|
82
|
-
include Google::Apis::Core::JsonObjectSupport
|
83
|
-
end
|
84
|
-
|
85
|
-
class PreferredDeal
|
86
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
-
|
88
|
-
include Google::Apis::Core::JsonObjectSupport
|
89
|
-
end
|
90
|
-
|
91
|
-
class PreferredDeals
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
|
-
class Report
|
98
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
-
|
100
|
-
class Header
|
101
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
102
|
-
|
103
|
-
include Google::Apis::Core::JsonObjectSupport
|
104
|
-
end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
|
-
class ReportingMetadataEntry
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
|
-
class SavedReport
|
116
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
-
|
118
|
-
include Google::Apis::Core::JsonObjectSupport
|
119
|
-
end
|
120
|
-
|
121
|
-
class SavedReports
|
122
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
-
|
124
|
-
include Google::Apis::Core::JsonObjectSupport
|
125
|
-
end
|
126
|
-
|
127
|
-
class UrlChannel
|
128
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
-
|
130
|
-
include Google::Apis::Core::JsonObjectSupport
|
131
|
-
end
|
132
|
-
|
133
|
-
class UrlChannels
|
134
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
-
|
136
|
-
include Google::Apis::Core::JsonObjectSupport
|
137
|
-
end
|
138
|
-
|
139
|
-
class Account
|
140
|
-
# @private
|
141
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
-
property :id, as: 'id'
|
143
|
-
property :kind, as: 'kind'
|
144
|
-
property :name, as: 'name'
|
145
|
-
end
|
146
|
-
end
|
147
|
-
|
148
|
-
class Accounts
|
149
|
-
# @private
|
150
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
151
|
-
property :etag, as: 'etag'
|
152
|
-
collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::Account, decorator: Google::Apis::AdexchangesellerV2_0::Account::Representation
|
153
|
-
|
154
|
-
property :kind, as: 'kind'
|
155
|
-
property :next_page_token, as: 'nextPageToken'
|
156
|
-
end
|
157
|
-
end
|
158
|
-
|
159
|
-
class AdClient
|
160
|
-
# @private
|
161
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
162
|
-
property :arc_opt_in, as: 'arcOptIn'
|
163
|
-
property :id, as: 'id'
|
164
|
-
property :kind, as: 'kind'
|
165
|
-
property :product_code, as: 'productCode'
|
166
|
-
property :supports_reporting, as: 'supportsReporting'
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
|
-
class AdClients
|
171
|
-
# @private
|
172
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
173
|
-
property :etag, as: 'etag'
|
174
|
-
collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::AdClient, decorator: Google::Apis::AdexchangesellerV2_0::AdClient::Representation
|
175
|
-
|
176
|
-
property :kind, as: 'kind'
|
177
|
-
property :next_page_token, as: 'nextPageToken'
|
178
|
-
end
|
179
|
-
end
|
180
|
-
|
181
|
-
class Alert
|
182
|
-
# @private
|
183
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
184
|
-
property :id, as: 'id'
|
185
|
-
property :kind, as: 'kind'
|
186
|
-
property :message, as: 'message'
|
187
|
-
property :severity, as: 'severity'
|
188
|
-
property :type, as: 'type'
|
189
|
-
end
|
190
|
-
end
|
191
|
-
|
192
|
-
class Alerts
|
193
|
-
# @private
|
194
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
195
|
-
collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::Alert, decorator: Google::Apis::AdexchangesellerV2_0::Alert::Representation
|
196
|
-
|
197
|
-
property :kind, as: 'kind'
|
198
|
-
end
|
199
|
-
end
|
200
|
-
|
201
|
-
class CustomChannel
|
202
|
-
# @private
|
203
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
204
|
-
property :code, as: 'code'
|
205
|
-
property :id, as: 'id'
|
206
|
-
property :kind, as: 'kind'
|
207
|
-
property :name, as: 'name'
|
208
|
-
property :targeting_info, as: 'targetingInfo', class: Google::Apis::AdexchangesellerV2_0::CustomChannel::TargetingInfo, decorator: Google::Apis::AdexchangesellerV2_0::CustomChannel::TargetingInfo::Representation
|
209
|
-
|
210
|
-
end
|
211
|
-
|
212
|
-
class TargetingInfo
|
213
|
-
# @private
|
214
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
215
|
-
property :ads_appear_on, as: 'adsAppearOn'
|
216
|
-
property :description, as: 'description'
|
217
|
-
property :location, as: 'location'
|
218
|
-
property :site_language, as: 'siteLanguage'
|
219
|
-
end
|
220
|
-
end
|
221
|
-
end
|
222
|
-
|
223
|
-
class CustomChannels
|
224
|
-
# @private
|
225
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
226
|
-
property :etag, as: 'etag'
|
227
|
-
collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::CustomChannel, decorator: Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation
|
228
|
-
|
229
|
-
property :kind, as: 'kind'
|
230
|
-
property :next_page_token, as: 'nextPageToken'
|
231
|
-
end
|
232
|
-
end
|
233
|
-
|
234
|
-
class Metadata
|
235
|
-
# @private
|
236
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
-
collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::ReportingMetadataEntry, decorator: Google::Apis::AdexchangesellerV2_0::ReportingMetadataEntry::Representation
|
238
|
-
|
239
|
-
property :kind, as: 'kind'
|
240
|
-
end
|
241
|
-
end
|
242
|
-
|
243
|
-
class PreferredDeal
|
244
|
-
# @private
|
245
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
246
|
-
property :advertiser_name, as: 'advertiserName'
|
247
|
-
property :buyer_network_name, as: 'buyerNetworkName'
|
248
|
-
property :currency_code, as: 'currencyCode'
|
249
|
-
property :end_time, :numeric_string => true, as: 'endTime'
|
250
|
-
property :fixed_cpm, :numeric_string => true, as: 'fixedCpm'
|
251
|
-
property :id, :numeric_string => true, as: 'id'
|
252
|
-
property :kind, as: 'kind'
|
253
|
-
property :start_time, :numeric_string => true, as: 'startTime'
|
254
|
-
end
|
255
|
-
end
|
256
|
-
|
257
|
-
class PreferredDeals
|
258
|
-
# @private
|
259
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
260
|
-
collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::PreferredDeal, decorator: Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation
|
261
|
-
|
262
|
-
property :kind, as: 'kind'
|
263
|
-
end
|
264
|
-
end
|
265
|
-
|
266
|
-
class Report
|
267
|
-
# @private
|
268
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
-
collection :averages, as: 'averages'
|
270
|
-
collection :headers, as: 'headers', class: Google::Apis::AdexchangesellerV2_0::Report::Header, decorator: Google::Apis::AdexchangesellerV2_0::Report::Header::Representation
|
271
|
-
|
272
|
-
property :kind, as: 'kind'
|
273
|
-
collection :rows, as: 'rows', :class => Array do
|
274
|
-
include Representable::JSON::Collection
|
275
|
-
items
|
276
|
-
end
|
277
|
-
|
278
|
-
property :total_matched_rows, :numeric_string => true, as: 'totalMatchedRows'
|
279
|
-
collection :totals, as: 'totals'
|
280
|
-
collection :warnings, as: 'warnings'
|
281
|
-
end
|
282
|
-
|
283
|
-
class Header
|
284
|
-
# @private
|
285
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
286
|
-
property :currency, as: 'currency'
|
287
|
-
property :name, as: 'name'
|
288
|
-
property :type, as: 'type'
|
289
|
-
end
|
290
|
-
end
|
291
|
-
end
|
292
|
-
|
293
|
-
class ReportingMetadataEntry
|
294
|
-
# @private
|
295
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
296
|
-
collection :compatible_dimensions, as: 'compatibleDimensions'
|
297
|
-
collection :compatible_metrics, as: 'compatibleMetrics'
|
298
|
-
property :id, as: 'id'
|
299
|
-
property :kind, as: 'kind'
|
300
|
-
collection :required_dimensions, as: 'requiredDimensions'
|
301
|
-
collection :required_metrics, as: 'requiredMetrics'
|
302
|
-
collection :supported_products, as: 'supportedProducts'
|
303
|
-
end
|
304
|
-
end
|
305
|
-
|
306
|
-
class SavedReport
|
307
|
-
# @private
|
308
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
309
|
-
property :id, as: 'id'
|
310
|
-
property :kind, as: 'kind'
|
311
|
-
property :name, as: 'name'
|
312
|
-
end
|
313
|
-
end
|
314
|
-
|
315
|
-
class SavedReports
|
316
|
-
# @private
|
317
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
318
|
-
property :etag, as: 'etag'
|
319
|
-
collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::SavedReport, decorator: Google::Apis::AdexchangesellerV2_0::SavedReport::Representation
|
320
|
-
|
321
|
-
property :kind, as: 'kind'
|
322
|
-
property :next_page_token, as: 'nextPageToken'
|
323
|
-
end
|
324
|
-
end
|
325
|
-
|
326
|
-
class UrlChannel
|
327
|
-
# @private
|
328
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
329
|
-
property :id, as: 'id'
|
330
|
-
property :kind, as: 'kind'
|
331
|
-
property :url_pattern, as: 'urlPattern'
|
332
|
-
end
|
333
|
-
end
|
334
|
-
|
335
|
-
class UrlChannels
|
336
|
-
# @private
|
337
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
338
|
-
property :etag, as: 'etag'
|
339
|
-
collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::UrlChannel, decorator: Google::Apis::AdexchangesellerV2_0::UrlChannel::Representation
|
340
|
-
|
341
|
-
property :kind, as: 'kind'
|
342
|
-
property :next_page_token, as: 'nextPageToken'
|
343
|
-
end
|
344
|
-
end
|
345
|
-
end
|
346
|
-
end
|
347
|
-
end
|
@@ -1,638 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
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
|
-
# http://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
|
-
require 'google/apis/core/base_service'
|
16
|
-
require 'google/apis/core/json_representation'
|
17
|
-
require 'google/apis/core/hashable'
|
18
|
-
require 'google/apis/errors'
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Apis
|
22
|
-
module AdexchangesellerV2_0
|
23
|
-
# Ad Exchange Seller API
|
24
|
-
#
|
25
|
-
# Accesses the inventory of Ad Exchange seller users and generates reports.
|
26
|
-
#
|
27
|
-
# @example
|
28
|
-
# require 'google/apis/adexchangeseller_v2_0'
|
29
|
-
#
|
30
|
-
# Adexchangeseller = Google::Apis::AdexchangesellerV2_0 # Alias the module
|
31
|
-
# service = Adexchangeseller::AdExchangeSellerService.new
|
32
|
-
#
|
33
|
-
# @see https://developers.google.com/ad-exchange/seller-rest/
|
34
|
-
class AdExchangeSellerService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
-
attr_accessor :key
|
39
|
-
|
40
|
-
# @return [String]
|
41
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
42
|
-
# characters.
|
43
|
-
attr_accessor :quota_user
|
44
|
-
|
45
|
-
# @return [String]
|
46
|
-
# Deprecated. Please use quotaUser instead.
|
47
|
-
attr_accessor :user_ip
|
48
|
-
|
49
|
-
def initialize
|
50
|
-
super('https://www.googleapis.com/', 'adexchangeseller/v2.0/')
|
51
|
-
@batch_path = 'batch/adexchangeseller/v2.0'
|
52
|
-
end
|
53
|
-
|
54
|
-
# Get information about the selected Ad Exchange account.
|
55
|
-
# @param [String] account_id
|
56
|
-
# Account to get information about. Tip: 'myaccount' is a valid ID.
|
57
|
-
# @param [String] fields
|
58
|
-
# Selector specifying which fields to include in a partial response.
|
59
|
-
# @param [String] quota_user
|
60
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
61
|
-
# characters.
|
62
|
-
# @param [String] user_ip
|
63
|
-
# Deprecated. Please use quotaUser instead.
|
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::AdexchangesellerV2_0::Account] parsed result object
|
69
|
-
# @yieldparam err [StandardError] error object if request failed
|
70
|
-
#
|
71
|
-
# @return [Google::Apis::AdexchangesellerV2_0::Account]
|
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 get_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
77
|
-
command = make_simple_command(:get, 'accounts/{accountId}', options)
|
78
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::Account::Representation
|
79
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::Account
|
80
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
81
|
-
command.query['fields'] = fields unless fields.nil?
|
82
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
83
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
84
|
-
execute_or_queue_command(command, &block)
|
85
|
-
end
|
86
|
-
|
87
|
-
# List all accounts available to this Ad Exchange account.
|
88
|
-
# @param [Fixnum] max_results
|
89
|
-
# The maximum number of accounts to include in the response, used for paging.
|
90
|
-
# @param [String] page_token
|
91
|
-
# A continuation token, used to page through accounts. To retrieve the next page,
|
92
|
-
# set this parameter to the value of "nextPageToken" from the previous response.
|
93
|
-
# @param [String] fields
|
94
|
-
# Selector specifying which fields to include in a partial response.
|
95
|
-
# @param [String] quota_user
|
96
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
97
|
-
# characters.
|
98
|
-
# @param [String] user_ip
|
99
|
-
# Deprecated. Please use quotaUser instead.
|
100
|
-
# @param [Google::Apis::RequestOptions] options
|
101
|
-
# Request-specific options
|
102
|
-
#
|
103
|
-
# @yield [result, err] Result & error if block supplied
|
104
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::Accounts] parsed result object
|
105
|
-
# @yieldparam err [StandardError] error object if request failed
|
106
|
-
#
|
107
|
-
# @return [Google::Apis::AdexchangesellerV2_0::Accounts]
|
108
|
-
#
|
109
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
-
def list_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
113
|
-
command = make_simple_command(:get, 'accounts', options)
|
114
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::Accounts::Representation
|
115
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::Accounts
|
116
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
117
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
118
|
-
command.query['fields'] = fields unless fields.nil?
|
119
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
120
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
121
|
-
execute_or_queue_command(command, &block)
|
122
|
-
end
|
123
|
-
|
124
|
-
# List all ad clients in this Ad Exchange account.
|
125
|
-
# @param [String] account_id
|
126
|
-
# Account to which the ad client belongs.
|
127
|
-
# @param [Fixnum] max_results
|
128
|
-
# The maximum number of ad clients to include in the response, used for paging.
|
129
|
-
# @param [String] page_token
|
130
|
-
# A continuation token, used to page through ad clients. To retrieve the next
|
131
|
-
# page, set this parameter to the value of "nextPageToken" from the previous
|
132
|
-
# response.
|
133
|
-
# @param [String] fields
|
134
|
-
# Selector specifying which fields to include in a partial response.
|
135
|
-
# @param [String] quota_user
|
136
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
137
|
-
# characters.
|
138
|
-
# @param [String] user_ip
|
139
|
-
# Deprecated. Please use quotaUser instead.
|
140
|
-
# @param [Google::Apis::RequestOptions] options
|
141
|
-
# Request-specific options
|
142
|
-
#
|
143
|
-
# @yield [result, err] Result & error if block supplied
|
144
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::AdClients] parsed result object
|
145
|
-
# @yieldparam err [StandardError] error object if request failed
|
146
|
-
#
|
147
|
-
# @return [Google::Apis::AdexchangesellerV2_0::AdClients]
|
148
|
-
#
|
149
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
150
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
151
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
152
|
-
def list_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
153
|
-
command = make_simple_command(:get, 'accounts/{accountId}/adclients', options)
|
154
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::AdClients::Representation
|
155
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::AdClients
|
156
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
157
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
158
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
159
|
-
command.query['fields'] = fields unless fields.nil?
|
160
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
161
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
162
|
-
execute_or_queue_command(command, &block)
|
163
|
-
end
|
164
|
-
|
165
|
-
# List the alerts for this Ad Exchange account.
|
166
|
-
# @param [String] account_id
|
167
|
-
# Account owning the alerts.
|
168
|
-
# @param [String] locale
|
169
|
-
# The locale to use for translating alert messages. The account locale will be
|
170
|
-
# used if this is not supplied. The AdSense default (English) will be used if
|
171
|
-
# the supplied locale is invalid or unsupported.
|
172
|
-
# @param [String] fields
|
173
|
-
# Selector specifying which fields to include in a partial response.
|
174
|
-
# @param [String] quota_user
|
175
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
176
|
-
# characters.
|
177
|
-
# @param [String] user_ip
|
178
|
-
# Deprecated. Please use quotaUser instead.
|
179
|
-
# @param [Google::Apis::RequestOptions] options
|
180
|
-
# Request-specific options
|
181
|
-
#
|
182
|
-
# @yield [result, err] Result & error if block supplied
|
183
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::Alerts] parsed result object
|
184
|
-
# @yieldparam err [StandardError] error object if request failed
|
185
|
-
#
|
186
|
-
# @return [Google::Apis::AdexchangesellerV2_0::Alerts]
|
187
|
-
#
|
188
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
189
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
190
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
191
|
-
def list_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
192
|
-
command = make_simple_command(:get, 'accounts/{accountId}/alerts', options)
|
193
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::Alerts::Representation
|
194
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::Alerts
|
195
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
196
|
-
command.query['locale'] = locale unless locale.nil?
|
197
|
-
command.query['fields'] = fields unless fields.nil?
|
198
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
199
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
200
|
-
execute_or_queue_command(command, &block)
|
201
|
-
end
|
202
|
-
|
203
|
-
# Get the specified custom channel from the specified ad client.
|
204
|
-
# @param [String] account_id
|
205
|
-
# Account to which the ad client belongs.
|
206
|
-
# @param [String] ad_client_id
|
207
|
-
# Ad client which contains the custom channel.
|
208
|
-
# @param [String] custom_channel_id
|
209
|
-
# Custom channel to retrieve.
|
210
|
-
# @param [String] fields
|
211
|
-
# Selector specifying which fields to include in a partial response.
|
212
|
-
# @param [String] quota_user
|
213
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
214
|
-
# characters.
|
215
|
-
# @param [String] user_ip
|
216
|
-
# Deprecated. Please use quotaUser instead.
|
217
|
-
# @param [Google::Apis::RequestOptions] options
|
218
|
-
# Request-specific options
|
219
|
-
#
|
220
|
-
# @yield [result, err] Result & error if block supplied
|
221
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::CustomChannel] parsed result object
|
222
|
-
# @yieldparam err [StandardError] error object if request failed
|
223
|
-
#
|
224
|
-
# @return [Google::Apis::AdexchangesellerV2_0::CustomChannel]
|
225
|
-
#
|
226
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
227
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
228
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
229
|
-
def get_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
230
|
-
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options)
|
231
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation
|
232
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannel
|
233
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
234
|
-
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
235
|
-
command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil?
|
236
|
-
command.query['fields'] = fields unless fields.nil?
|
237
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
238
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
239
|
-
execute_or_queue_command(command, &block)
|
240
|
-
end
|
241
|
-
|
242
|
-
# List all custom channels in the specified ad client for this Ad Exchange
|
243
|
-
# account.
|
244
|
-
# @param [String] account_id
|
245
|
-
# Account to which the ad client belongs.
|
246
|
-
# @param [String] ad_client_id
|
247
|
-
# Ad client for which to list custom channels.
|
248
|
-
# @param [Fixnum] max_results
|
249
|
-
# The maximum number of custom channels to include in the response, used for
|
250
|
-
# paging.
|
251
|
-
# @param [String] page_token
|
252
|
-
# A continuation token, used to page through custom channels. To retrieve the
|
253
|
-
# next page, set this parameter to the value of "nextPageToken" from the
|
254
|
-
# previous response.
|
255
|
-
# @param [String] fields
|
256
|
-
# Selector specifying which fields to include in a partial response.
|
257
|
-
# @param [String] quota_user
|
258
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
259
|
-
# characters.
|
260
|
-
# @param [String] user_ip
|
261
|
-
# Deprecated. Please use quotaUser instead.
|
262
|
-
# @param [Google::Apis::RequestOptions] options
|
263
|
-
# Request-specific options
|
264
|
-
#
|
265
|
-
# @yield [result, err] Result & error if block supplied
|
266
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::CustomChannels] parsed result object
|
267
|
-
# @yieldparam err [StandardError] error object if request failed
|
268
|
-
#
|
269
|
-
# @return [Google::Apis::AdexchangesellerV2_0::CustomChannels]
|
270
|
-
#
|
271
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
272
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
273
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
274
|
-
def list_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
275
|
-
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options)
|
276
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannels::Representation
|
277
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannels
|
278
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
279
|
-
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
280
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
281
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
282
|
-
command.query['fields'] = fields unless fields.nil?
|
283
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
284
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
285
|
-
execute_or_queue_command(command, &block)
|
286
|
-
end
|
287
|
-
|
288
|
-
# List the metadata for the dimensions available to this AdExchange account.
|
289
|
-
# @param [String] account_id
|
290
|
-
# Account with visibility to the dimensions.
|
291
|
-
# @param [String] fields
|
292
|
-
# Selector specifying which fields to include in a partial response.
|
293
|
-
# @param [String] quota_user
|
294
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
295
|
-
# characters.
|
296
|
-
# @param [String] user_ip
|
297
|
-
# Deprecated. Please use quotaUser instead.
|
298
|
-
# @param [Google::Apis::RequestOptions] options
|
299
|
-
# Request-specific options
|
300
|
-
#
|
301
|
-
# @yield [result, err] Result & error if block supplied
|
302
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::Metadata] parsed result object
|
303
|
-
# @yieldparam err [StandardError] error object if request failed
|
304
|
-
#
|
305
|
-
# @return [Google::Apis::AdexchangesellerV2_0::Metadata]
|
306
|
-
#
|
307
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
308
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
309
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
310
|
-
def list_account_metadata_dimensions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
311
|
-
command = make_simple_command(:get, 'accounts/{accountId}/metadata/dimensions', options)
|
312
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
|
313
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata
|
314
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
315
|
-
command.query['fields'] = fields unless fields.nil?
|
316
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
317
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
318
|
-
execute_or_queue_command(command, &block)
|
319
|
-
end
|
320
|
-
|
321
|
-
# List the metadata for the metrics available to this AdExchange account.
|
322
|
-
# @param [String] account_id
|
323
|
-
# Account with visibility to the metrics.
|
324
|
-
# @param [String] fields
|
325
|
-
# Selector specifying which fields to include in a partial response.
|
326
|
-
# @param [String] quota_user
|
327
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
328
|
-
# characters.
|
329
|
-
# @param [String] user_ip
|
330
|
-
# Deprecated. Please use quotaUser instead.
|
331
|
-
# @param [Google::Apis::RequestOptions] options
|
332
|
-
# Request-specific options
|
333
|
-
#
|
334
|
-
# @yield [result, err] Result & error if block supplied
|
335
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::Metadata] parsed result object
|
336
|
-
# @yieldparam err [StandardError] error object if request failed
|
337
|
-
#
|
338
|
-
# @return [Google::Apis::AdexchangesellerV2_0::Metadata]
|
339
|
-
#
|
340
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
341
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
342
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
343
|
-
def list_account_metadata_metrics(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
344
|
-
command = make_simple_command(:get, 'accounts/{accountId}/metadata/metrics', options)
|
345
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation
|
346
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata
|
347
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
348
|
-
command.query['fields'] = fields unless fields.nil?
|
349
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
350
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
351
|
-
execute_or_queue_command(command, &block)
|
352
|
-
end
|
353
|
-
|
354
|
-
# Get information about the selected Ad Exchange Preferred Deal.
|
355
|
-
# @param [String] account_id
|
356
|
-
# Account owning the deal.
|
357
|
-
# @param [String] deal_id
|
358
|
-
# Preferred deal to get information about.
|
359
|
-
# @param [String] fields
|
360
|
-
# Selector specifying which fields to include in a partial response.
|
361
|
-
# @param [String] quota_user
|
362
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
363
|
-
# characters.
|
364
|
-
# @param [String] user_ip
|
365
|
-
# Deprecated. Please use quotaUser instead.
|
366
|
-
# @param [Google::Apis::RequestOptions] options
|
367
|
-
# Request-specific options
|
368
|
-
#
|
369
|
-
# @yield [result, err] Result & error if block supplied
|
370
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::PreferredDeal] parsed result object
|
371
|
-
# @yieldparam err [StandardError] error object if request failed
|
372
|
-
#
|
373
|
-
# @return [Google::Apis::AdexchangesellerV2_0::PreferredDeal]
|
374
|
-
#
|
375
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
376
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
377
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
378
|
-
def get_account_preferred_deal(account_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
379
|
-
command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals/{dealId}', options)
|
380
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation
|
381
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeal
|
382
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
383
|
-
command.params['dealId'] = deal_id unless deal_id.nil?
|
384
|
-
command.query['fields'] = fields unless fields.nil?
|
385
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
386
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
387
|
-
execute_or_queue_command(command, &block)
|
388
|
-
end
|
389
|
-
|
390
|
-
# List the preferred deals for this Ad Exchange account.
|
391
|
-
# @param [String] account_id
|
392
|
-
# Account owning the deals.
|
393
|
-
# @param [String] fields
|
394
|
-
# Selector specifying which fields to include in a partial response.
|
395
|
-
# @param [String] quota_user
|
396
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
397
|
-
# characters.
|
398
|
-
# @param [String] user_ip
|
399
|
-
# Deprecated. Please use quotaUser instead.
|
400
|
-
# @param [Google::Apis::RequestOptions] options
|
401
|
-
# Request-specific options
|
402
|
-
#
|
403
|
-
# @yield [result, err] Result & error if block supplied
|
404
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::PreferredDeals] parsed result object
|
405
|
-
# @yieldparam err [StandardError] error object if request failed
|
406
|
-
#
|
407
|
-
# @return [Google::Apis::AdexchangesellerV2_0::PreferredDeals]
|
408
|
-
#
|
409
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
410
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
411
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
412
|
-
def list_account_preferred_deals(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
413
|
-
command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals', options)
|
414
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeals::Representation
|
415
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeals
|
416
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
417
|
-
command.query['fields'] = fields unless fields.nil?
|
418
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
419
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
420
|
-
execute_or_queue_command(command, &block)
|
421
|
-
end
|
422
|
-
|
423
|
-
# Generate an Ad Exchange report based on the report request sent in the query
|
424
|
-
# parameters. Returns the result as JSON; to retrieve output in CSV format
|
425
|
-
# specify "alt=csv" as a query parameter.
|
426
|
-
# @param [String] account_id
|
427
|
-
# Account which owns the generated report.
|
428
|
-
# @param [String] start_date
|
429
|
-
# Start of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
430
|
-
# @param [String] end_date
|
431
|
-
# End of the date range to report on in "YYYY-MM-DD" format, inclusive.
|
432
|
-
# @param [Array<String>, String] dimension
|
433
|
-
# Dimensions to base the report on.
|
434
|
-
# @param [Array<String>, String] filter
|
435
|
-
# Filters to be run on the report.
|
436
|
-
# @param [String] locale
|
437
|
-
# Optional locale to use for translating report output to a local language.
|
438
|
-
# Defaults to "en_US" if not specified.
|
439
|
-
# @param [Fixnum] max_results
|
440
|
-
# The maximum number of rows of report data to return.
|
441
|
-
# @param [Array<String>, String] metric
|
442
|
-
# Numeric columns to include in the report.
|
443
|
-
# @param [Array<String>, String] sort
|
444
|
-
# The name of a dimension or metric to sort the resulting report on, optionally
|
445
|
-
# prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is
|
446
|
-
# specified, the column is sorted ascending.
|
447
|
-
# @param [Fixnum] start_index
|
448
|
-
# Index of the first row of report data to return.
|
449
|
-
# @param [String] fields
|
450
|
-
# Selector specifying which fields to include in a partial response.
|
451
|
-
# @param [String] quota_user
|
452
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
453
|
-
# characters.
|
454
|
-
# @param [String] user_ip
|
455
|
-
# Deprecated. Please use quotaUser instead.
|
456
|
-
# @param [IO, String] download_dest
|
457
|
-
# IO stream or filename to receive content download
|
458
|
-
# @param [Google::Apis::RequestOptions] options
|
459
|
-
# Request-specific options
|
460
|
-
#
|
461
|
-
# @yield [result, err] Result & error if block supplied
|
462
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::Report] parsed result object
|
463
|
-
# @yieldparam err [StandardError] error object if request failed
|
464
|
-
#
|
465
|
-
# @return [Google::Apis::AdexchangesellerV2_0::Report]
|
466
|
-
#
|
467
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
468
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
469
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
470
|
-
def generate_account_report(account_id, start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
|
471
|
-
if download_dest.nil?
|
472
|
-
command = make_simple_command(:get, 'accounts/{accountId}/reports', options)
|
473
|
-
else
|
474
|
-
command = make_download_command(:get, 'accounts/{accountId}/reports', options)
|
475
|
-
command.download_dest = download_dest
|
476
|
-
end
|
477
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation
|
478
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::Report
|
479
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
480
|
-
command.query['dimension'] = dimension unless dimension.nil?
|
481
|
-
command.query['endDate'] = end_date unless end_date.nil?
|
482
|
-
command.query['filter'] = filter unless filter.nil?
|
483
|
-
command.query['locale'] = locale unless locale.nil?
|
484
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
485
|
-
command.query['metric'] = metric unless metric.nil?
|
486
|
-
command.query['sort'] = sort unless sort.nil?
|
487
|
-
command.query['startDate'] = start_date unless start_date.nil?
|
488
|
-
command.query['startIndex'] = start_index unless start_index.nil?
|
489
|
-
command.query['fields'] = fields unless fields.nil?
|
490
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
491
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
492
|
-
execute_or_queue_command(command, &block)
|
493
|
-
end
|
494
|
-
|
495
|
-
# Generate an Ad Exchange report based on the saved report ID sent in the query
|
496
|
-
# parameters.
|
497
|
-
# @param [String] account_id
|
498
|
-
# Account owning the saved report.
|
499
|
-
# @param [String] saved_report_id
|
500
|
-
# The saved report to retrieve.
|
501
|
-
# @param [String] locale
|
502
|
-
# Optional locale to use for translating report output to a local language.
|
503
|
-
# Defaults to "en_US" if not specified.
|
504
|
-
# @param [Fixnum] max_results
|
505
|
-
# The maximum number of rows of report data to return.
|
506
|
-
# @param [Fixnum] start_index
|
507
|
-
# Index of the first row of report data to return.
|
508
|
-
# @param [String] fields
|
509
|
-
# Selector specifying which fields to include in a partial response.
|
510
|
-
# @param [String] quota_user
|
511
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
512
|
-
# characters.
|
513
|
-
# @param [String] user_ip
|
514
|
-
# Deprecated. Please use quotaUser instead.
|
515
|
-
# @param [Google::Apis::RequestOptions] options
|
516
|
-
# Request-specific options
|
517
|
-
#
|
518
|
-
# @yield [result, err] Result & error if block supplied
|
519
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::Report] parsed result object
|
520
|
-
# @yieldparam err [StandardError] error object if request failed
|
521
|
-
#
|
522
|
-
# @return [Google::Apis::AdexchangesellerV2_0::Report]
|
523
|
-
#
|
524
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
525
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
526
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
527
|
-
def generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
528
|
-
command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options)
|
529
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation
|
530
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::Report
|
531
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
532
|
-
command.params['savedReportId'] = saved_report_id unless saved_report_id.nil?
|
533
|
-
command.query['locale'] = locale unless locale.nil?
|
534
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
535
|
-
command.query['startIndex'] = start_index unless start_index.nil?
|
536
|
-
command.query['fields'] = fields unless fields.nil?
|
537
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
538
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
539
|
-
execute_or_queue_command(command, &block)
|
540
|
-
end
|
541
|
-
|
542
|
-
# List all saved reports in this Ad Exchange account.
|
543
|
-
# @param [String] account_id
|
544
|
-
# Account owning the saved reports.
|
545
|
-
# @param [Fixnum] max_results
|
546
|
-
# The maximum number of saved reports to include in the response, used for
|
547
|
-
# paging.
|
548
|
-
# @param [String] page_token
|
549
|
-
# A continuation token, used to page through saved reports. To retrieve the next
|
550
|
-
# page, set this parameter to the value of "nextPageToken" from the previous
|
551
|
-
# response.
|
552
|
-
# @param [String] fields
|
553
|
-
# Selector specifying which fields to include in a partial response.
|
554
|
-
# @param [String] quota_user
|
555
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
556
|
-
# characters.
|
557
|
-
# @param [String] user_ip
|
558
|
-
# Deprecated. Please use quotaUser instead.
|
559
|
-
# @param [Google::Apis::RequestOptions] options
|
560
|
-
# Request-specific options
|
561
|
-
#
|
562
|
-
# @yield [result, err] Result & error if block supplied
|
563
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::SavedReports] parsed result object
|
564
|
-
# @yieldparam err [StandardError] error object if request failed
|
565
|
-
#
|
566
|
-
# @return [Google::Apis::AdexchangesellerV2_0::SavedReports]
|
567
|
-
#
|
568
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
569
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
570
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
571
|
-
def list_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
572
|
-
command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options)
|
573
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::SavedReports::Representation
|
574
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::SavedReports
|
575
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
576
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
577
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
578
|
-
command.query['fields'] = fields unless fields.nil?
|
579
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
580
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
581
|
-
execute_or_queue_command(command, &block)
|
582
|
-
end
|
583
|
-
|
584
|
-
# List all URL channels in the specified ad client for this Ad Exchange account.
|
585
|
-
# @param [String] account_id
|
586
|
-
# Account to which the ad client belongs.
|
587
|
-
# @param [String] ad_client_id
|
588
|
-
# Ad client for which to list URL channels.
|
589
|
-
# @param [Fixnum] max_results
|
590
|
-
# The maximum number of URL channels to include in the response, used for paging.
|
591
|
-
# @param [String] page_token
|
592
|
-
# A continuation token, used to page through URL channels. To retrieve the next
|
593
|
-
# page, set this parameter to the value of "nextPageToken" from the previous
|
594
|
-
# response.
|
595
|
-
# @param [String] fields
|
596
|
-
# Selector specifying which fields to include in a partial response.
|
597
|
-
# @param [String] quota_user
|
598
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
599
|
-
# characters.
|
600
|
-
# @param [String] user_ip
|
601
|
-
# Deprecated. Please use quotaUser instead.
|
602
|
-
# @param [Google::Apis::RequestOptions] options
|
603
|
-
# Request-specific options
|
604
|
-
#
|
605
|
-
# @yield [result, err] Result & error if block supplied
|
606
|
-
# @yieldparam result [Google::Apis::AdexchangesellerV2_0::UrlChannels] parsed result object
|
607
|
-
# @yieldparam err [StandardError] error object if request failed
|
608
|
-
#
|
609
|
-
# @return [Google::Apis::AdexchangesellerV2_0::UrlChannels]
|
610
|
-
#
|
611
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
612
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
613
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
614
|
-
def list_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
615
|
-
command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options)
|
616
|
-
command.response_representation = Google::Apis::AdexchangesellerV2_0::UrlChannels::Representation
|
617
|
-
command.response_class = Google::Apis::AdexchangesellerV2_0::UrlChannels
|
618
|
-
command.params['accountId'] = account_id unless account_id.nil?
|
619
|
-
command.params['adClientId'] = ad_client_id unless ad_client_id.nil?
|
620
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
621
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
622
|
-
command.query['fields'] = fields unless fields.nil?
|
623
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
624
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
625
|
-
execute_or_queue_command(command, &block)
|
626
|
-
end
|
627
|
-
|
628
|
-
protected
|
629
|
-
|
630
|
-
def apply_command_defaults(command)
|
631
|
-
command.query['key'] = key unless key.nil?
|
632
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
633
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
634
|
-
end
|
635
|
-
end
|
636
|
-
end
|
637
|
-
end
|
638
|
-
end
|