adcenter-client 7.0.3 → 8.0.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.
- data/.gemtest +0 -0
- data/History.txt +6 -0
- data/Manifest.txt +41 -19
- data/README.txt +1 -1
- data/Rakefile.rb +2 -2
- data/VERSION +1 -1
- data/devel/gen_wsdl_drivers.rb +1 -1
- data/devel/wsdl.yml +16 -13
- data/lib/AdIntelligenceService.rb +787 -0
- data/lib/AdIntelligenceServiceClient.rb +160 -0
- data/lib/AdIntelligenceServiceDriver.rb +115 -0
- data/lib/AdIntelligenceServiceMappingRegistry.rb +1378 -0
- data/lib/AdministrationService.rb +85 -0
- data/lib/AdministrationServiceClient.rb +46 -0
- data/lib/AdministrationServiceDriver.rb +8 -8
- data/lib/AdministrationServiceMappingRegistry.rb +8 -7
- data/lib/CampaignManagementService.rb +3413 -0
- data/lib/CampaignManagementServiceClient.rb +1330 -0
- data/lib/CampaignManagementServiceDriver.rb +335 -359
- data/lib/CampaignManagementServiceMappingRegistry.rb +2288 -2259
- data/lib/CustomerBillingService.rb +419 -0
- data/lib/CustomerBillingServiceClient.rb +148 -0
- data/lib/CustomerBillingServiceDriver.rb +17 -9
- data/lib/CustomerBillingServiceMappingRegistry.rb +50 -32
- data/lib/CustomerManagementService.rb +1502 -0
- data/lib/CustomerManagementServiceClient.rb +368 -0
- data/lib/CustomerManagementServiceDriver.rb +59 -19
- data/lib/CustomerManagementServiceMappingRegistry.rb +373 -145
- data/lib/NotificationService.rb +427 -0
- data/lib/NotificationServiceClient.rb +48 -0
- data/lib/NotificationServiceDriver.rb +59 -0
- data/lib/NotificationServiceMappingRegistry.rb +756 -0
- data/lib/OptimizerService.rb +265 -0
- data/lib/OptimizerServiceClient.rb +48 -0
- data/lib/OptimizerServiceDriver.rb +59 -0
- data/lib/OptimizerServiceMappingRegistry.rb +469 -0
- data/lib/ReportingService.rb +2376 -0
- data/lib/ReportingServiceClient.rb +48 -0
- data/lib/ReportingServiceDriver.rb +8 -8
- data/lib/ReportingServiceMappingRegistry.rb +1718 -1476
- data/lib/ad_intelligence_service.rb +9 -0
- data/lib/adcenter_client.rb +30 -23
- data/lib/adcenter_service.rb +15 -1
- data/lib/adcenter_wrapper_entities.rb +8179 -8164
- data/lib/administration_service.rb +1 -0
- data/lib/campaign_management_service.rb +2 -0
- data/lib/custom_assertions.rb +1 -0
- data/lib/customer_billing_service.rb +2 -0
- data/lib/customer_management_service.rb +4 -0
- data/lib/notification_management.rb +2 -0
- data/lib/notification_service.rb +7 -0
- data/lib/optimizer_service.rb +7 -0
- data/lib/reporting_service.rb +2 -0
- data/lib/secure_data_management_service.rb +2 -0
- data/tasks/doctask.rake +1 -1
- data/test/adcenter_client_test.rb +2 -1
- data/test/administration_service_test.rb +2 -2
- data/test/customer_management_service_test.rb +2 -2
- data/test/report_service_test.rb +16 -6
- metadata +54 -35
- data/lib/SecureDataManagementServiceDriver.rb +0 -51
- data/lib/SecureDataManagementServiceMappingRegistry.rb +0 -380
- data/lib/defaultDriver.rb +0 -67
@@ -0,0 +1,419 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
module AdCenterWrapper
|
4
|
+
|
5
|
+
|
6
|
+
# {http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOflong
|
7
|
+
class ArrayOflong < ::Array
|
8
|
+
end
|
9
|
+
|
10
|
+
# {http://schemas.microsoft.com/2003/10/Serialization/Arrays}ArrayOfstring
|
11
|
+
class ArrayOfstring < ::Array
|
12
|
+
end
|
13
|
+
|
14
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Entities}ArrayOfInvoiceInfo
|
15
|
+
class ArrayOfInvoiceInfo < ::Array
|
16
|
+
end
|
17
|
+
|
18
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Entities}InvoiceInfo
|
19
|
+
# accountId - SOAP::SOAPLong
|
20
|
+
# accountName - SOAP::SOAPString
|
21
|
+
# accountNumber - SOAP::SOAPString
|
22
|
+
# amount - SOAP::SOAPDouble
|
23
|
+
# currencyCode - SOAP::SOAPString
|
24
|
+
# invoiceDate - SOAP::SOAPDateTime
|
25
|
+
# invoiceId - SOAP::SOAPLong
|
26
|
+
class InvoiceInfo
|
27
|
+
attr_accessor :accountId
|
28
|
+
attr_accessor :accountName
|
29
|
+
attr_accessor :accountNumber
|
30
|
+
attr_accessor :amount
|
31
|
+
attr_accessor :currencyCode
|
32
|
+
attr_accessor :invoiceDate
|
33
|
+
attr_accessor :invoiceId
|
34
|
+
|
35
|
+
def initialize(accountId = nil, accountName = nil, accountNumber = nil, amount = nil, currencyCode = nil, invoiceDate = nil, invoiceId = nil)
|
36
|
+
@accountId = accountId
|
37
|
+
@accountName = accountName
|
38
|
+
@accountNumber = accountNumber
|
39
|
+
@amount = amount
|
40
|
+
@currencyCode = currencyCode
|
41
|
+
@invoiceDate = invoiceDate
|
42
|
+
@invoiceId = invoiceId
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Entities}ArrayOfInvoice
|
47
|
+
class ArrayOfInvoice < ::Array
|
48
|
+
end
|
49
|
+
|
50
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Entities}Invoice
|
51
|
+
# data - SOAP::SOAPBase64
|
52
|
+
# id - SOAP::SOAPLong
|
53
|
+
# type - AdCenterWrapper::DataType
|
54
|
+
class Invoice
|
55
|
+
attr_accessor :data
|
56
|
+
attr_accessor :id
|
57
|
+
attr_accessor :type
|
58
|
+
|
59
|
+
def initialize(data = nil, id = nil, type = nil)
|
60
|
+
@data = data
|
61
|
+
@id = id
|
62
|
+
@type = type
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Entities}InsertionOrder
|
67
|
+
# accountId - SOAP::SOAPLong
|
68
|
+
# balanceAmount - SOAP::SOAPDouble
|
69
|
+
# bookingCountryCode - SOAP::SOAPString
|
70
|
+
# comment - SOAP::SOAPString
|
71
|
+
# endDate - SOAP::SOAPDateTime
|
72
|
+
# insertionOrderId - SOAP::SOAPLong
|
73
|
+
# lastModifiedByUserId - SOAP::SOAPLong
|
74
|
+
# lastModifiedTime - SOAP::SOAPDateTime
|
75
|
+
# notificationThreshold - SOAP::SOAPDouble
|
76
|
+
# referenceId - SOAP::SOAPLong
|
77
|
+
# spendCapAmount - SOAP::SOAPDouble
|
78
|
+
# startDate - SOAP::SOAPDateTime
|
79
|
+
class InsertionOrder
|
80
|
+
attr_accessor :accountId
|
81
|
+
attr_accessor :balanceAmount
|
82
|
+
attr_accessor :bookingCountryCode
|
83
|
+
attr_accessor :comment
|
84
|
+
attr_accessor :endDate
|
85
|
+
attr_accessor :insertionOrderId
|
86
|
+
attr_accessor :lastModifiedByUserId
|
87
|
+
attr_accessor :lastModifiedTime
|
88
|
+
attr_accessor :notificationThreshold
|
89
|
+
attr_accessor :referenceId
|
90
|
+
attr_accessor :spendCapAmount
|
91
|
+
attr_accessor :startDate
|
92
|
+
|
93
|
+
def initialize(accountId = nil, balanceAmount = nil, bookingCountryCode = nil, comment = nil, endDate = nil, insertionOrderId = nil, lastModifiedByUserId = nil, lastModifiedTime = nil, notificationThreshold = nil, referenceId = nil, spendCapAmount = nil, startDate = nil)
|
94
|
+
@accountId = accountId
|
95
|
+
@balanceAmount = balanceAmount
|
96
|
+
@bookingCountryCode = bookingCountryCode
|
97
|
+
@comment = comment
|
98
|
+
@endDate = endDate
|
99
|
+
@insertionOrderId = insertionOrderId
|
100
|
+
@lastModifiedByUserId = lastModifiedByUserId
|
101
|
+
@lastModifiedTime = lastModifiedTime
|
102
|
+
@notificationThreshold = notificationThreshold
|
103
|
+
@referenceId = referenceId
|
104
|
+
@spendCapAmount = spendCapAmount
|
105
|
+
@startDate = startDate
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Entities}ArrayOfInsertionOrder
|
110
|
+
class ArrayOfInsertionOrder < ::Array
|
111
|
+
end
|
112
|
+
|
113
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Exception}ArrayOfOperationError
|
114
|
+
class ArrayOfOperationError < ::Array
|
115
|
+
end
|
116
|
+
|
117
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Exception}OperationError
|
118
|
+
# code - SOAP::SOAPInt
|
119
|
+
# details - SOAP::SOAPString
|
120
|
+
# message - SOAP::SOAPString
|
121
|
+
class OperationError
|
122
|
+
attr_accessor :code
|
123
|
+
attr_accessor :details
|
124
|
+
attr_accessor :message
|
125
|
+
|
126
|
+
def initialize(code = nil, details = nil, message = nil)
|
127
|
+
@code = code
|
128
|
+
@details = details
|
129
|
+
@message = message
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Exception}ArrayOfBatchError
|
134
|
+
class ArrayOfBatchError < ::Array
|
135
|
+
end
|
136
|
+
|
137
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Exception}BatchError
|
138
|
+
# code - SOAP::SOAPInt
|
139
|
+
# details - SOAP::SOAPString
|
140
|
+
# index - SOAP::SOAPInt
|
141
|
+
# message - SOAP::SOAPString
|
142
|
+
class BatchError
|
143
|
+
attr_accessor :code
|
144
|
+
attr_accessor :details
|
145
|
+
attr_accessor :index
|
146
|
+
attr_accessor :message
|
147
|
+
|
148
|
+
def initialize(code = nil, details = nil, index = nil, message = nil)
|
149
|
+
@code = code
|
150
|
+
@details = details
|
151
|
+
@index = index
|
152
|
+
@message = message
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
# {https://adapi.microsoft.com}ApplicationFault
|
157
|
+
# trackingId - SOAP::SOAPString
|
158
|
+
class ApplicationFault
|
159
|
+
attr_accessor :trackingId
|
160
|
+
|
161
|
+
def initialize(trackingId = nil)
|
162
|
+
@trackingId = trackingId
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
167
|
+
# trackingId - SOAP::SOAPString
|
168
|
+
# operationErrors - AdCenterWrapper::ArrayOfOperationError
|
169
|
+
class ApiFault < ::StandardError
|
170
|
+
attr_accessor :trackingId
|
171
|
+
attr_accessor :operationErrors
|
172
|
+
|
173
|
+
def initialize(trackingId = nil, operationErrors = nil)
|
174
|
+
@trackingId = trackingId
|
175
|
+
@operationErrors = operationErrors
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiBatchFault
|
180
|
+
# trackingId - SOAP::SOAPString
|
181
|
+
# operationErrors - AdCenterWrapper::ArrayOfOperationError
|
182
|
+
# batchErrors - AdCenterWrapper::ArrayOfBatchError
|
183
|
+
class ApiBatchFault < ::StandardError
|
184
|
+
attr_accessor :trackingId
|
185
|
+
attr_accessor :operationErrors
|
186
|
+
attr_accessor :batchErrors
|
187
|
+
|
188
|
+
def initialize(trackingId = nil, operationErrors = nil, batchErrors = nil)
|
189
|
+
@trackingId = trackingId
|
190
|
+
@operationErrors = operationErrors
|
191
|
+
@batchErrors = batchErrors
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# {https://adapi.microsoft.com}AdApiFaultDetail
|
196
|
+
# trackingId - SOAP::SOAPString
|
197
|
+
# errors - AdCenterWrapper::ArrayOfAdApiError
|
198
|
+
class AdApiFaultDetail < ::StandardError
|
199
|
+
attr_accessor :trackingId
|
200
|
+
attr_accessor :errors
|
201
|
+
|
202
|
+
def initialize(trackingId = nil, errors = nil)
|
203
|
+
@trackingId = trackingId
|
204
|
+
@errors = errors
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# {https://adapi.microsoft.com}ArrayOfAdApiError
|
209
|
+
class ArrayOfAdApiError < ::Array
|
210
|
+
end
|
211
|
+
|
212
|
+
# {https://adapi.microsoft.com}AdApiError
|
213
|
+
# code - SOAP::SOAPInt
|
214
|
+
# detail - SOAP::SOAPString
|
215
|
+
# errorCode - SOAP::SOAPString
|
216
|
+
# message - SOAP::SOAPString
|
217
|
+
class AdApiError
|
218
|
+
attr_accessor :code
|
219
|
+
attr_accessor :detail
|
220
|
+
attr_accessor :errorCode
|
221
|
+
attr_accessor :message
|
222
|
+
|
223
|
+
def initialize(code = nil, detail = nil, errorCode = nil, message = nil)
|
224
|
+
@code = code
|
225
|
+
@detail = detail
|
226
|
+
@errorCode = errorCode
|
227
|
+
@message = message
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
# {https://adcenter.microsoft.com/api/customermanagement/Entities}DataType
|
232
|
+
class DataType < ::String
|
233
|
+
Pdf = DataType.new("Pdf")
|
234
|
+
Xml = DataType.new("Xml")
|
235
|
+
end
|
236
|
+
|
237
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesInfoRequest
|
238
|
+
# accountIds - AdCenterWrapper::ArrayOflong
|
239
|
+
# startDate - SOAP::SOAPDateTime
|
240
|
+
# endDate - SOAP::SOAPDateTime
|
241
|
+
class GetInvoicesInfoRequest
|
242
|
+
attr_accessor :accountIds
|
243
|
+
attr_accessor :startDate
|
244
|
+
attr_accessor :endDate
|
245
|
+
|
246
|
+
def initialize(accountIds = nil, startDate = nil, endDate = nil)
|
247
|
+
@accountIds = accountIds
|
248
|
+
@startDate = startDate
|
249
|
+
@endDate = endDate
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesInfoResponse
|
254
|
+
# invoicesInfo - AdCenterWrapper::ArrayOfInvoiceInfo
|
255
|
+
class GetInvoicesInfoResponse
|
256
|
+
attr_accessor :invoicesInfo
|
257
|
+
|
258
|
+
def initialize(invoicesInfo = nil)
|
259
|
+
@invoicesInfo = invoicesInfo
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesRequest
|
264
|
+
# invoiceIds - AdCenterWrapper::ArrayOflong
|
265
|
+
# type - AdCenterWrapper::DataType
|
266
|
+
class GetInvoicesRequest
|
267
|
+
attr_accessor :invoiceIds
|
268
|
+
attr_accessor :type
|
269
|
+
|
270
|
+
def initialize(invoiceIds = nil, type = nil)
|
271
|
+
@invoiceIds = invoiceIds
|
272
|
+
@type = type
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesResponse
|
277
|
+
# invoices - AdCenterWrapper::ArrayOfInvoice
|
278
|
+
class GetInvoicesResponse
|
279
|
+
attr_accessor :invoices
|
280
|
+
|
281
|
+
def initialize(invoices = nil)
|
282
|
+
@invoices = invoices
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetDisplayInvoicesRequest
|
287
|
+
# invoiceIds - AdCenterWrapper::ArrayOflong
|
288
|
+
# type - AdCenterWrapper::DataType
|
289
|
+
class GetDisplayInvoicesRequest
|
290
|
+
attr_accessor :invoiceIds
|
291
|
+
attr_accessor :type
|
292
|
+
|
293
|
+
def initialize(invoiceIds = nil, type = nil)
|
294
|
+
@invoiceIds = invoiceIds
|
295
|
+
@type = type
|
296
|
+
end
|
297
|
+
end
|
298
|
+
|
299
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetDisplayInvoicesResponse
|
300
|
+
# invoices - AdCenterWrapper::ArrayOfInvoice
|
301
|
+
class GetDisplayInvoicesResponse
|
302
|
+
attr_accessor :invoices
|
303
|
+
|
304
|
+
def initialize(invoices = nil)
|
305
|
+
@invoices = invoices
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
# {https://adcenter.microsoft.com/api/customerbilling}AddInsertionOrderRequest
|
310
|
+
# insertionOrder - AdCenterWrapper::InsertionOrder
|
311
|
+
class AddInsertionOrderRequest
|
312
|
+
attr_accessor :insertionOrder
|
313
|
+
|
314
|
+
def initialize(insertionOrder = nil)
|
315
|
+
@insertionOrder = insertionOrder
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
319
|
+
# {https://adcenter.microsoft.com/api/customerbilling}AddInsertionOrderResponse
|
320
|
+
# insertionOrderId - SOAP::SOAPLong
|
321
|
+
# createTime - SOAP::SOAPDateTime
|
322
|
+
class AddInsertionOrderResponse
|
323
|
+
attr_accessor :insertionOrderId
|
324
|
+
attr_accessor :createTime
|
325
|
+
|
326
|
+
def initialize(insertionOrderId = nil, createTime = nil)
|
327
|
+
@insertionOrderId = insertionOrderId
|
328
|
+
@createTime = createTime
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
# {https://adcenter.microsoft.com/api/customerbilling}UpdateInsertionOrderRequest
|
333
|
+
# insertionOrder - AdCenterWrapper::InsertionOrder
|
334
|
+
class UpdateInsertionOrderRequest
|
335
|
+
attr_accessor :insertionOrder
|
336
|
+
|
337
|
+
def initialize(insertionOrder = nil)
|
338
|
+
@insertionOrder = insertionOrder
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
# {https://adcenter.microsoft.com/api/customerbilling}UpdateInsertionOrderResponse
|
343
|
+
# lastModifiedTime - SOAP::SOAPDateTime
|
344
|
+
class UpdateInsertionOrderResponse
|
345
|
+
attr_accessor :lastModifiedTime
|
346
|
+
|
347
|
+
def initialize(lastModifiedTime = nil)
|
348
|
+
@lastModifiedTime = lastModifiedTime
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetInsertionOrdersByAccountRequest
|
353
|
+
# accountId - SOAP::SOAPLong
|
354
|
+
# insertionOrderIds - AdCenterWrapper::ArrayOflong
|
355
|
+
class GetInsertionOrdersByAccountRequest
|
356
|
+
attr_accessor :accountId
|
357
|
+
attr_accessor :insertionOrderIds
|
358
|
+
|
359
|
+
def initialize(accountId = nil, insertionOrderIds = nil)
|
360
|
+
@accountId = accountId
|
361
|
+
@insertionOrderIds = insertionOrderIds
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetInsertionOrdersByAccountResponse
|
366
|
+
# insertionOrders - AdCenterWrapper::ArrayOfInsertionOrder
|
367
|
+
class GetInsertionOrdersByAccountResponse
|
368
|
+
attr_accessor :insertionOrders
|
369
|
+
|
370
|
+
def initialize(insertionOrders = nil)
|
371
|
+
@insertionOrders = insertionOrders
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetKOHIOInvoicesRequest
|
376
|
+
# invoiceIds - AdCenterWrapper::ArrayOfstring
|
377
|
+
class GetKOHIOInvoicesRequest
|
378
|
+
attr_accessor :invoiceIds
|
379
|
+
|
380
|
+
def initialize(invoiceIds = nil)
|
381
|
+
@invoiceIds = invoiceIds
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
385
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetKOHIOInvoicesResponse
|
386
|
+
# invoices - AdCenterWrapper::ArrayOfInvoice
|
387
|
+
class GetKOHIOInvoicesResponse
|
388
|
+
attr_accessor :invoices
|
389
|
+
|
390
|
+
def initialize(invoices = nil)
|
391
|
+
@invoices = invoices
|
392
|
+
end
|
393
|
+
end
|
394
|
+
|
395
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetAccountMonthlySpendRequest
|
396
|
+
# accountId - SOAP::SOAPLong
|
397
|
+
# monthYear - SOAP::SOAPDateTime
|
398
|
+
class GetAccountMonthlySpendRequest
|
399
|
+
attr_accessor :accountId
|
400
|
+
attr_accessor :monthYear
|
401
|
+
|
402
|
+
def initialize(accountId = nil, monthYear = nil)
|
403
|
+
@accountId = accountId
|
404
|
+
@monthYear = monthYear
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
# {https://adcenter.microsoft.com/api/customerbilling}GetAccountMonthlySpendResponse
|
409
|
+
# amount - SOAP::SOAPDouble
|
410
|
+
class GetAccountMonthlySpendResponse
|
411
|
+
attr_accessor :amount
|
412
|
+
|
413
|
+
def initialize(amount = nil)
|
414
|
+
@amount = amount
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
|
419
|
+
end
|
@@ -0,0 +1,148 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'CustomerBillingServiceDriver.rb'
|
3
|
+
|
4
|
+
|
5
|
+
module AdCenterWrapper
|
6
|
+
|
7
|
+
endpoint_url = ARGV.shift
|
8
|
+
obj = ICustomerBillingService.new(endpoint_url)
|
9
|
+
|
10
|
+
# run ruby with -d to see SOAP wiredumps.
|
11
|
+
obj.wiredump_dev = STDERR if $DEBUG
|
12
|
+
|
13
|
+
# SYNOPSIS
|
14
|
+
# GetInvoicesInfo(parameters)
|
15
|
+
#
|
16
|
+
# ARGS
|
17
|
+
# parameters GetInvoicesInfoRequest - {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesInfoRequest
|
18
|
+
#
|
19
|
+
# RETURNS
|
20
|
+
# parameters GetInvoicesInfoResponse - {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesInfoResponse
|
21
|
+
#
|
22
|
+
# RAISES
|
23
|
+
# detail ApiBatchFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiBatchFault
|
24
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
25
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
26
|
+
#
|
27
|
+
parameters = nil
|
28
|
+
puts obj.getInvoicesInfo(parameters)
|
29
|
+
|
30
|
+
# SYNOPSIS
|
31
|
+
# GetInvoices(parameters)
|
32
|
+
#
|
33
|
+
# ARGS
|
34
|
+
# parameters GetInvoicesRequest - {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesRequest
|
35
|
+
#
|
36
|
+
# RETURNS
|
37
|
+
# parameters GetInvoicesResponse - {https://adcenter.microsoft.com/api/customerbilling}GetInvoicesResponse
|
38
|
+
#
|
39
|
+
# RAISES
|
40
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
41
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
42
|
+
# detail ApiBatchFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiBatchFault
|
43
|
+
#
|
44
|
+
parameters = nil
|
45
|
+
puts obj.getInvoices(parameters)
|
46
|
+
|
47
|
+
# SYNOPSIS
|
48
|
+
# GetDisplayInvoices(parameters)
|
49
|
+
#
|
50
|
+
# ARGS
|
51
|
+
# parameters GetDisplayInvoicesRequest - {https://adcenter.microsoft.com/api/customerbilling}GetDisplayInvoicesRequest
|
52
|
+
#
|
53
|
+
# RETURNS
|
54
|
+
# parameters GetDisplayInvoicesResponse - {https://adcenter.microsoft.com/api/customerbilling}GetDisplayInvoicesResponse
|
55
|
+
#
|
56
|
+
# RAISES
|
57
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
58
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
59
|
+
# detail ApiBatchFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiBatchFault
|
60
|
+
#
|
61
|
+
parameters = nil
|
62
|
+
puts obj.getDisplayInvoices(parameters)
|
63
|
+
|
64
|
+
# SYNOPSIS
|
65
|
+
# AddInsertionOrder(parameters)
|
66
|
+
#
|
67
|
+
# ARGS
|
68
|
+
# parameters AddInsertionOrderRequest - {https://adcenter.microsoft.com/api/customerbilling}AddInsertionOrderRequest
|
69
|
+
#
|
70
|
+
# RETURNS
|
71
|
+
# parameters AddInsertionOrderResponse - {https://adcenter.microsoft.com/api/customerbilling}AddInsertionOrderResponse
|
72
|
+
#
|
73
|
+
# RAISES
|
74
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
75
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
76
|
+
#
|
77
|
+
parameters = nil
|
78
|
+
puts obj.addInsertionOrder(parameters)
|
79
|
+
|
80
|
+
# SYNOPSIS
|
81
|
+
# UpdateInsertionOrder(parameters)
|
82
|
+
#
|
83
|
+
# ARGS
|
84
|
+
# parameters UpdateInsertionOrderRequest - {https://adcenter.microsoft.com/api/customerbilling}UpdateInsertionOrderRequest
|
85
|
+
#
|
86
|
+
# RETURNS
|
87
|
+
# parameters UpdateInsertionOrderResponse - {https://adcenter.microsoft.com/api/customerbilling}UpdateInsertionOrderResponse
|
88
|
+
#
|
89
|
+
# RAISES
|
90
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
91
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
92
|
+
#
|
93
|
+
parameters = nil
|
94
|
+
puts obj.updateInsertionOrder(parameters)
|
95
|
+
|
96
|
+
# SYNOPSIS
|
97
|
+
# GetInsertionOrdersByAccount(parameters)
|
98
|
+
#
|
99
|
+
# ARGS
|
100
|
+
# parameters GetInsertionOrdersByAccountRequest - {https://adcenter.microsoft.com/api/customerbilling}GetInsertionOrdersByAccountRequest
|
101
|
+
#
|
102
|
+
# RETURNS
|
103
|
+
# parameters GetInsertionOrdersByAccountResponse - {https://adcenter.microsoft.com/api/customerbilling}GetInsertionOrdersByAccountResponse
|
104
|
+
#
|
105
|
+
# RAISES
|
106
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
107
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
108
|
+
#
|
109
|
+
parameters = nil
|
110
|
+
puts obj.getInsertionOrdersByAccount(parameters)
|
111
|
+
|
112
|
+
# SYNOPSIS
|
113
|
+
# GetKOHIOInvoices(parameters)
|
114
|
+
#
|
115
|
+
# ARGS
|
116
|
+
# parameters GetKOHIOInvoicesRequest - {https://adcenter.microsoft.com/api/customerbilling}GetKOHIOInvoicesRequest
|
117
|
+
#
|
118
|
+
# RETURNS
|
119
|
+
# parameters GetKOHIOInvoicesResponse - {https://adcenter.microsoft.com/api/customerbilling}GetKOHIOInvoicesResponse
|
120
|
+
#
|
121
|
+
# RAISES
|
122
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
123
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
124
|
+
# detail ApiBatchFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiBatchFault
|
125
|
+
#
|
126
|
+
parameters = nil
|
127
|
+
puts obj.getKOHIOInvoices(parameters)
|
128
|
+
|
129
|
+
# SYNOPSIS
|
130
|
+
# GetAccountMonthlySpend(parameters)
|
131
|
+
#
|
132
|
+
# ARGS
|
133
|
+
# parameters GetAccountMonthlySpendRequest - {https://adcenter.microsoft.com/api/customerbilling}GetAccountMonthlySpendRequest
|
134
|
+
#
|
135
|
+
# RETURNS
|
136
|
+
# parameters GetAccountMonthlySpendResponse - {https://adcenter.microsoft.com/api/customerbilling}GetAccountMonthlySpendResponse
|
137
|
+
#
|
138
|
+
# RAISES
|
139
|
+
# detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
|
140
|
+
# detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
|
141
|
+
#
|
142
|
+
parameters = nil
|
143
|
+
puts obj.getAccountMonthlySpend(parameters)
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
end
|