adcenter-client 7.0.2 → 7.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/History.txt +6 -0
  2. data/Manifest.txt +5 -16
  3. data/README.txt +14 -10
  4. data/Rakefile.rb +2 -2
  5. data/VERSION +1 -0
  6. data/bin/get_adcenter_account_info.rb +45 -0
  7. data/{bin → devel}/gen_wsdl_drivers.rb +1 -1
  8. data/{bin → devel}/wsdl.yml +0 -0
  9. data/lib/AdministrationServiceDriver.rb +7 -3
  10. data/lib/AdministrationServiceMappingRegistry.rb +27 -23
  11. data/lib/CampaignManagementServiceDriver.rb +90 -86
  12. data/lib/CampaignManagementServiceMappingRegistry.rb +1213 -1209
  13. data/lib/CustomerBillingServiceDriver.rb +12 -8
  14. data/lib/CustomerBillingServiceMappingRegistry.rb +123 -119
  15. data/lib/CustomerManagementServiceDriver.rb +22 -18
  16. data/lib/CustomerManagementServiceMappingRegistry.rb +318 -314
  17. data/lib/ReportingServiceDriver.rb +7 -3
  18. data/lib/ReportingServiceMappingRegistry.rb +926 -922
  19. data/lib/SecureDataManagementServiceDriver.rb +6 -2
  20. data/lib/SecureDataManagementServiceMappingRegistry.rb +62 -58
  21. data/lib/adcenter_client.rb +6 -3
  22. data/lib/adcenter_service.rb +6 -2
  23. data/lib/adcenter_wrapper_entities.rb +8170 -0
  24. data/lib/administration_service.rb +3 -1
  25. data/lib/campaign_management_service.rb +1 -1
  26. data/lib/customer_billing_service.rb +1 -1
  27. data/lib/customer_management_service.rb +1 -1
  28. data/lib/defaultDriver.rb +5 -1
  29. data/lib/defaultMappingRegistry.rb +68 -64
  30. data/lib/notification_management.rb +1 -1
  31. data/lib/reporting_service.rb +1 -1
  32. data/lib/secure_data_management_service.rb +1 -1
  33. data/test/customer_management_service_test.rb +4 -4
  34. data/test/test_helper.rb +1 -0
  35. metadata +19 -27
  36. data/lib/AdministrationService.rb +0 -79
  37. data/lib/AdministrationServiceClient.rb +0 -40
  38. data/lib/CampaignManagementService.rb +0 -3458
  39. data/lib/CampaignManagementServiceClient.rb +0 -1370
  40. data/lib/CustomerBillingService.rb +0 -390
  41. data/lib/CustomerBillingServiceClient.rb +0 -126
  42. data/lib/CustomerManagementService.rb +0 -1284
  43. data/lib/CustomerManagementServiceClient.rb +0 -282
  44. data/lib/NotificationManagementClient.rb +0 -89
  45. data/lib/ReportingService.rb +0 -2121
  46. data/lib/ReportingServiceClient.rb +0 -42
  47. data/lib/SecureDataManagementService.rb +0 -203
  48. data/lib/SecureDataManagementServiceClient.rb +0 -26
  49. data/lib/default.rb +0 -636
@@ -1,7 +1,9 @@
1
- require 'SecureDataManagementService.rb'
1
+ require 'adcenter_wrapper_entities'
2
2
  require 'SecureDataManagementServiceMappingRegistry.rb'
3
3
  require 'soap/rpc/driver'
4
4
 
5
+ module AdCenterWrapper
6
+
5
7
  class ISecureDataManagementService < ::SOAP::RPC::Driver
6
8
  DefaultEndpointUrl = "https://securityservices.adcenterapi.microsoft.com/Api/SecureDataManagement/v7/SecureDataManagementService.svc"
7
9
 
@@ -12,7 +14,7 @@ class ISecureDataManagementService < ::SOAP::RPC::Driver
12
14
  ["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/securedatamanagement", "AddPaymentMethodResponse"]] ],
13
15
  { :request_style => :document, :request_use => :literal,
14
16
  :response_style => :document, :response_use => :literal,
15
- :faults => {"ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/securedatamanagement"}, "AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/securedatamanagement"}} }
17
+ :faults => {"AdCenterWrapper::ApiFaultFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"ApiFaultFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/securedatamanagement"}, "AdCenterWrapper::AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/api/securedatamanagement"}} }
16
18
  ]
17
19
  ]
18
20
 
@@ -45,3 +47,5 @@ private
45
47
  end
46
48
  end
47
49
 
50
+
51
+ end
@@ -1,6 +1,8 @@
1
- require 'SecureDataManagementService.rb'
1
+ require 'adcenter_wrapper_entities'
2
2
  require 'soap/mapping'
3
3
 
4
+ module AdCenterWrapper
5
+
4
6
  module SecureDataManagementServiceMappingRegistry
5
7
  EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
6
8
  LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
@@ -10,10 +12,10 @@ module SecureDataManagementServiceMappingRegistry
10
12
  NsSecuredatamanagement = "https://adcenter.microsoft.com/api/securedatamanagement"
11
13
 
12
14
  EncodedRegistry.register(
13
- :class => PaymentMethod,
15
+ :class => AdCenterWrapper::PaymentMethod,
14
16
  :schema_type => XSD::QName.new(NsEntities, "PaymentMethod"),
15
17
  :schema_element => [
16
- ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
18
+ ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
17
19
  ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
18
20
  ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
19
21
  ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
@@ -21,7 +23,7 @@ module SecureDataManagementServiceMappingRegistry
21
23
  )
22
24
 
23
25
  EncodedRegistry.register(
24
- :class => Address,
26
+ :class => AdCenterWrapper::Address,
25
27
  :schema_type => XSD::QName.new(NsEntities, "Address"),
26
28
  :schema_element => [
27
29
  ["city", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "City")], [0, 1]],
@@ -38,11 +40,11 @@ module SecureDataManagementServiceMappingRegistry
38
40
  )
39
41
 
40
42
  EncodedRegistry.register(
41
- :class => CreditCardPaymentMethod,
43
+ :class => AdCenterWrapper::CreditCardPaymentMethod,
42
44
  :schema_type => XSD::QName.new(NsEntities, "CreditCardPaymentMethod"),
43
45
  :schema_basetype => XSD::QName.new(NsEntities, "PaymentMethod"),
44
46
  :schema_element => [
45
- ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
47
+ ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
46
48
  ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
47
49
  ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
48
50
  ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]],
@@ -52,22 +54,22 @@ module SecureDataManagementServiceMappingRegistry
52
54
  ["middleInitial", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "MiddleInitial")], [0, 1]],
53
55
  ["number", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Number")], [0, 1]],
54
56
  ["securityCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "SecurityCode")], [0, 1]],
55
- ["type", ["CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
57
+ ["type", ["AdCenterWrapper::CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
56
58
  ]
57
59
  )
58
60
 
59
61
  EncodedRegistry.register(
60
- :class => AdApiFaultDetail,
62
+ :class => AdCenterWrapper::AdApiFaultDetail,
61
63
  :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
62
64
  :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
63
65
  :schema_element => [
64
66
  ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
65
- ["errors", ["ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
67
+ ["errors", ["AdCenterWrapper::ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
66
68
  ]
67
69
  )
68
70
 
69
71
  EncodedRegistry.register(
70
- :class => ApplicationFault,
72
+ :class => AdCenterWrapper::ApplicationFault,
71
73
  :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
72
74
  :schema_element => [
73
75
  ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
@@ -75,15 +77,15 @@ module SecureDataManagementServiceMappingRegistry
75
77
  )
76
78
 
77
79
  EncodedRegistry.register(
78
- :class => ArrayOfAdApiError,
80
+ :class => AdCenterWrapper::ArrayOfAdApiError,
79
81
  :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
80
82
  :schema_element => [
81
- ["adApiError", ["AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
83
+ ["adApiError", ["AdCenterWrapper::AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
82
84
  ]
83
85
  )
84
86
 
85
87
  EncodedRegistry.register(
86
- :class => AdApiError,
88
+ :class => AdCenterWrapper::AdApiError,
87
89
  :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
88
90
  :schema_element => [
89
91
  ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
@@ -94,25 +96,25 @@ module SecureDataManagementServiceMappingRegistry
94
96
  )
95
97
 
96
98
  EncodedRegistry.register(
97
- :class => ApiFault,
99
+ :class => AdCenterWrapper::ApiFault,
98
100
  :schema_type => XSD::QName.new(NsC_Exception, "ApiFault"),
99
101
  :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
100
102
  :schema_element => [
101
103
  ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
102
- ["operationErrors", ["ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
104
+ ["operationErrors", ["AdCenterWrapper::ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
103
105
  ]
104
106
  )
105
107
 
106
108
  EncodedRegistry.register(
107
- :class => ArrayOfOperationError,
109
+ :class => AdCenterWrapper::ArrayOfOperationError,
108
110
  :schema_type => XSD::QName.new(NsC_Exception, "ArrayOfOperationError"),
109
111
  :schema_element => [
110
- ["operationError", ["OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
112
+ ["operationError", ["AdCenterWrapper::OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
111
113
  ]
112
114
  )
113
115
 
114
116
  EncodedRegistry.register(
115
- :class => OperationError,
117
+ :class => AdCenterWrapper::OperationError,
116
118
  :schema_type => XSD::QName.new(NsC_Exception, "OperationError"),
117
119
  :schema_element => [
118
120
  ["code", ["SOAP::SOAPInt", XSD::QName.new(NsC_Exception, "Code")], [0, 1]],
@@ -122,15 +124,15 @@ module SecureDataManagementServiceMappingRegistry
122
124
  )
123
125
 
124
126
  EncodedRegistry.register(
125
- :class => CreditCardType,
127
+ :class => AdCenterWrapper::CreditCardType,
126
128
  :schema_type => XSD::QName.new(NsEntities, "CreditCardType")
127
129
  )
128
130
 
129
131
  LiteralRegistry.register(
130
- :class => PaymentMethod,
132
+ :class => AdCenterWrapper::PaymentMethod,
131
133
  :schema_type => XSD::QName.new(NsEntities, "PaymentMethod"),
132
134
  :schema_element => [
133
- ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
135
+ ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
134
136
  ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
135
137
  ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
136
138
  ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
@@ -138,7 +140,7 @@ module SecureDataManagementServiceMappingRegistry
138
140
  )
139
141
 
140
142
  LiteralRegistry.register(
141
- :class => Address,
143
+ :class => AdCenterWrapper::Address,
142
144
  :schema_type => XSD::QName.new(NsEntities, "Address"),
143
145
  :schema_element => [
144
146
  ["city", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "City")], [0, 1]],
@@ -155,11 +157,11 @@ module SecureDataManagementServiceMappingRegistry
155
157
  )
156
158
 
157
159
  LiteralRegistry.register(
158
- :class => CreditCardPaymentMethod,
160
+ :class => AdCenterWrapper::CreditCardPaymentMethod,
159
161
  :schema_type => XSD::QName.new(NsEntities, "CreditCardPaymentMethod"),
160
162
  :schema_basetype => XSD::QName.new(NsEntities, "PaymentMethod"),
161
163
  :schema_element => [
162
- ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
164
+ ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
163
165
  ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
164
166
  ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
165
167
  ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]],
@@ -169,22 +171,22 @@ module SecureDataManagementServiceMappingRegistry
169
171
  ["middleInitial", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "MiddleInitial")], [0, 1]],
170
172
  ["number", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Number")], [0, 1]],
171
173
  ["securityCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "SecurityCode")], [0, 1]],
172
- ["type", ["CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
174
+ ["type", ["AdCenterWrapper::CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
173
175
  ]
174
176
  )
175
177
 
176
178
  LiteralRegistry.register(
177
- :class => AdApiFaultDetail,
179
+ :class => AdCenterWrapper::AdApiFaultDetail,
178
180
  :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
179
181
  :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
180
182
  :schema_element => [
181
183
  ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
182
- ["errors", ["ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
184
+ ["errors", ["AdCenterWrapper::ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
183
185
  ]
184
186
  )
185
187
 
186
188
  LiteralRegistry.register(
187
- :class => ApplicationFault,
189
+ :class => AdCenterWrapper::ApplicationFault,
188
190
  :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
189
191
  :schema_element => [
190
192
  ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
@@ -192,15 +194,15 @@ module SecureDataManagementServiceMappingRegistry
192
194
  )
193
195
 
194
196
  LiteralRegistry.register(
195
- :class => ArrayOfAdApiError,
197
+ :class => AdCenterWrapper::ArrayOfAdApiError,
196
198
  :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
197
199
  :schema_element => [
198
- ["adApiError", ["AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
200
+ ["adApiError", ["AdCenterWrapper::AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
199
201
  ]
200
202
  )
201
203
 
202
204
  LiteralRegistry.register(
203
- :class => AdApiError,
205
+ :class => AdCenterWrapper::AdApiError,
204
206
  :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
205
207
  :schema_element => [
206
208
  ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
@@ -211,25 +213,25 @@ module SecureDataManagementServiceMappingRegistry
211
213
  )
212
214
 
213
215
  LiteralRegistry.register(
214
- :class => ApiFault,
216
+ :class => AdCenterWrapper::ApiFault,
215
217
  :schema_type => XSD::QName.new(NsC_Exception, "ApiFault"),
216
218
  :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
217
219
  :schema_element => [
218
220
  ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
219
- ["operationErrors", ["ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
221
+ ["operationErrors", ["AdCenterWrapper::ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
220
222
  ]
221
223
  )
222
224
 
223
225
  LiteralRegistry.register(
224
- :class => ArrayOfOperationError,
226
+ :class => AdCenterWrapper::ArrayOfOperationError,
225
227
  :schema_type => XSD::QName.new(NsC_Exception, "ArrayOfOperationError"),
226
228
  :schema_element => [
227
- ["operationError", ["OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
229
+ ["operationError", ["AdCenterWrapper::OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
228
230
  ]
229
231
  )
230
232
 
231
233
  LiteralRegistry.register(
232
- :class => OperationError,
234
+ :class => AdCenterWrapper::OperationError,
233
235
  :schema_type => XSD::QName.new(NsC_Exception, "OperationError"),
234
236
  :schema_element => [
235
237
  ["code", ["SOAP::SOAPInt", XSD::QName.new(NsC_Exception, "Code")], [0, 1]],
@@ -239,20 +241,20 @@ module SecureDataManagementServiceMappingRegistry
239
241
  )
240
242
 
241
243
  LiteralRegistry.register(
242
- :class => CreditCardType,
244
+ :class => AdCenterWrapper::CreditCardType,
243
245
  :schema_type => XSD::QName.new(NsEntities, "CreditCardType")
244
246
  )
245
247
 
246
248
  LiteralRegistry.register(
247
- :class => AddPaymentMethodRequest,
249
+ :class => AdCenterWrapper::AddPaymentMethodRequest,
248
250
  :schema_name => XSD::QName.new(NsSecuredatamanagement, "AddPaymentMethodRequest"),
249
251
  :schema_element => [
250
- ["paymentMethod", ["PaymentMethod", XSD::QName.new(NsSecuredatamanagement, "PaymentMethod")], [0, 1]]
252
+ ["paymentMethod", ["AdCenterWrapper::PaymentMethod", XSD::QName.new(NsSecuredatamanagement, "PaymentMethod")], [0, 1]]
251
253
  ]
252
254
  )
253
255
 
254
256
  LiteralRegistry.register(
255
- :class => AddPaymentMethodResponse,
257
+ :class => AdCenterWrapper::AddPaymentMethodResponse,
256
258
  :schema_name => XSD::QName.new(NsSecuredatamanagement, "AddPaymentMethodResponse"),
257
259
  :schema_element => [
258
260
  ["paymentMethodId", ["SOAP::SOAPLong", XSD::QName.new(NsSecuredatamanagement, "PaymentMethodId")], [0, 1]]
@@ -260,10 +262,10 @@ module SecureDataManagementServiceMappingRegistry
260
262
  )
261
263
 
262
264
  LiteralRegistry.register(
263
- :class => PaymentMethod,
265
+ :class => AdCenterWrapper::PaymentMethod,
264
266
  :schema_name => XSD::QName.new(NsEntities, "PaymentMethod"),
265
267
  :schema_element => [
266
- ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
268
+ ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
267
269
  ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
268
270
  ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
269
271
  ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
@@ -271,7 +273,7 @@ module SecureDataManagementServiceMappingRegistry
271
273
  )
272
274
 
273
275
  LiteralRegistry.register(
274
- :class => Address,
276
+ :class => AdCenterWrapper::Address,
275
277
  :schema_name => XSD::QName.new(NsEntities, "Address"),
276
278
  :schema_element => [
277
279
  ["city", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "City")], [0, 1]],
@@ -288,10 +290,10 @@ module SecureDataManagementServiceMappingRegistry
288
290
  )
289
291
 
290
292
  LiteralRegistry.register(
291
- :class => CreditCardPaymentMethod,
293
+ :class => AdCenterWrapper::CreditCardPaymentMethod,
292
294
  :schema_name => XSD::QName.new(NsEntities, "CreditCardPaymentMethod"),
293
295
  :schema_element => [
294
- ["address", ["Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
296
+ ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
295
297
  ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
296
298
  ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
297
299
  ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]],
@@ -301,26 +303,26 @@ module SecureDataManagementServiceMappingRegistry
301
303
  ["middleInitial", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "MiddleInitial")], [0, 1]],
302
304
  ["number", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Number")], [0, 1]],
303
305
  ["securityCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "SecurityCode")], [0, 1]],
304
- ["type", ["CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
306
+ ["type", ["AdCenterWrapper::CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
305
307
  ]
306
308
  )
307
309
 
308
310
  LiteralRegistry.register(
309
- :class => CreditCardType,
311
+ :class => AdCenterWrapper::CreditCardType,
310
312
  :schema_name => XSD::QName.new(NsEntities, "CreditCardType")
311
313
  )
312
314
 
313
315
  LiteralRegistry.register(
314
- :class => AdApiFaultDetail,
316
+ :class => AdCenterWrapper::AdApiFaultDetail,
315
317
  :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
316
318
  :schema_element => [
317
319
  ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
318
- ["errors", ["ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
320
+ ["errors", ["AdCenterWrapper::ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
319
321
  ]
320
322
  )
321
323
 
322
324
  LiteralRegistry.register(
323
- :class => ApplicationFault,
325
+ :class => AdCenterWrapper::ApplicationFault,
324
326
  :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
325
327
  :schema_element => [
326
328
  ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
@@ -328,15 +330,15 @@ module SecureDataManagementServiceMappingRegistry
328
330
  )
329
331
 
330
332
  LiteralRegistry.register(
331
- :class => ArrayOfAdApiError,
333
+ :class => AdCenterWrapper::ArrayOfAdApiError,
332
334
  :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
333
335
  :schema_element => [
334
- ["adApiError", ["AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
336
+ ["adApiError", ["AdCenterWrapper::AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
335
337
  ]
336
338
  )
337
339
 
338
340
  LiteralRegistry.register(
339
- :class => AdApiError,
341
+ :class => AdCenterWrapper::AdApiError,
340
342
  :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
341
343
  :schema_element => [
342
344
  ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
@@ -347,24 +349,24 @@ module SecureDataManagementServiceMappingRegistry
347
349
  )
348
350
 
349
351
  LiteralRegistry.register(
350
- :class => ApiFault,
352
+ :class => AdCenterWrapper::ApiFault,
351
353
  :schema_name => XSD::QName.new(NsC_Exception, "ApiFault"),
352
354
  :schema_element => [
353
355
  ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
354
- ["operationErrors", ["ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
356
+ ["operationErrors", ["AdCenterWrapper::ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
355
357
  ]
356
358
  )
357
359
 
358
360
  LiteralRegistry.register(
359
- :class => ArrayOfOperationError,
361
+ :class => AdCenterWrapper::ArrayOfOperationError,
360
362
  :schema_name => XSD::QName.new(NsC_Exception, "ArrayOfOperationError"),
361
363
  :schema_element => [
362
- ["operationError", ["OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
364
+ ["operationError", ["AdCenterWrapper::OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
363
365
  ]
364
366
  )
365
367
 
366
368
  LiteralRegistry.register(
367
- :class => OperationError,
369
+ :class => AdCenterWrapper::OperationError,
368
370
  :schema_name => XSD::QName.new(NsC_Exception, "OperationError"),
369
371
  :schema_element => [
370
372
  ["code", ["SOAP::SOAPInt", XSD::QName.new(NsC_Exception, "Code")], [0, 1]],
@@ -374,3 +376,5 @@ module SecureDataManagementServiceMappingRegistry
374
376
  )
375
377
 
376
378
  end
379
+
380
+ end
@@ -20,9 +20,9 @@ require 'reporting_service'
20
20
  require 'secure_data_management_service'
21
21
 
22
22
  class AdCenterClient
23
- VERSION = '7.0.2'
23
+ VERSION = '7.0.3'
24
24
  include SOAP::RPC
25
-
25
+
26
26
  attr_accessor :options
27
27
  # connection to administration service
28
28
  attr_accessor :administration_service
@@ -38,6 +38,8 @@ class AdCenterClient
38
38
  attr_accessor :reporting_service
39
39
  # connection to secure data management service
40
40
  attr_accessor :secure_data_management_service
41
+ # reference to wrapper entities
42
+ attr_accessor :entities
41
43
 
42
44
  # endpoints to be used in production
43
45
  ENDPOINTS_PRODUCTION = {
@@ -70,6 +72,7 @@ class AdCenterClient
70
72
  warn credentials.to_yaml
71
73
  end
72
74
  @options = opts
75
+ @entities = AdCenterWrapper
73
76
  @administration_service = AdministrationService.new(select_endpoint('administration_service', sandbox_flag), credentials)
74
77
  @campaign_management_service = CampaignManagementService.new(select_endpoint('campaign_management_service', sandbox_flag), credentials)
75
78
  @customer_billing_service = CustomerBillingService.new(select_endpoint('customer_billing_service', sandbox_flag), credentials)
@@ -100,4 +103,4 @@ class AdCenterClient
100
103
  end
101
104
  end
102
105
 
103
- end
106
+ end
@@ -1,3 +1,4 @@
1
+ require 'adcenter_wrapper_entities'
1
2
  require 'soap/header/simplehandler'
2
3
 
3
4
  class AdCenterService
@@ -7,7 +8,6 @@ class AdCenterService
7
8
  attr_accessor :required_credentials
8
9
 
9
10
  DEFAULT_REQUIRED_CREDENTIALS = %w[ ApplicationToken CustomerAccountId CustomerId UserName Password DeveloperToken ]
10
- DEFAULT_SERVICE_NAMESPACE = %w[ ApplicationToken UserName Password DeveloperToken ]
11
11
 
12
12
  def initialize(endpoint, credentials)
13
13
  @service_namespace = 'https://adcenter.microsoft.com/v7'
@@ -48,7 +48,11 @@ class AdCenterService
48
48
  end
49
49
  # TODO: test generic SOAP error handling
50
50
  else
51
- warn "Generic SOAP fault '#{detail.exceptionDetail.message}' encountered.\n"
51
+ if String == detail.class
52
+ warn fault.to_s
53
+ else
54
+ warn "Generic SOAP fault '#{detail.exceptionDetail.message}' encountered.\n"
55
+ end
52
56
  end
53
57
  end
54
58
  res