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