adcenter-client 7.0.3 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/.gemtest +0 -0
  2. data/History.txt +6 -0
  3. data/Manifest.txt +41 -19
  4. data/README.txt +1 -1
  5. data/Rakefile.rb +2 -2
  6. data/VERSION +1 -1
  7. data/devel/gen_wsdl_drivers.rb +1 -1
  8. data/devel/wsdl.yml +16 -13
  9. data/lib/AdIntelligenceService.rb +787 -0
  10. data/lib/AdIntelligenceServiceClient.rb +160 -0
  11. data/lib/AdIntelligenceServiceDriver.rb +115 -0
  12. data/lib/AdIntelligenceServiceMappingRegistry.rb +1378 -0
  13. data/lib/AdministrationService.rb +85 -0
  14. data/lib/AdministrationServiceClient.rb +46 -0
  15. data/lib/AdministrationServiceDriver.rb +8 -8
  16. data/lib/AdministrationServiceMappingRegistry.rb +8 -7
  17. data/lib/CampaignManagementService.rb +3413 -0
  18. data/lib/CampaignManagementServiceClient.rb +1330 -0
  19. data/lib/CampaignManagementServiceDriver.rb +335 -359
  20. data/lib/CampaignManagementServiceMappingRegistry.rb +2288 -2259
  21. data/lib/CustomerBillingService.rb +419 -0
  22. data/lib/CustomerBillingServiceClient.rb +148 -0
  23. data/lib/CustomerBillingServiceDriver.rb +17 -9
  24. data/lib/CustomerBillingServiceMappingRegistry.rb +50 -32
  25. data/lib/CustomerManagementService.rb +1502 -0
  26. data/lib/CustomerManagementServiceClient.rb +368 -0
  27. data/lib/CustomerManagementServiceDriver.rb +59 -19
  28. data/lib/CustomerManagementServiceMappingRegistry.rb +373 -145
  29. data/lib/NotificationService.rb +427 -0
  30. data/lib/NotificationServiceClient.rb +48 -0
  31. data/lib/NotificationServiceDriver.rb +59 -0
  32. data/lib/NotificationServiceMappingRegistry.rb +756 -0
  33. data/lib/OptimizerService.rb +265 -0
  34. data/lib/OptimizerServiceClient.rb +48 -0
  35. data/lib/OptimizerServiceDriver.rb +59 -0
  36. data/lib/OptimizerServiceMappingRegistry.rb +469 -0
  37. data/lib/ReportingService.rb +2376 -0
  38. data/lib/ReportingServiceClient.rb +48 -0
  39. data/lib/ReportingServiceDriver.rb +8 -8
  40. data/lib/ReportingServiceMappingRegistry.rb +1718 -1476
  41. data/lib/ad_intelligence_service.rb +9 -0
  42. data/lib/adcenter_client.rb +30 -23
  43. data/lib/adcenter_service.rb +15 -1
  44. data/lib/adcenter_wrapper_entities.rb +8179 -8164
  45. data/lib/administration_service.rb +1 -0
  46. data/lib/campaign_management_service.rb +2 -0
  47. data/lib/custom_assertions.rb +1 -0
  48. data/lib/customer_billing_service.rb +2 -0
  49. data/lib/customer_management_service.rb +4 -0
  50. data/lib/notification_management.rb +2 -0
  51. data/lib/notification_service.rb +7 -0
  52. data/lib/optimizer_service.rb +7 -0
  53. data/lib/reporting_service.rb +2 -0
  54. data/lib/secure_data_management_service.rb +2 -0
  55. data/tasks/doctask.rake +1 -1
  56. data/test/adcenter_client_test.rb +2 -1
  57. data/test/administration_service_test.rb +2 -2
  58. data/test/customer_management_service_test.rb +2 -2
  59. data/test/report_service_test.rb +16 -6
  60. metadata +54 -35
  61. data/lib/SecureDataManagementServiceDriver.rb +0 -51
  62. data/lib/SecureDataManagementServiceMappingRegistry.rb +0 -380
  63. data/lib/defaultDriver.rb +0 -67
@@ -0,0 +1,427 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdCenterWrapper
4
+
5
+
6
+ # {https://adcenter.microsoft.com/api/notifications/Entities}ArrayOfNotification
7
+ class ArrayOfNotification < ::Array
8
+ end
9
+
10
+ # {https://adcenter.microsoft.com/api/notifications/Entities}Notification
11
+ # notificationId - SOAP::SOAPLong
12
+ # notificationDate - SOAP::SOAPDateTime
13
+ # notificationType - (any)
14
+ class Notification
15
+ attr_accessor :notificationId
16
+ attr_accessor :notificationDate
17
+ attr_accessor :notificationType
18
+
19
+ def initialize(notificationId = nil, notificationDate = nil, notificationType = nil)
20
+ @notificationId = notificationId
21
+ @notificationDate = notificationDate
22
+ @notificationType = notificationType
23
+ end
24
+ end
25
+
26
+ # {https://adcenter.microsoft.com/api/notifications/Entities}AccountNotification
27
+ # notificationId - SOAP::SOAPLong
28
+ # notificationDate - SOAP::SOAPDateTime
29
+ # notificationType - (any)
30
+ # accountId - SOAP::SOAPLong
31
+ # accountNumber - SOAP::SOAPString
32
+ class AccountNotification < Notification
33
+ attr_accessor :notificationId
34
+ attr_accessor :notificationDate
35
+ attr_accessor :notificationType
36
+ attr_accessor :accountId
37
+ attr_accessor :accountNumber
38
+
39
+ def initialize(notificationId = nil, notificationDate = nil, notificationType = nil, accountId = nil, accountNumber = nil)
40
+ @notificationId = notificationId
41
+ @notificationDate = notificationDate
42
+ @notificationType = notificationType
43
+ @accountId = accountId
44
+ @accountNumber = accountNumber
45
+ end
46
+ end
47
+
48
+ # {https://adcenter.microsoft.com/api/notifications/Entities}CreditCardPendingExpirationNotification
49
+ # notificationId - SOAP::SOAPLong
50
+ # notificationDate - SOAP::SOAPDateTime
51
+ # notificationType - (any)
52
+ # accountId - SOAP::SOAPLong
53
+ # accountNumber - SOAP::SOAPString
54
+ # cardType - SOAP::SOAPString
55
+ # lastFourDigits - SOAP::SOAPString
56
+ # accountName - SOAP::SOAPString
57
+ class CreditCardPendingExpirationNotification < AccountNotification
58
+ attr_accessor :notificationId
59
+ attr_accessor :notificationDate
60
+ attr_accessor :notificationType
61
+ attr_accessor :accountId
62
+ attr_accessor :accountNumber
63
+ attr_accessor :cardType
64
+ attr_accessor :lastFourDigits
65
+ attr_accessor :accountName
66
+
67
+ def initialize(notificationId = nil, notificationDate = nil, notificationType = nil, accountId = nil, accountNumber = nil, cardType = nil, lastFourDigits = nil, accountName = nil)
68
+ @notificationId = notificationId
69
+ @notificationDate = notificationDate
70
+ @notificationType = notificationType
71
+ @accountId = accountId
72
+ @accountNumber = accountNumber
73
+ @cardType = cardType
74
+ @lastFourDigits = lastFourDigits
75
+ @accountName = accountName
76
+ end
77
+ end
78
+
79
+ # {https://adcenter.microsoft.com/api/notifications/Entities}ExpiredCreditCardNotification
80
+ # notificationId - SOAP::SOAPLong
81
+ # notificationDate - SOAP::SOAPDateTime
82
+ # notificationType - (any)
83
+ # accountId - SOAP::SOAPLong
84
+ # accountNumber - SOAP::SOAPString
85
+ # cardType - SOAP::SOAPString
86
+ # lastFourDigits - SOAP::SOAPString
87
+ # accountName - SOAP::SOAPString
88
+ class ExpiredCreditCardNotification < AccountNotification
89
+ attr_accessor :notificationId
90
+ attr_accessor :notificationDate
91
+ attr_accessor :notificationType
92
+ attr_accessor :accountId
93
+ attr_accessor :accountNumber
94
+ attr_accessor :cardType
95
+ attr_accessor :lastFourDigits
96
+ attr_accessor :accountName
97
+
98
+ def initialize(notificationId = nil, notificationDate = nil, notificationType = nil, accountId = nil, accountNumber = nil, cardType = nil, lastFourDigits = nil, accountName = nil)
99
+ @notificationId = notificationId
100
+ @notificationDate = notificationDate
101
+ @notificationType = notificationType
102
+ @accountId = accountId
103
+ @accountNumber = accountNumber
104
+ @cardType = cardType
105
+ @lastFourDigits = lastFourDigits
106
+ @accountName = accountName
107
+ end
108
+ end
109
+
110
+ # {https://adcenter.microsoft.com/api/notifications/Entities}ExpiredInsertionOrderNotification
111
+ # notificationId - SOAP::SOAPLong
112
+ # notificationDate - SOAP::SOAPDateTime
113
+ # notificationType - (any)
114
+ # accountId - SOAP::SOAPLong
115
+ # accountNumber - SOAP::SOAPString
116
+ # billToCustomerName - SOAP::SOAPString
117
+ class ExpiredInsertionOrderNotification < AccountNotification
118
+ attr_accessor :notificationId
119
+ attr_accessor :notificationDate
120
+ attr_accessor :notificationType
121
+ attr_accessor :accountId
122
+ attr_accessor :accountNumber
123
+ attr_accessor :billToCustomerName
124
+
125
+ def initialize(notificationId = nil, notificationDate = nil, notificationType = nil, accountId = nil, accountNumber = nil, billToCustomerName = nil)
126
+ @notificationId = notificationId
127
+ @notificationDate = notificationDate
128
+ @notificationType = notificationType
129
+ @accountId = accountId
130
+ @accountNumber = accountNumber
131
+ @billToCustomerName = billToCustomerName
132
+ end
133
+ end
134
+
135
+ # {https://adcenter.microsoft.com/api/notifications/Entities}BudgetDepletedNotification
136
+ # notificationId - SOAP::SOAPLong
137
+ # notificationDate - SOAP::SOAPDateTime
138
+ # notificationType - (any)
139
+ # accountId - SOAP::SOAPLong
140
+ # accountNumber - SOAP::SOAPString
141
+ # affectedCampaigns - AdCenterWrapper::ArrayOfBudgetDepletedCampaignInfo
142
+ # accountName - SOAP::SOAPString
143
+ class BudgetDepletedNotification < AccountNotification
144
+ attr_accessor :notificationId
145
+ attr_accessor :notificationDate
146
+ attr_accessor :notificationType
147
+ attr_accessor :accountId
148
+ attr_accessor :accountNumber
149
+ attr_accessor :affectedCampaigns
150
+ attr_accessor :accountName
151
+
152
+ def initialize(notificationId = nil, notificationDate = nil, notificationType = nil, accountId = nil, accountNumber = nil, affectedCampaigns = nil, accountName = nil)
153
+ @notificationId = notificationId
154
+ @notificationDate = notificationDate
155
+ @notificationType = notificationType
156
+ @accountId = accountId
157
+ @accountNumber = accountNumber
158
+ @affectedCampaigns = affectedCampaigns
159
+ @accountName = accountName
160
+ end
161
+ end
162
+
163
+ # {https://adcenter.microsoft.com/api/notifications/Entities}EditorialRejectionNotification
164
+ # notificationId - SOAP::SOAPLong
165
+ # notificationDate - SOAP::SOAPDateTime
166
+ # notificationType - (any)
167
+ # accountId - SOAP::SOAPLong
168
+ # accountNumber - SOAP::SOAPString
169
+ class EditorialRejectionNotification < AccountNotification
170
+ attr_accessor :notificationId
171
+ attr_accessor :notificationDate
172
+ attr_accessor :notificationType
173
+ attr_accessor :accountId
174
+ attr_accessor :accountNumber
175
+
176
+ def initialize(notificationId = nil, notificationDate = nil, notificationType = nil, accountId = nil, accountNumber = nil)
177
+ @notificationId = notificationId
178
+ @notificationDate = notificationDate
179
+ @notificationType = notificationType
180
+ @accountId = accountId
181
+ @accountNumber = accountNumber
182
+ end
183
+ end
184
+
185
+ # {https://adcenter.microsoft.com/api/notifications/Entities}LowBudgetBalanceNotification
186
+ # notificationId - SOAP::SOAPLong
187
+ # notificationDate - SOAP::SOAPDateTime
188
+ # notificationType - (any)
189
+ # accountId - SOAP::SOAPLong
190
+ # accountNumber - SOAP::SOAPString
191
+ # customerId - SOAP::SOAPLong
192
+ # affectedCampaigns - AdCenterWrapper::ArrayOfLowBudgetBalanceCampaignInfo
193
+ # accountName - SOAP::SOAPString
194
+ class LowBudgetBalanceNotification < AccountNotification
195
+ attr_accessor :notificationId
196
+ attr_accessor :notificationDate
197
+ attr_accessor :notificationType
198
+ attr_accessor :accountId
199
+ attr_accessor :accountNumber
200
+ attr_accessor :customerId
201
+ attr_accessor :affectedCampaigns
202
+ attr_accessor :accountName
203
+
204
+ def initialize(notificationId = nil, notificationDate = nil, notificationType = nil, accountId = nil, accountNumber = nil, customerId = nil, affectedCampaigns = nil, accountName = nil)
205
+ @notificationId = notificationId
206
+ @notificationDate = notificationDate
207
+ @notificationType = notificationType
208
+ @accountId = accountId
209
+ @accountNumber = accountNumber
210
+ @customerId = customerId
211
+ @affectedCampaigns = affectedCampaigns
212
+ @accountName = accountName
213
+ end
214
+ end
215
+
216
+ # {https://adcenter.microsoft.com/api/notifications/Entities}ArrayOfBudgetDepletedCampaignInfo
217
+ class ArrayOfBudgetDepletedCampaignInfo < ::Array
218
+ end
219
+
220
+ # {https://adcenter.microsoft.com/api/notifications/Entities}CampaignInfo
221
+ # campaignId - SOAP::SOAPLong
222
+ # campaignName - SOAP::SOAPString
223
+ # budgetAmount - SOAP::SOAPDouble
224
+ class CampaignInfo
225
+ attr_accessor :campaignId
226
+ attr_accessor :campaignName
227
+ attr_accessor :budgetAmount
228
+
229
+ def initialize(campaignId = nil, campaignName = nil, budgetAmount = nil)
230
+ @campaignId = campaignId
231
+ @campaignName = campaignName
232
+ @budgetAmount = budgetAmount
233
+ end
234
+ end
235
+
236
+ # {https://adcenter.microsoft.com/api/notifications/Entities}BudgetDepletedCampaignInfo
237
+ # campaignId - SOAP::SOAPLong
238
+ # campaignName - SOAP::SOAPString
239
+ # budgetAmount - SOAP::SOAPDouble
240
+ # currencyCode - SOAP::SOAPString
241
+ # budgetDepletedDate - SOAP::SOAPDateTime
242
+ class BudgetDepletedCampaignInfo < CampaignInfo
243
+ attr_accessor :campaignId
244
+ attr_accessor :campaignName
245
+ attr_accessor :budgetAmount
246
+ attr_accessor :currencyCode
247
+ attr_accessor :budgetDepletedDate
248
+
249
+ def initialize(campaignId = nil, campaignName = nil, budgetAmount = nil, currencyCode = nil, budgetDepletedDate = nil)
250
+ @campaignId = campaignId
251
+ @campaignName = campaignName
252
+ @budgetAmount = budgetAmount
253
+ @currencyCode = currencyCode
254
+ @budgetDepletedDate = budgetDepletedDate
255
+ end
256
+ end
257
+
258
+ # {https://adcenter.microsoft.com/api/notifications/Entities}LowBudgetBalanceCampaignInfo
259
+ # campaignId - SOAP::SOAPLong
260
+ # campaignName - SOAP::SOAPString
261
+ # budgetAmount - SOAP::SOAPDouble
262
+ # estimatedBudgetBalance - SOAP::SOAPDouble
263
+ # estimatedImpressions - SOAP::SOAPInt
264
+ class LowBudgetBalanceCampaignInfo < CampaignInfo
265
+ attr_accessor :campaignId
266
+ attr_accessor :campaignName
267
+ attr_accessor :budgetAmount
268
+ attr_accessor :estimatedBudgetBalance
269
+ attr_accessor :estimatedImpressions
270
+
271
+ def initialize(campaignId = nil, campaignName = nil, budgetAmount = nil, estimatedBudgetBalance = nil, estimatedImpressions = nil)
272
+ @campaignId = campaignId
273
+ @campaignName = campaignName
274
+ @budgetAmount = budgetAmount
275
+ @estimatedBudgetBalance = estimatedBudgetBalance
276
+ @estimatedImpressions = estimatedImpressions
277
+ end
278
+ end
279
+
280
+ # {https://adcenter.microsoft.com/api/notifications/Entities}ArrayOfLowBudgetBalanceCampaignInfo
281
+ class ArrayOfLowBudgetBalanceCampaignInfo < ::Array
282
+ end
283
+
284
+ # {https://adapi.microsoft.com}ApplicationFault
285
+ # trackingId - SOAP::SOAPString
286
+ class ApplicationFault
287
+ attr_accessor :trackingId
288
+
289
+ def initialize(trackingId = nil)
290
+ @trackingId = trackingId
291
+ end
292
+ end
293
+
294
+ # {https://adapi.microsoft.com}AdApiFaultDetail
295
+ # trackingId - SOAP::SOAPString
296
+ # errors - AdCenterWrapper::ArrayOfAdApiError
297
+ class AdApiFaultDetail < ::StandardError
298
+ attr_accessor :trackingId
299
+ attr_accessor :errors
300
+
301
+ def initialize(trackingId = nil, errors = nil)
302
+ @trackingId = trackingId
303
+ @errors = errors
304
+ end
305
+ end
306
+
307
+ # {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
308
+ # trackingId - SOAP::SOAPString
309
+ # operationErrors - AdCenterWrapper::ArrayOfOperationError
310
+ class ApiFault < ::StandardError
311
+ attr_accessor :trackingId
312
+ attr_accessor :operationErrors
313
+
314
+ def initialize(trackingId = nil, operationErrors = nil)
315
+ @trackingId = trackingId
316
+ @operationErrors = operationErrors
317
+ end
318
+ end
319
+
320
+ # {https://adapi.microsoft.com}ArrayOfAdApiError
321
+ class ArrayOfAdApiError < ::Array
322
+ end
323
+
324
+ # {https://adapi.microsoft.com}AdApiError
325
+ # code - SOAP::SOAPInt
326
+ # detail - SOAP::SOAPString
327
+ # errorCode - SOAP::SOAPString
328
+ # message - SOAP::SOAPString
329
+ class AdApiError
330
+ attr_accessor :code
331
+ attr_accessor :detail
332
+ attr_accessor :errorCode
333
+ attr_accessor :message
334
+
335
+ def initialize(code = nil, detail = nil, errorCode = nil, message = nil)
336
+ @code = code
337
+ @detail = detail
338
+ @errorCode = errorCode
339
+ @message = message
340
+ end
341
+ end
342
+
343
+ # {https://adcenter.microsoft.com/api/customermanagement/Exception}ArrayOfOperationError
344
+ class ArrayOfOperationError < ::Array
345
+ end
346
+
347
+ # {https://adcenter.microsoft.com/api/customermanagement/Exception}OperationError
348
+ # code - SOAP::SOAPInt
349
+ # details - SOAP::SOAPString
350
+ # message - SOAP::SOAPString
351
+ class OperationError
352
+ attr_accessor :code
353
+ attr_accessor :details
354
+ attr_accessor :message
355
+
356
+ def initialize(code = nil, details = nil, message = nil)
357
+ @code = code
358
+ @details = details
359
+ @message = message
360
+ end
361
+ end
362
+
363
+ # {https://adcenter.microsoft.com/api/notifications/Entities}NotificationType
364
+ # contains list of NotificationType::*
365
+ class NotificationType < ::Array
366
+ CreditCardPendingExpiration = "CreditCardPendingExpiration"
367
+ DepletedBudget = "DepletedBudget"
368
+ EditorialRejection = "EditorialRejection"
369
+ ExpiredCreditCard = "ExpiredCreditCard"
370
+ ExpiredInsertionOrder = "ExpiredInsertionOrder"
371
+ LowBudgetBalance = "LowBudgetBalance"
372
+ end
373
+
374
+ # {https://adcenter.microsoft.com/api/notifications}GetNotificationsRequest
375
+ # notificationTypes - (any)
376
+ # topN - SOAP::SOAPInt
377
+ class GetNotificationsRequest
378
+ attr_accessor :notificationTypes
379
+ attr_accessor :topN
380
+
381
+ def initialize(notificationTypes = nil, topN = nil)
382
+ @notificationTypes = notificationTypes
383
+ @topN = topN
384
+ end
385
+ end
386
+
387
+ # {https://adcenter.microsoft.com/api/notifications}GetArchivedNotificationsRequest
388
+ # notificationTypes - (any)
389
+ # topN - SOAP::SOAPInt
390
+ # startDate - SOAP::SOAPDateTime
391
+ # endDate - SOAP::SOAPDateTime
392
+ class GetArchivedNotificationsRequest
393
+ attr_accessor :notificationTypes
394
+ attr_accessor :topN
395
+ attr_accessor :startDate
396
+ attr_accessor :endDate
397
+
398
+ def initialize(notificationTypes = nil, topN = nil, startDate = nil, endDate = nil)
399
+ @notificationTypes = notificationTypes
400
+ @topN = topN
401
+ @startDate = startDate
402
+ @endDate = endDate
403
+ end
404
+ end
405
+
406
+ # {https://adcenter.microsoft.com/api/notifications/Entities}GetNotificationsResponse
407
+ # notifications - AdCenterWrapper::ArrayOfNotification
408
+ class GetNotificationsResponse
409
+ attr_accessor :notifications
410
+
411
+ def initialize(notifications = nil)
412
+ @notifications = notifications
413
+ end
414
+ end
415
+
416
+ # {https://adcenter.microsoft.com/api/notifications/Entities}GetArchivedNotificationsResponse
417
+ # notifications - AdCenterWrapper::ArrayOfNotification
418
+ class GetArchivedNotificationsResponse
419
+ attr_accessor :notifications
420
+
421
+ def initialize(notifications = nil)
422
+ @notifications = notifications
423
+ end
424
+ end
425
+
426
+
427
+ end
@@ -0,0 +1,48 @@
1
+ #!/usr/bin/env ruby
2
+ require 'NotificationServiceDriver.rb'
3
+
4
+
5
+ module AdCenterWrapper
6
+
7
+ endpoint_url = ARGV.shift
8
+ obj = INotificationService.new(endpoint_url)
9
+
10
+ # run ruby with -d to see SOAP wiredumps.
11
+ obj.wiredump_dev = STDERR if $DEBUG
12
+
13
+ # SYNOPSIS
14
+ # GetNotifications(parameters)
15
+ #
16
+ # ARGS
17
+ # parameters GetNotificationsRequest - {https://adcenter.microsoft.com/api/notifications}GetNotificationsRequest
18
+ #
19
+ # RETURNS
20
+ # parameters GetNotificationsResponse - {https://adcenter.microsoft.com/api/notifications/Entities}GetNotificationsResponse
21
+ #
22
+ # RAISES
23
+ # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
24
+ # detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
25
+ #
26
+ parameters = nil
27
+ puts obj.getNotifications(parameters)
28
+
29
+ # SYNOPSIS
30
+ # GetArchivedNotifications(parameters)
31
+ #
32
+ # ARGS
33
+ # parameters GetArchivedNotificationsRequest - {https://adcenter.microsoft.com/api/notifications}GetArchivedNotificationsRequest
34
+ #
35
+ # RETURNS
36
+ # parameters GetArchivedNotificationsResponse - {https://adcenter.microsoft.com/api/notifications/Entities}GetArchivedNotificationsResponse
37
+ #
38
+ # RAISES
39
+ # detail ApiFault - {https://adcenter.microsoft.com/api/customermanagement/Exception}ApiFault
40
+ # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
41
+ #
42
+ parameters = nil
43
+ puts obj.getArchivedNotifications(parameters)
44
+
45
+
46
+
47
+
48
+ end