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
@@ -2,6 +2,7 @@ require 'adcenter_service'
2
2
  require 'adcenter_wrapper_entities'
3
3
  require 'AdministrationServiceDriver'
4
4
 
5
+ # service wrapper for IAdminstrationService
5
6
  class AdministrationService < AdCenterService
6
7
  def initialize_service(endpoint)
7
8
  @service = AdCenterWrapper::IAdministrationService.new(endpoint)
@@ -1,5 +1,7 @@
1
1
  require 'adcenter_service'
2
2
  require 'CampaignManagementServiceDriver'
3
+
4
+ # service wrapper for ICampaignManagementService
3
5
  class CampaignManagementService < AdCenterService
4
6
  def initialize_service(endpoint)
5
7
  @service = AdCenterWrapper::ICampaignManagementService.new(endpoint)
@@ -1,4 +1,5 @@
1
1
  module Test::Unit::Assertions
2
+ # asserts that we a using sandbox credentials. Useful for destructive testing.
2
3
  def assert_sandboxed(creds)
3
4
  assert_match(/SBX/, creds['UserName'], "you appear to be running with production credentials [#{creds.inspect()}]")
4
5
  end
@@ -1,5 +1,7 @@
1
1
  require 'adcenter_service'
2
2
  require 'CustomerBillingServiceDriver'
3
+
4
+ # service wrapper for ICustomerBillingService
3
5
  class CustomerBillingService < AdCenterService
4
6
  def initialize_service(endpoint)
5
7
  @service = AdCenterWrapper::ICustomerBillingService.new(endpoint)
@@ -1,6 +1,10 @@
1
1
  require 'adcenter_service'
2
2
  require 'CustomerManagementServiceDriver'
3
+
4
+ # service wrapper for ICustomerManagementService
3
5
  class CustomerManagementService < AdCenterService
6
+ # note that ICustomerManagementService requires different namespace and
7
+ # authentication credentials than other services
4
8
  def initialize_service(endpoint)
5
9
  @service_namespace = 'https://adcenter.microsoft.com/api/customermanagement'
6
10
  @required_credentials = %w[ ApplicationToken UserName Password DeveloperToken ]
@@ -1,5 +1,7 @@
1
1
  require 'adcenter_service'
2
2
  require 'defaultDriver'
3
+
4
+ # service wrapper for NotificationManagementSoap
3
5
  class NotificationManagement < AdCenterService
4
6
  def initialize_service(endpoint)
5
7
  @service = AdCenterWrapper::NotificationManagementSoap.new(endpoint)
@@ -0,0 +1,7 @@
1
+ require 'adcenter_service'
2
+ require 'NotificationServiceDriver'
3
+ class NotificationService < AdCenterService
4
+ def initialize_service(endpoint)
5
+ @service = AdCenterWrapper::INotificationService.new(endpoint)
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'adcenter_service'
2
+ require 'OptimizerServiceDriver'
3
+ class OptimizerService < AdCenterService
4
+ def initialize_service(endpoint)
5
+ @service = AdCenterWrapper::IOptimizerService.new(endpoint)
6
+ end
7
+ end
@@ -1,5 +1,7 @@
1
1
  require 'adcenter_service'
2
2
  require 'ReportingServiceDriver'
3
+
4
+ # service wrapper for IReportingService
3
5
  class ReportingService < AdCenterService
4
6
  def initialize_service(endpoint)
5
7
  @service = AdCenterWrapper::IReportingService.new(endpoint)
@@ -1,5 +1,7 @@
1
1
  require 'adcenter_service'
2
2
  require 'SecureDataManagementServiceDriver'
3
+
4
+ # service wrapper for ISecureDataManagementService
3
5
  class SecureDataManagementService < AdCenterService
4
6
  def initialize_service(endpoint)
5
7
  @service = AdCenterWrapper::ISecureDataManagementService.new(endpoint)
@@ -1,4 +1,4 @@
1
- require 'rake/rdoctask'
1
+ require 'rdoc/task'
2
2
 
3
3
  META_FILES = %w[ README.txt TODO ]
4
4
  Rake::RDocTask.new(:doc) do |rd|
@@ -1,9 +1,10 @@
1
+ $: << File.expand_path(File.join(File.dirname(__FILE__), '..'))
2
+
1
3
  require 'test/test_helper'
2
4
  require 'adcenter_client'
3
5
 
4
6
  class AdCenterClientTest < Test::Unit::TestCase
5
7
  def setup
6
- assert_sandboxed(TEST_CREDENTIALS)
7
8
  @acc = AdCenterClient.new(TEST_CREDENTIALS, nil, true)
8
9
  end
9
10
 
@@ -4,8 +4,8 @@ require 'adcenter_client'
4
4
 
5
5
  class AdministrationServiceTest < Test::Unit::TestCase
6
6
  def setup
7
- # $DEBUG = true
8
- # assert_sandboxed(TEST_CREDENTIALS)
7
+ $DEBUG = true
8
+ assert_sandboxed(TEST_CREDENTIALS)
9
9
  @acc = AdCenterClient.new(TEST_CREDENTIALS, nil, false)
10
10
  @svc = @acc.administration_service
11
11
  end
@@ -4,8 +4,8 @@ require 'adcenter_client'
4
4
 
5
5
  class CustomerManagementServiceTest < Test::Unit::TestCase
6
6
  def setup
7
- # $DEBUG = true
8
- # assert_sandboxed(TEST_CREDENTIALS)
7
+ $DEBUG = true
8
+ assert_sandboxed(TEST_CREDENTIALS)
9
9
  @acc = AdCenterClient.new(TEST_CREDENTIALS, nil, false)
10
10
  @svc = @acc.customer_management_service
11
11
  @entities = @acc.entities
@@ -9,26 +9,36 @@ class ReportingServiceTest < Test::Unit::TestCase
9
9
  # assert_sandboxed(TEST_CREDENTIALS)
10
10
  @acc = AdCenterClient.new(TEST_CREDENTIALS, nil, false)
11
11
  @svc = @acc.reporting_service
12
+ @entities = @acc.entities
13
+ @report_request_id = nil
12
14
  end
13
15
 
14
16
  def test_get_keyword_performance_report
15
17
  report_date = Date.today - 1
16
- report_format = "Csv"
18
+ report_format = "Xml"
17
19
  report_language = 'English'
18
20
  report_name = sprintf("Keyword Performance Report - %s", report_date.strftime("%Y-%m-%d"))
19
21
  report_complete_data_only_flag = false
20
22
  report_aggregation = 'Summary'
21
23
  report_columns = %w[ AccountName Keyword KeywordId CurrentMaxCpc Impressions Clicks Spend AveragePosition AverageCpm ]
22
24
  report_filter = nil
23
- report_scope = AccountReportScope.new
24
- report_time = ReportTime.new(report_date, report_date)
25
+ report_scope = @entities::AccountReportScope.new
26
+ report_time = @entities::ReportTime.new(report_date, report_date)
25
27
 
26
- kprr = KeywordPerformanceReportRequest.new(report_format, report_language,
28
+ kprr = @entities::KeywordPerformanceReportRequest.new(report_format, report_language,
27
29
  report_name, report_complete_data_only_flag, report_aggregation,
28
30
  report_columns, report_filter, report_scope, report_time)
29
- report_request = SubmitGenerateReportRequest.new(kprr)
31
+ report_request = @entities::SubmitGenerateReportRequest.new(kprr)
30
32
  res = @svc.submitGenerateReport(report_request)
31
- assert_equal SubmitGenerateReportResponse, res.class
33
+ assert_equal @entities::SubmitGenerateReportResponse, res.class
32
34
  assert res.reportRequestId
35
+ @@report_request_id = res.reportRequestId
36
+ end
37
+
38
+ def test_poll_generate_report_request()
39
+ res = @svc.pollGenerateReport(@entities::PollGenerateReportRequest.new(@@report_request_id))
40
+ assert_equal @entities::PollGenerateReportResponse, res.class
41
+ assert res.reportRequestStatus.status
42
+ assert res.reportRequestStatus.reportDownloadUrl
33
43
  end
34
44
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adcenter-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 33
4
+ hash: 95
5
5
  prerelease:
6
6
  segments:
7
- - 7
7
+ - 8
8
8
  - 0
9
- - 3
10
- version: 7.0.3
9
+ - 0
10
+ version: 8.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh PeckJosh Peck
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-01 00:00:00 -06:00
19
- default_executable:
18
+ date: 2011-11-08 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: soap4r
@@ -72,21 +71,19 @@ dependencies:
72
71
  requirement: &id004 !ruby/object:Gem::Requirement
73
72
  none: false
74
73
  requirements:
75
- - - ">="
74
+ - - ~>
76
75
  - !ruby/object:Gem::Version
77
- hash: 47
76
+ hash: 21
78
77
  segments:
79
78
  - 2
80
- - 8
81
- - 0
82
- version: 2.8.0
79
+ - 11
80
+ version: "2.11"
83
81
  type: :development
84
82
  version_requirements: *id004
85
83
  description: |-
86
- * scm:: (https://github.com/bleechack/adcenter-client)
87
- * rubyforge:: (http://rubyforge.org/projects/adcenter-client/)
88
-
89
84
  == DESCRIPTION:
85
+
86
+ Interface to Microsoft (Yahoo!) adCenter SOAP API
90
87
  email: jmp@joshpeck.orgjmp@joshpeck.org
91
88
  executables:
92
89
  - get_adcenter_account_info.rb
@@ -98,41 +95,61 @@ extra_rdoc_files:
98
95
  - README.txt
99
96
  files:
100
97
  - .autotest
101
- - History.txt
102
- - Manifest.txt
103
- - README.txt
104
- - Rakefile.rb
105
- - TODO
106
- - VERSION
107
98
  - bin/get_adcenter_account_info.rb
108
99
  - devel/gen_wsdl_drivers.rb
109
100
  - devel/wsdl.yml
110
- - lib/AdministrationServiceDriver.rb
111
- - lib/AdministrationServiceMappingRegistry.rb
112
- - lib/CampaignManagementServiceDriver.rb
113
- - lib/CampaignManagementServiceMappingRegistry.rb
114
- - lib/CustomerBillingServiceDriver.rb
115
- - lib/CustomerBillingServiceMappingRegistry.rb
116
- - lib/CustomerManagementServiceDriver.rb
117
- - lib/CustomerManagementServiceMappingRegistry.rb
118
- - lib/ReportingServiceDriver.rb
119
- - lib/ReportingServiceMappingRegistry.rb
120
- - lib/SecureDataManagementServiceDriver.rb
121
- - lib/SecureDataManagementServiceMappingRegistry.rb
101
+ - History.txt
102
+ - lib/ad_intelligence_service.rb
122
103
  - lib/adcenter_client.rb
123
104
  - lib/adcenter_service.rb
124
105
  - lib/adcenter_wrapper_entities.rb
106
+ - lib/AdIntelligenceService.rb
107
+ - lib/AdIntelligenceServiceClient.rb
108
+ - lib/AdIntelligenceServiceDriver.rb
109
+ - lib/AdIntelligenceServiceMappingRegistry.rb
125
110
  - lib/administration_service.rb
111
+ - lib/AdministrationService.rb
112
+ - lib/AdministrationServiceClient.rb
113
+ - lib/AdministrationServiceDriver.rb
114
+ - lib/AdministrationServiceMappingRegistry.rb
126
115
  - lib/campaign_management_service.rb
116
+ - lib/CampaignManagementService.rb
117
+ - lib/CampaignManagementServiceClient.rb
118
+ - lib/CampaignManagementServiceDriver.rb
119
+ - lib/CampaignManagementServiceMappingRegistry.rb
127
120
  - lib/custom_assertions.rb
128
121
  - lib/custom_exceptions.rb
129
122
  - lib/customer_billing_service.rb
130
123
  - lib/customer_management_service.rb
131
- - lib/defaultDriver.rb
124
+ - lib/CustomerBillingService.rb
125
+ - lib/CustomerBillingServiceClient.rb
126
+ - lib/CustomerBillingServiceDriver.rb
127
+ - lib/CustomerBillingServiceMappingRegistry.rb
128
+ - lib/CustomerManagementService.rb
129
+ - lib/CustomerManagementServiceClient.rb
130
+ - lib/CustomerManagementServiceDriver.rb
131
+ - lib/CustomerManagementServiceMappingRegistry.rb
132
132
  - lib/defaultMappingRegistry.rb
133
133
  - lib/notification_management.rb
134
+ - lib/notification_service.rb
135
+ - lib/NotificationService.rb
136
+ - lib/NotificationServiceClient.rb
137
+ - lib/NotificationServiceDriver.rb
138
+ - lib/NotificationServiceMappingRegistry.rb
139
+ - lib/optimizer_service.rb
140
+ - lib/OptimizerService.rb
141
+ - lib/OptimizerServiceClient.rb
142
+ - lib/OptimizerServiceDriver.rb
143
+ - lib/OptimizerServiceMappingRegistry.rb
134
144
  - lib/reporting_service.rb
145
+ - lib/ReportingService.rb
146
+ - lib/ReportingServiceClient.rb
147
+ - lib/ReportingServiceDriver.rb
148
+ - lib/ReportingServiceMappingRegistry.rb
135
149
  - lib/secure_data_management_service.rb
150
+ - Manifest.txt
151
+ - Rakefile.rb
152
+ - README.txt
136
153
  - tasks/doctask.rake
137
154
  - tasks/testtask.rake
138
155
  - test/adcenter_client_test.rb
@@ -141,7 +158,9 @@ files:
141
158
  - test/report_service_test.rb
142
159
  - test/test_credentials.yml-sample
143
160
  - test/test_helper.rb
144
- has_rdoc: true
161
+ - TODO
162
+ - VERSION
163
+ - .gemtest
145
164
  homepage: http://bleechack.github.com/adcenter-client/
146
165
  licenses: []
147
166
 
@@ -172,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
191
  requirements: []
173
192
 
174
193
  rubyforge_project: adcenter-client
175
- rubygems_version: 1.4.2
194
+ rubygems_version: 1.8.8
176
195
  signing_key:
177
196
  specification_version: 3
178
197
  summary: SOAP client for MSN adCenter
@@ -1,51 +0,0 @@
1
- require 'adcenter_wrapper_entities'
2
- require 'SecureDataManagementServiceMappingRegistry.rb'
3
- require 'soap/rpc/driver'
4
-
5
- module AdCenterWrapper
6
-
7
- class ISecureDataManagementService < ::SOAP::RPC::Driver
8
- DefaultEndpointUrl = "https://securityservices.adcenterapi.microsoft.com/Api/SecureDataManagement/v7/SecureDataManagementService.svc"
9
-
10
- Methods = [
11
- [ "AddPaymentMethod",
12
- "addPaymentMethod",
13
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/securedatamanagement", "AddPaymentMethodRequest"]],
14
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/api/securedatamanagement", "AddPaymentMethodResponse"]] ],
15
- { :request_style => :document, :request_use => :literal,
16
- :response_style => :document, :response_use => :literal,
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"}} }
18
- ]
19
- ]
20
-
21
- def initialize(endpoint_url = nil)
22
- endpoint_url ||= DefaultEndpointUrl
23
- super(endpoint_url, nil)
24
- self.mapping_registry = SecureDataManagementServiceMappingRegistry::EncodedRegistry
25
- self.literal_mapping_registry = SecureDataManagementServiceMappingRegistry::LiteralRegistry
26
- init_methods
27
- end
28
-
29
- private
30
-
31
- def init_methods
32
- Methods.each do |definitions|
33
- opt = definitions.last
34
- if opt[:request_style] == :document
35
- add_document_operation(*definitions)
36
- else
37
- add_rpc_operation(*definitions)
38
- qname = definitions[0]
39
- name = definitions[2]
40
- if qname.name != name and qname.name.capitalize == name.capitalize
41
- ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
42
- __send__(name, *arg)
43
- end
44
- end
45
- end
46
- end
47
- end
48
- end
49
-
50
-
51
- end
@@ -1,380 +0,0 @@
1
- require 'adcenter_wrapper_entities'
2
- require 'soap/mapping'
3
-
4
- module AdCenterWrapper
5
-
6
- module SecureDataManagementServiceMappingRegistry
7
- EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
8
- LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
9
- NsAdapiMicrosoftCom = "https://adapi.microsoft.com"
10
- NsC_Exception = "https://adcenter.microsoft.com/api/customermanagement/Exception"
11
- NsEntities = "https://adcenter.microsoft.com/api/customermanagement/Entities"
12
- NsSecuredatamanagement = "https://adcenter.microsoft.com/api/securedatamanagement"
13
-
14
- EncodedRegistry.register(
15
- :class => AdCenterWrapper::PaymentMethod,
16
- :schema_type => XSD::QName.new(NsEntities, "PaymentMethod"),
17
- :schema_element => [
18
- ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
19
- ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
20
- ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
21
- ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
22
- ]
23
- )
24
-
25
- EncodedRegistry.register(
26
- :class => AdCenterWrapper::Address,
27
- :schema_type => XSD::QName.new(NsEntities, "Address"),
28
- :schema_element => [
29
- ["city", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "City")], [0, 1]],
30
- ["countryCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "CountryCode")], [0, 1]],
31
- ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
32
- ["line1", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line1")], [0, 1]],
33
- ["line2", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line2")], [0, 1]],
34
- ["line3", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line3")], [0, 1]],
35
- ["line4", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line4")], [0, 1]],
36
- ["postalCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "PostalCode")], [0, 1]],
37
- ["stateOrProvince", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "StateOrProvince")], [0, 1]],
38
- ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
39
- ]
40
- )
41
-
42
- EncodedRegistry.register(
43
- :class => AdCenterWrapper::CreditCardPaymentMethod,
44
- :schema_type => XSD::QName.new(NsEntities, "CreditCardPaymentMethod"),
45
- :schema_basetype => XSD::QName.new(NsEntities, "PaymentMethod"),
46
- :schema_element => [
47
- ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
48
- ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
49
- ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
50
- ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]],
51
- ["expirationDate", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "ExpirationDate")], [0, 1]],
52
- ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "FirstName")], [0, 1]],
53
- ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "LastName")], [0, 1]],
54
- ["middleInitial", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "MiddleInitial")], [0, 1]],
55
- ["number", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Number")], [0, 1]],
56
- ["securityCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "SecurityCode")], [0, 1]],
57
- ["type", ["AdCenterWrapper::CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
58
- ]
59
- )
60
-
61
- EncodedRegistry.register(
62
- :class => AdCenterWrapper::AdApiFaultDetail,
63
- :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
64
- :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
65
- :schema_element => [
66
- ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
67
- ["errors", ["AdCenterWrapper::ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
68
- ]
69
- )
70
-
71
- EncodedRegistry.register(
72
- :class => AdCenterWrapper::ApplicationFault,
73
- :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
74
- :schema_element => [
75
- ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
76
- ]
77
- )
78
-
79
- EncodedRegistry.register(
80
- :class => AdCenterWrapper::ArrayOfAdApiError,
81
- :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
82
- :schema_element => [
83
- ["adApiError", ["AdCenterWrapper::AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
84
- ]
85
- )
86
-
87
- EncodedRegistry.register(
88
- :class => AdCenterWrapper::AdApiError,
89
- :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
90
- :schema_element => [
91
- ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
92
- ["detail", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Detail")], [0, 1]],
93
- ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "ErrorCode")], [0, 1]],
94
- ["message", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Message")], [0, 1]]
95
- ]
96
- )
97
-
98
- EncodedRegistry.register(
99
- :class => AdCenterWrapper::ApiFault,
100
- :schema_type => XSD::QName.new(NsC_Exception, "ApiFault"),
101
- :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
102
- :schema_element => [
103
- ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
104
- ["operationErrors", ["AdCenterWrapper::ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
105
- ]
106
- )
107
-
108
- EncodedRegistry.register(
109
- :class => AdCenterWrapper::ArrayOfOperationError,
110
- :schema_type => XSD::QName.new(NsC_Exception, "ArrayOfOperationError"),
111
- :schema_element => [
112
- ["operationError", ["AdCenterWrapper::OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
113
- ]
114
- )
115
-
116
- EncodedRegistry.register(
117
- :class => AdCenterWrapper::OperationError,
118
- :schema_type => XSD::QName.new(NsC_Exception, "OperationError"),
119
- :schema_element => [
120
- ["code", ["SOAP::SOAPInt", XSD::QName.new(NsC_Exception, "Code")], [0, 1]],
121
- ["details", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Details")], [0, 1]],
122
- ["message", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Message")], [0, 1]]
123
- ]
124
- )
125
-
126
- EncodedRegistry.register(
127
- :class => AdCenterWrapper::CreditCardType,
128
- :schema_type => XSD::QName.new(NsEntities, "CreditCardType")
129
- )
130
-
131
- LiteralRegistry.register(
132
- :class => AdCenterWrapper::PaymentMethod,
133
- :schema_type => XSD::QName.new(NsEntities, "PaymentMethod"),
134
- :schema_element => [
135
- ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
136
- ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
137
- ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
138
- ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
139
- ]
140
- )
141
-
142
- LiteralRegistry.register(
143
- :class => AdCenterWrapper::Address,
144
- :schema_type => XSD::QName.new(NsEntities, "Address"),
145
- :schema_element => [
146
- ["city", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "City")], [0, 1]],
147
- ["countryCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "CountryCode")], [0, 1]],
148
- ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
149
- ["line1", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line1")], [0, 1]],
150
- ["line2", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line2")], [0, 1]],
151
- ["line3", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line3")], [0, 1]],
152
- ["line4", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line4")], [0, 1]],
153
- ["postalCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "PostalCode")], [0, 1]],
154
- ["stateOrProvince", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "StateOrProvince")], [0, 1]],
155
- ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
156
- ]
157
- )
158
-
159
- LiteralRegistry.register(
160
- :class => AdCenterWrapper::CreditCardPaymentMethod,
161
- :schema_type => XSD::QName.new(NsEntities, "CreditCardPaymentMethod"),
162
- :schema_basetype => XSD::QName.new(NsEntities, "PaymentMethod"),
163
- :schema_element => [
164
- ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
165
- ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
166
- ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
167
- ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]],
168
- ["expirationDate", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "ExpirationDate")], [0, 1]],
169
- ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "FirstName")], [0, 1]],
170
- ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "LastName")], [0, 1]],
171
- ["middleInitial", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "MiddleInitial")], [0, 1]],
172
- ["number", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Number")], [0, 1]],
173
- ["securityCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "SecurityCode")], [0, 1]],
174
- ["type", ["AdCenterWrapper::CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
175
- ]
176
- )
177
-
178
- LiteralRegistry.register(
179
- :class => AdCenterWrapper::AdApiFaultDetail,
180
- :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
181
- :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
182
- :schema_element => [
183
- ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
184
- ["errors", ["AdCenterWrapper::ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
185
- ]
186
- )
187
-
188
- LiteralRegistry.register(
189
- :class => AdCenterWrapper::ApplicationFault,
190
- :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
191
- :schema_element => [
192
- ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
193
- ]
194
- )
195
-
196
- LiteralRegistry.register(
197
- :class => AdCenterWrapper::ArrayOfAdApiError,
198
- :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
199
- :schema_element => [
200
- ["adApiError", ["AdCenterWrapper::AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
201
- ]
202
- )
203
-
204
- LiteralRegistry.register(
205
- :class => AdCenterWrapper::AdApiError,
206
- :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
207
- :schema_element => [
208
- ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
209
- ["detail", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Detail")], [0, 1]],
210
- ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "ErrorCode")], [0, 1]],
211
- ["message", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Message")], [0, 1]]
212
- ]
213
- )
214
-
215
- LiteralRegistry.register(
216
- :class => AdCenterWrapper::ApiFault,
217
- :schema_type => XSD::QName.new(NsC_Exception, "ApiFault"),
218
- :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
219
- :schema_element => [
220
- ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
221
- ["operationErrors", ["AdCenterWrapper::ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
222
- ]
223
- )
224
-
225
- LiteralRegistry.register(
226
- :class => AdCenterWrapper::ArrayOfOperationError,
227
- :schema_type => XSD::QName.new(NsC_Exception, "ArrayOfOperationError"),
228
- :schema_element => [
229
- ["operationError", ["AdCenterWrapper::OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
230
- ]
231
- )
232
-
233
- LiteralRegistry.register(
234
- :class => AdCenterWrapper::OperationError,
235
- :schema_type => XSD::QName.new(NsC_Exception, "OperationError"),
236
- :schema_element => [
237
- ["code", ["SOAP::SOAPInt", XSD::QName.new(NsC_Exception, "Code")], [0, 1]],
238
- ["details", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Details")], [0, 1]],
239
- ["message", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Message")], [0, 1]]
240
- ]
241
- )
242
-
243
- LiteralRegistry.register(
244
- :class => AdCenterWrapper::CreditCardType,
245
- :schema_type => XSD::QName.new(NsEntities, "CreditCardType")
246
- )
247
-
248
- LiteralRegistry.register(
249
- :class => AdCenterWrapper::AddPaymentMethodRequest,
250
- :schema_name => XSD::QName.new(NsSecuredatamanagement, "AddPaymentMethodRequest"),
251
- :schema_element => [
252
- ["paymentMethod", ["AdCenterWrapper::PaymentMethod", XSD::QName.new(NsSecuredatamanagement, "PaymentMethod")], [0, 1]]
253
- ]
254
- )
255
-
256
- LiteralRegistry.register(
257
- :class => AdCenterWrapper::AddPaymentMethodResponse,
258
- :schema_name => XSD::QName.new(NsSecuredatamanagement, "AddPaymentMethodResponse"),
259
- :schema_element => [
260
- ["paymentMethodId", ["SOAP::SOAPLong", XSD::QName.new(NsSecuredatamanagement, "PaymentMethodId")], [0, 1]]
261
- ]
262
- )
263
-
264
- LiteralRegistry.register(
265
- :class => AdCenterWrapper::PaymentMethod,
266
- :schema_name => XSD::QName.new(NsEntities, "PaymentMethod"),
267
- :schema_element => [
268
- ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
269
- ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
270
- ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
271
- ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
272
- ]
273
- )
274
-
275
- LiteralRegistry.register(
276
- :class => AdCenterWrapper::Address,
277
- :schema_name => XSD::QName.new(NsEntities, "Address"),
278
- :schema_element => [
279
- ["city", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "City")], [0, 1]],
280
- ["countryCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "CountryCode")], [0, 1]],
281
- ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
282
- ["line1", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line1")], [0, 1]],
283
- ["line2", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line2")], [0, 1]],
284
- ["line3", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line3")], [0, 1]],
285
- ["line4", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Line4")], [0, 1]],
286
- ["postalCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "PostalCode")], [0, 1]],
287
- ["stateOrProvince", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "StateOrProvince")], [0, 1]],
288
- ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]]
289
- ]
290
- )
291
-
292
- LiteralRegistry.register(
293
- :class => AdCenterWrapper::CreditCardPaymentMethod,
294
- :schema_name => XSD::QName.new(NsEntities, "CreditCardPaymentMethod"),
295
- :schema_element => [
296
- ["address", ["AdCenterWrapper::Address", XSD::QName.new(NsEntities, "Address")], [0, 1]],
297
- ["customerId", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "CustomerId")], [0, 1]],
298
- ["id", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "Id")], [0, 1]],
299
- ["timeStamp", ["SOAP::SOAPBase64", XSD::QName.new(NsEntities, "TimeStamp")], [0, 1]],
300
- ["expirationDate", ["SOAP::SOAPLong", XSD::QName.new(NsEntities, "ExpirationDate")], [0, 1]],
301
- ["firstName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "FirstName")], [0, 1]],
302
- ["lastName", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "LastName")], [0, 1]],
303
- ["middleInitial", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "MiddleInitial")], [0, 1]],
304
- ["number", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "Number")], [0, 1]],
305
- ["securityCode", ["SOAP::SOAPString", XSD::QName.new(NsEntities, "SecurityCode")], [0, 1]],
306
- ["type", ["AdCenterWrapper::CreditCardType", XSD::QName.new(NsEntities, "Type")], [0, 1]]
307
- ]
308
- )
309
-
310
- LiteralRegistry.register(
311
- :class => AdCenterWrapper::CreditCardType,
312
- :schema_name => XSD::QName.new(NsEntities, "CreditCardType")
313
- )
314
-
315
- LiteralRegistry.register(
316
- :class => AdCenterWrapper::AdApiFaultDetail,
317
- :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
318
- :schema_element => [
319
- ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
320
- ["errors", ["AdCenterWrapper::ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
321
- ]
322
- )
323
-
324
- LiteralRegistry.register(
325
- :class => AdCenterWrapper::ApplicationFault,
326
- :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
327
- :schema_element => [
328
- ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
329
- ]
330
- )
331
-
332
- LiteralRegistry.register(
333
- :class => AdCenterWrapper::ArrayOfAdApiError,
334
- :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
335
- :schema_element => [
336
- ["adApiError", ["AdCenterWrapper::AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
337
- ]
338
- )
339
-
340
- LiteralRegistry.register(
341
- :class => AdCenterWrapper::AdApiError,
342
- :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
343
- :schema_element => [
344
- ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
345
- ["detail", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Detail")], [0, 1]],
346
- ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "ErrorCode")], [0, 1]],
347
- ["message", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Message")], [0, 1]]
348
- ]
349
- )
350
-
351
- LiteralRegistry.register(
352
- :class => AdCenterWrapper::ApiFault,
353
- :schema_name => XSD::QName.new(NsC_Exception, "ApiFault"),
354
- :schema_element => [
355
- ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
356
- ["operationErrors", ["AdCenterWrapper::ArrayOfOperationError", XSD::QName.new(NsC_Exception, "OperationErrors")], [0, 1]]
357
- ]
358
- )
359
-
360
- LiteralRegistry.register(
361
- :class => AdCenterWrapper::ArrayOfOperationError,
362
- :schema_name => XSD::QName.new(NsC_Exception, "ArrayOfOperationError"),
363
- :schema_element => [
364
- ["operationError", ["AdCenterWrapper::OperationError[]", XSD::QName.new(NsC_Exception, "OperationError")], [0, nil]]
365
- ]
366
- )
367
-
368
- LiteralRegistry.register(
369
- :class => AdCenterWrapper::OperationError,
370
- :schema_name => XSD::QName.new(NsC_Exception, "OperationError"),
371
- :schema_element => [
372
- ["code", ["SOAP::SOAPInt", XSD::QName.new(NsC_Exception, "Code")], [0, 1]],
373
- ["details", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Details")], [0, 1]],
374
- ["message", ["SOAP::SOAPString", XSD::QName.new(NsC_Exception, "Message")], [0, 1]]
375
- ]
376
- )
377
-
378
- end
379
-
380
- end