adcenter-client 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.autotest +23 -0
  2. data/History.txt +6 -0
  3. data/Manifest.txt +55 -0
  4. data/README.txt +78 -0
  5. data/Rakefile.rb +31 -0
  6. data/TODO +12 -0
  7. data/bin/gen_wsdl_drivers.rb +26 -0
  8. data/bin/wsdl.yml +16 -0
  9. data/lib/AdministrationService.rb +79 -0
  10. data/lib/AdministrationServiceClient.rb +40 -0
  11. data/lib/AdministrationServiceDriver.rb +55 -0
  12. data/lib/AdministrationServiceMappingRegistry.rb +148 -0
  13. data/lib/CampaignManagementService.rb +3458 -0
  14. data/lib/CampaignManagementServiceClient.rb +1370 -0
  15. data/lib/CampaignManagementServiceDriver.rb +719 -0
  16. data/lib/CampaignManagementServiceMappingRegistry.rb +5107 -0
  17. data/lib/CustomerBillingService.rb +390 -0
  18. data/lib/CustomerBillingServiceClient.rb +126 -0
  19. data/lib/CustomerBillingServiceDriver.rb +95 -0
  20. data/lib/CustomerBillingServiceMappingRegistry.rb +676 -0
  21. data/lib/CustomerManagementService.rb +1284 -0
  22. data/lib/CustomerManagementServiceClient.rb +282 -0
  23. data/lib/CustomerManagementServiceDriver.rb +175 -0
  24. data/lib/CustomerManagementServiceMappingRegistry.rb +1471 -0
  25. data/lib/NotificationManagementClient.rb +89 -0
  26. data/lib/ReportingService.rb +2121 -0
  27. data/lib/ReportingServiceClient.rb +42 -0
  28. data/lib/ReportingServiceDriver.rb +55 -0
  29. data/lib/ReportingServiceMappingRegistry.rb +3164 -0
  30. data/lib/SecureDataManagementService.rb +203 -0
  31. data/lib/SecureDataManagementServiceClient.rb +26 -0
  32. data/lib/SecureDataManagementServiceDriver.rb +47 -0
  33. data/lib/SecureDataManagementServiceMappingRegistry.rb +376 -0
  34. data/lib/adcenter_client.rb +103 -0
  35. data/lib/adcenter_service.rb +70 -0
  36. data/lib/administration_service.rb +7 -0
  37. data/lib/campaign_management_service.rb +7 -0
  38. data/lib/custom_assertions.rb +5 -0
  39. data/lib/custom_exceptions.rb +1 -0
  40. data/lib/customer_billing_service.rb +7 -0
  41. data/lib/customer_management_service.rb +9 -0
  42. data/lib/default.rb +636 -0
  43. data/lib/defaultDriver.rb +63 -0
  44. data/lib/defaultMappingRegistry.rb +525 -0
  45. data/lib/notification_management.rb +7 -0
  46. data/lib/reporting_service.rb +7 -0
  47. data/lib/secure_data_management_service.rb +7 -0
  48. data/tasks/doctask.rake +9 -0
  49. data/tasks/testtask.rake +13 -0
  50. data/test/adcenter_client_test.rb +13 -0
  51. data/test/administration_service_test.rb +19 -0
  52. data/test/customer_management_service_test.rb +20 -0
  53. data/test/report_service_test.rb +34 -0
  54. data/test/test_credentials.yml-sample +7 -0
  55. data/test/test_helper.rb +8 -0
  56. metadata +188 -0
data/.autotest ADDED
@@ -0,0 +1,23 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'autotest/restart'
4
+
5
+ # Autotest.add_hook :initialize do |at|
6
+ # at.extra_files << "../some/external/dependency.rb"
7
+ #
8
+ # at.libs << ":../some/external"
9
+ #
10
+ # at.add_exception 'vendor'
11
+ #
12
+ # at.add_mapping(/dependency.rb/) do |f, _|
13
+ # at.files_matching(/test_.*rb$/)
14
+ # end
15
+ #
16
+ # %w(TestA TestB).each do |klass|
17
+ # at.extra_class_map[klass] = "test/test_misc.rb"
18
+ # end
19
+ # end
20
+
21
+ # Autotest.add_hook :run_command do |at|
22
+ # system "rake build"
23
+ # end
data/History.txt ADDED
@@ -0,0 +1,6 @@
1
+ === 7.0.0 / 2011-01-23
2
+
3
+ * Initial Release
4
+
5
+ * seems to work for adCenter API v7
6
+
data/Manifest.txt ADDED
@@ -0,0 +1,55 @@
1
+ .autotest
2
+ History.txt
3
+ Manifest.txt
4
+ README.txt
5
+ Rakefile.rb
6
+ TODO
7
+ bin/gen_wsdl_drivers.rb
8
+ bin/wsdl.yml
9
+ lib/AdministrationService.rb
10
+ lib/AdministrationServiceClient.rb
11
+ lib/AdministrationServiceDriver.rb
12
+ lib/AdministrationServiceMappingRegistry.rb
13
+ lib/CampaignManagementService.rb
14
+ lib/CampaignManagementServiceClient.rb
15
+ lib/CampaignManagementServiceDriver.rb
16
+ lib/CampaignManagementServiceMappingRegistry.rb
17
+ lib/CustomerBillingService.rb
18
+ lib/CustomerBillingServiceClient.rb
19
+ lib/CustomerBillingServiceDriver.rb
20
+ lib/CustomerBillingServiceMappingRegistry.rb
21
+ lib/CustomerManagementService.rb
22
+ lib/CustomerManagementServiceClient.rb
23
+ lib/CustomerManagementServiceDriver.rb
24
+ lib/CustomerManagementServiceMappingRegistry.rb
25
+ lib/NotificationManagementClient.rb
26
+ lib/ReportingService.rb
27
+ lib/ReportingServiceClient.rb
28
+ lib/ReportingServiceDriver.rb
29
+ lib/ReportingServiceMappingRegistry.rb
30
+ lib/SecureDataManagementService.rb
31
+ lib/SecureDataManagementServiceClient.rb
32
+ lib/SecureDataManagementServiceDriver.rb
33
+ lib/SecureDataManagementServiceMappingRegistry.rb
34
+ lib/adcenter_client.rb
35
+ lib/adcenter_service.rb
36
+ lib/administration_service.rb
37
+ lib/campaign_management_service.rb
38
+ lib/custom_assertions.rb
39
+ lib/custom_exceptions.rb
40
+ lib/customer_billing_service.rb
41
+ lib/customer_management_service.rb
42
+ lib/default.rb
43
+ lib/defaultDriver.rb
44
+ lib/defaultMappingRegistry.rb
45
+ lib/notification_management.rb
46
+ lib/reporting_service.rb
47
+ lib/secure_data_management_service.rb
48
+ tasks/doctask.rake
49
+ tasks/testtask.rake
50
+ test/adcenter_client_test.rb
51
+ test/administration_service_test.rb
52
+ test/customer_management_service_test.rb
53
+ test/report_service_test.rb
54
+ test/test_credentials.yml-sample
55
+ test/test_helper.rb
data/README.txt ADDED
@@ -0,0 +1,78 @@
1
+ = adcenter_client
2
+
3
+ * scm:: (https://github.com/bleechack/adcenter-client)
4
+ * rubyforge:: (http://rubyforge.org/projects/adcenter-client/)
5
+
6
+ == DESCRIPTION:
7
+
8
+ Interface to Microsoft (Yahoo!) adCenter SOAP API
9
+
10
+ == FEATURES/PROBLEMS:
11
+
12
+ * adds a wrapper around MSN adCenter SOAP API for ruby use
13
+ * entities are created directly from the WSDL using wsdl2ruby.rb
14
+
15
+ == SYNOPSIS:
16
+
17
+ creds = {
18
+ "ApplicationToken" => TESTDATA
19
+ "CustomerAccountId" => TESTDATA
20
+ "CustomerId" => TESTDATA
21
+ "DeveloperToken" => TESTDATA
22
+ "UserName" => TESTDATA
23
+ "Password" => TESTDATA
24
+ }
25
+ @acc = AdCenterClient.new(creds, nil)
26
+ req = GetAssignedQuotaRequest.new
27
+ res = @acc.administration_service.getAssignedQuota(req)
28
+
29
+ == REQUIREMENTS:
30
+
31
+ * soap4r
32
+
33
+ == INSTALL:
34
+
35
+ $ sudo gem install adcenter-client
36
+
37
+ == DEVELOPERS:
38
+
39
+ After checking out the source, run:
40
+
41
+ $ rake adcenter-client
42
+
43
+ This task will install any missing dependencies, run the tests/specs,
44
+ and generate the RDoc.
45
+
46
+ == AUTHOR:
47
+
48
+ {Josh Peck}[jmp@joshpeck.org]
49
+
50
+ == LICENSE:
51
+
52
+ (The BSD License)
53
+
54
+ Copyright (c) 2011, JOSH PECK
55
+ All rights reserved.
56
+
57
+ Redistribution and use in source and binary forms, with or without
58
+ modification, are permitted provided that the following conditions are met:
59
+
60
+ * Redistributions of source code must retain the above copyright notice,
61
+ this list of conditions and the following disclaimer.
62
+ * Redistributions in binary form must reproduce the above copyright
63
+ notice, this list of conditions and the following disclaimer in the
64
+ documentation and/or other materials provided with the distribution.
65
+ * Neither the name of the <ORGANIZATION> nor the names of its contributors
66
+ may be used to endorse or promote products derived from this software
67
+ without specific prior written permission.
68
+
69
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
70
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
71
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
72
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
73
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
74
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
75
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
76
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
77
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
78
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/Rakefile.rb ADDED
@@ -0,0 +1,31 @@
1
+ # -*- ruby -*-
2
+ load 'tasks/testtask.rake'
3
+ load 'tasks/doctask.rake'
4
+
5
+ require 'rubygems'
6
+ require 'hoe'
7
+ require 'rubyforge'
8
+
9
+ # Hoe.plugin :compiler
10
+ # Hoe.plugin :gem_prelude_sucks
11
+ # Hoe.plugin :inline
12
+ # Hoe.plugin :inline
13
+ # Hoe.plugin :racc
14
+ Hoe.plugin :rubyforge
15
+ # Hoe.plugin :rubyforge
16
+
17
+ Hoe.spec 'adcenter-client' do |h|
18
+ h.summary = "SOAP client for MSN adCenter"
19
+ h.email = "jmp@joshpeck.org"
20
+ h.author = "Josh Peck"
21
+ h.url = "http://bleechack.github.com/adcenter-client/"
22
+ h.description = h.paragraphs_of('README.txt', 1..2).join("\n\n")
23
+ h.changes = h.paragraphs_of('History.txt', 2..3).join("\n\n")
24
+ h.remote_rdoc_dir = 'adcenter-client'
25
+ h.developer('Josh Peck', 'jmp@joshpeck.org')
26
+ h.rubyforge_name = 'adcenter-client'
27
+ h.extra_deps << 'soap4r'
28
+ h.extra_deps << 'hoe'
29
+ end
30
+
31
+ # vim: syntax=ruby
data/TODO ADDED
@@ -0,0 +1,12 @@
1
+ = TODO
2
+
3
+ == Automated Testing of Services
4
+
5
+ * add sandbox to test suite to permit destructive tests
6
+ * test all AdministrationService operations
7
+ * test all CampaignManagementService operations
8
+ * test all CustomerBillingService operations
9
+ * test all CustomerManagementService operations
10
+ * test all NotificationManagement operations
11
+ * test all ReportingService operations
12
+ * test all SecureDataManagementService operations
@@ -0,0 +1,26 @@
1
+ #! /usr/bin/env ruby
2
+
3
+ require 'optparse'
4
+ require 'yaml'
5
+
6
+ DEFAULT_DESTINATION_DIR = File.expand_path(File.dirname(__FILE__) + '/../lib/')
7
+ DEFAULT_WSDL_FILE = File.expand_path(File.dirname(__FILE__) + '/wsdl.yml')
8
+
9
+ options = {}
10
+ OptionParser.new do |opts|
11
+ opts.banner = "Usage: gen_drivers.rb [options]"
12
+ opts.on("-d", "--destination=DIRECTORY", "destination directory for generated files") do |v|
13
+ options[:destination_dir] = File.expand_path(v)
14
+ end
15
+ opts.on("-w", "--wsdl=FILE", "file containing WSDL endpoints in YAML") do |v|
16
+ options[:wsdl_file] = File.expand_path(v)
17
+ end
18
+ end.parse!
19
+
20
+ destination_dir = options[:destination_dir] ? options[:destination_dir].to_s : DEFAULT_DESTINATION_DIR
21
+ wsdl_file = options[:wsdl_file] ? options[:wsdl_file].to_s : DEFAULT_WSDL_FILE
22
+ wsdls = YAML::load_file(wsdl_file)
23
+ wsdls['production'].each do |service, endpoint|
24
+ puts "Working on #{service} [#{endpoint}]..."
25
+ `mkdir -p #{destination_dir} && cd #{destination_dir} && wsdl2ruby.rb --type client --wsdl '#{endpoint}'`
26
+ end
data/bin/wsdl.yml ADDED
@@ -0,0 +1,16 @@
1
+ ---
2
+ production:
3
+ administration_service: https://adcenterapi.microsoft.com/Api/Advertiser/v7/Administration/AdministrationService.svc?wsdl
4
+ campaign_management_service: https://adcenterapi.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?wsdl
5
+ customer_billing_service: https://sharedservices.adcenterapi.microsoft.com/Api/Billing/v7/CustomerBillingService.svc?wsdl
6
+ customer_management_service: https://sharedservices.adcenterapi.microsoft.com/Api/CustomerManagement/v7/CustomerManagementService.svc?wsdl
7
+ notification_management: https://adcenterapi.microsoft.com/Api/Advertiser/v6/NotificationManagement/NotificationManagement.asmx?wsdl
8
+ reporting_service: https://adcenterapi.microsoft.com/Api/Advertiser/v7/Reporting/ReportingService.svc?wsdl
9
+ secure_data_management_service: https://securityservices.adcenterapi.microsoft.com/Api/SecureDataManagement/v7/SecureDataManagementService.svc?wsdl
10
+ sandbox:
11
+ administration_service: https://sandboxapi.adcenter.microsoft.com/Api/Advertiser/v7/Administration/AdministrationService.svc?wsdl
12
+ campaign_management_service: https://sandboxapi.adcenter.microsoft.com/Api/Advertiser/v7/CampaignManagement/CampaignManagementService.svc?wsdl
13
+ customer_billing_service: https://sharedservices-sbx.adcenterapi.microsoft.com/Api/Billing/v7/CustomerBillingService.svc?wsdl
14
+ customer_management_service: https://sharedservices-sbx.adcenterapi.microsoft.com/Api/CustomerManagement/v7/CustomerManagementService.svc?wsdl
15
+ notification_management: https://sandboxapi.adcenter.microsoft.com/Api/Advertiser/v6/NotificationManagement/NotificationManagement.asmx?wsdl
16
+ secure_data_management_service: https://securityservices-sbx.adcenterapi.microsoft.com/Api/SecureDataManagement/v7/SecureDataManagementService.svc?wsdl
@@ -0,0 +1,79 @@
1
+ require 'xsd/qname'
2
+
3
+ # {https://adapi.microsoft.com}ApplicationFault
4
+ # trackingId - SOAP::SOAPString
5
+ class ApplicationFault
6
+ attr_accessor :trackingId
7
+
8
+ def initialize(trackingId = nil)
9
+ @trackingId = trackingId
10
+ end
11
+ end
12
+
13
+ # {https://adapi.microsoft.com}AdApiFaultDetail
14
+ # trackingId - SOAP::SOAPString
15
+ # errors - ArrayOfAdApiError
16
+ class AdApiFaultDetail < ::StandardError
17
+ attr_accessor :trackingId
18
+ attr_accessor :errors
19
+
20
+ def initialize(trackingId = nil, errors = nil)
21
+ @trackingId = trackingId
22
+ @errors = errors
23
+ end
24
+ end
25
+
26
+ # {https://adapi.microsoft.com}ArrayOfAdApiError
27
+ class ArrayOfAdApiError < ::Array
28
+ end
29
+
30
+ # {https://adapi.microsoft.com}AdApiError
31
+ # code - SOAP::SOAPInt
32
+ # detail - SOAP::SOAPString
33
+ # errorCode - SOAP::SOAPString
34
+ # message - SOAP::SOAPString
35
+ class AdApiError
36
+ attr_accessor :code
37
+ attr_accessor :detail
38
+ attr_accessor :errorCode
39
+ attr_accessor :message
40
+
41
+ def initialize(code = nil, detail = nil, errorCode = nil, message = nil)
42
+ @code = code
43
+ @detail = detail
44
+ @errorCode = errorCode
45
+ @message = message
46
+ end
47
+ end
48
+
49
+ # {https://adcenter.microsoft.com/v7}GetAssignedQuotaRequest
50
+ class GetAssignedQuotaRequest
51
+ def initialize
52
+ end
53
+ end
54
+
55
+ # {https://adcenter.microsoft.com/v7}GetAssignedQuotaResponse
56
+ # assignedQuota - SOAP::SOAPLong
57
+ class GetAssignedQuotaResponse
58
+ attr_accessor :assignedQuota
59
+
60
+ def initialize(assignedQuota = nil)
61
+ @assignedQuota = assignedQuota
62
+ end
63
+ end
64
+
65
+ # {https://adcenter.microsoft.com/v7}GetRemainingQuotaRequest
66
+ class GetRemainingQuotaRequest
67
+ def initialize
68
+ end
69
+ end
70
+
71
+ # {https://adcenter.microsoft.com/v7}GetRemainingQuotaResponse
72
+ # remainingQuota - SOAP::SOAPLong
73
+ class GetRemainingQuotaResponse
74
+ attr_accessor :remainingQuota
75
+
76
+ def initialize(remainingQuota = nil)
77
+ @remainingQuota = remainingQuota
78
+ end
79
+ end
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env ruby
2
+ require 'AdministrationServiceDriver.rb'
3
+
4
+ endpoint_url = ARGV.shift
5
+ obj = IAdministrationService.new(endpoint_url)
6
+
7
+ # run ruby with -d to see SOAP wiredumps.
8
+ obj.wiredump_dev = STDERR if $DEBUG
9
+
10
+ # SYNOPSIS
11
+ # GetAssignedQuota(parameters)
12
+ #
13
+ # ARGS
14
+ # parameters GetAssignedQuotaRequest - {https://adcenter.microsoft.com/v7}GetAssignedQuotaRequest
15
+ #
16
+ # RETURNS
17
+ # parameters GetAssignedQuotaResponse - {https://adcenter.microsoft.com/v7}GetAssignedQuotaResponse
18
+ #
19
+ # RAISES
20
+ # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
21
+ #
22
+ parameters = nil
23
+ puts obj.getAssignedQuota(parameters)
24
+
25
+ # SYNOPSIS
26
+ # GetRemainingQuota(parameters)
27
+ #
28
+ # ARGS
29
+ # parameters GetRemainingQuotaRequest - {https://adcenter.microsoft.com/v7}GetRemainingQuotaRequest
30
+ #
31
+ # RETURNS
32
+ # parameters GetRemainingQuotaResponse - {https://adcenter.microsoft.com/v7}GetRemainingQuotaResponse
33
+ #
34
+ # RAISES
35
+ # detail AdApiFaultDetail - {https://adapi.microsoft.com}AdApiFaultDetail
36
+ #
37
+ parameters = nil
38
+ puts obj.getRemainingQuota(parameters)
39
+
40
+
@@ -0,0 +1,55 @@
1
+ require 'AdministrationService.rb'
2
+ require 'AdministrationServiceMappingRegistry.rb'
3
+ require 'soap/rpc/driver'
4
+
5
+ class IAdministrationService < ::SOAP::RPC::Driver
6
+ DefaultEndpointUrl = "https://adcenterapi.microsoft.com/Api/Advertiser/V7/Administration/AdministrationService.svc"
7
+
8
+ Methods = [
9
+ [ "GetAssignedQuota",
10
+ "getAssignedQuota",
11
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/v7", "GetAssignedQuotaRequest"]],
12
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/v7", "GetAssignedQuotaResponse"]] ],
13
+ { :request_style => :document, :request_use => :literal,
14
+ :response_style => :document, :response_use => :literal,
15
+ :faults => {"AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/v7"}} }
16
+ ],
17
+ [ "GetRemainingQuota",
18
+ "getRemainingQuota",
19
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/v7", "GetRemainingQuotaRequest"]],
20
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adcenter.microsoft.com/v7", "GetRemainingQuotaResponse"]] ],
21
+ { :request_style => :document, :request_use => :literal,
22
+ :response_style => :document, :response_use => :literal,
23
+ :faults => {"AdApiFaultDetailFault"=>{:namespace=>nil, :encodingstyle=>"document", :name=>"AdApiFaultDetailFault", :use=>"literal", :ns=>"https://adcenter.microsoft.com/v7"}} }
24
+ ]
25
+ ]
26
+
27
+ def initialize(endpoint_url = nil)
28
+ endpoint_url ||= DefaultEndpointUrl
29
+ super(endpoint_url, nil)
30
+ self.mapping_registry = AdministrationServiceMappingRegistry::EncodedRegistry
31
+ self.literal_mapping_registry = AdministrationServiceMappingRegistry::LiteralRegistry
32
+ init_methods
33
+ end
34
+
35
+ private
36
+
37
+ def init_methods
38
+ Methods.each do |definitions|
39
+ opt = definitions.last
40
+ if opt[:request_style] == :document
41
+ add_document_operation(*definitions)
42
+ else
43
+ add_rpc_operation(*definitions)
44
+ qname = definitions[0]
45
+ name = definitions[2]
46
+ if qname.name != name and qname.name.capitalize == name.capitalize
47
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
48
+ __send__(name, *arg)
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+
@@ -0,0 +1,148 @@
1
+ require 'AdministrationService.rb'
2
+ require 'soap/mapping'
3
+
4
+ module AdministrationServiceMappingRegistry
5
+ EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
6
+ LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
7
+ NsAdapiMicrosoftCom = "https://adapi.microsoft.com"
8
+ NsV7 = "https://adcenter.microsoft.com/v7"
9
+
10
+ EncodedRegistry.register(
11
+ :class => AdApiFaultDetail,
12
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
13
+ :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
14
+ :schema_element => [
15
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
16
+ ["errors", ["ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
17
+ ]
18
+ )
19
+
20
+ EncodedRegistry.register(
21
+ :class => ApplicationFault,
22
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
23
+ :schema_element => [
24
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
25
+ ]
26
+ )
27
+
28
+ EncodedRegistry.register(
29
+ :class => ArrayOfAdApiError,
30
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
31
+ :schema_element => [
32
+ ["adApiError", ["AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
33
+ ]
34
+ )
35
+
36
+ EncodedRegistry.register(
37
+ :class => AdApiError,
38
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
39
+ :schema_element => [
40
+ ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
41
+ ["detail", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Detail")], [0, 1]],
42
+ ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "ErrorCode")], [0, 1]],
43
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Message")], [0, 1]]
44
+ ]
45
+ )
46
+
47
+ LiteralRegistry.register(
48
+ :class => AdApiFaultDetail,
49
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
50
+ :schema_basetype => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
51
+ :schema_element => [
52
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
53
+ ["errors", ["ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
54
+ ]
55
+ )
56
+
57
+ LiteralRegistry.register(
58
+ :class => ApplicationFault,
59
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
60
+ :schema_element => [
61
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
62
+ ]
63
+ )
64
+
65
+ LiteralRegistry.register(
66
+ :class => ArrayOfAdApiError,
67
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
68
+ :schema_element => [
69
+ ["adApiError", ["AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
70
+ ]
71
+ )
72
+
73
+ LiteralRegistry.register(
74
+ :class => AdApiError,
75
+ :schema_type => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
76
+ :schema_element => [
77
+ ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
78
+ ["detail", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Detail")], [0, 1]],
79
+ ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "ErrorCode")], [0, 1]],
80
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Message")], [0, 1]]
81
+ ]
82
+ )
83
+
84
+ LiteralRegistry.register(
85
+ :class => GetAssignedQuotaRequest,
86
+ :schema_name => XSD::QName.new(NsV7, "GetAssignedQuotaRequest"),
87
+ :schema_element => []
88
+ )
89
+
90
+ LiteralRegistry.register(
91
+ :class => GetAssignedQuotaResponse,
92
+ :schema_name => XSD::QName.new(NsV7, "GetAssignedQuotaResponse"),
93
+ :schema_element => [
94
+ ["assignedQuota", ["SOAP::SOAPLong", XSD::QName.new(NsV7, "AssignedQuota")], [0, 1]]
95
+ ]
96
+ )
97
+
98
+ LiteralRegistry.register(
99
+ :class => GetRemainingQuotaRequest,
100
+ :schema_name => XSD::QName.new(NsV7, "GetRemainingQuotaRequest"),
101
+ :schema_element => []
102
+ )
103
+
104
+ LiteralRegistry.register(
105
+ :class => GetRemainingQuotaResponse,
106
+ :schema_name => XSD::QName.new(NsV7, "GetRemainingQuotaResponse"),
107
+ :schema_element => [
108
+ ["remainingQuota", ["SOAP::SOAPLong", XSD::QName.new(NsV7, "RemainingQuota")], [0, 1]]
109
+ ]
110
+ )
111
+
112
+ LiteralRegistry.register(
113
+ :class => AdApiFaultDetail,
114
+ :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiFaultDetail"),
115
+ :schema_element => [
116
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]],
117
+ ["errors", ["ArrayOfAdApiError", XSD::QName.new(NsAdapiMicrosoftCom, "Errors")], [0, 1]]
118
+ ]
119
+ )
120
+
121
+ LiteralRegistry.register(
122
+ :class => ApplicationFault,
123
+ :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "ApplicationFault"),
124
+ :schema_element => [
125
+ ["trackingId", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "TrackingId")], [0, 1]]
126
+ ]
127
+ )
128
+
129
+ LiteralRegistry.register(
130
+ :class => ArrayOfAdApiError,
131
+ :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "ArrayOfAdApiError"),
132
+ :schema_element => [
133
+ ["adApiError", ["AdApiError[]", XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError")], [0, nil]]
134
+ ]
135
+ )
136
+
137
+ LiteralRegistry.register(
138
+ :class => AdApiError,
139
+ :schema_name => XSD::QName.new(NsAdapiMicrosoftCom, "AdApiError"),
140
+ :schema_element => [
141
+ ["code", ["SOAP::SOAPInt", XSD::QName.new(NsAdapiMicrosoftCom, "Code")], [0, 1]],
142
+ ["detail", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Detail")], [0, 1]],
143
+ ["errorCode", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "ErrorCode")], [0, 1]],
144
+ ["message", ["SOAP::SOAPString", XSD::QName.new(NsAdapiMicrosoftCom, "Message")], [0, 1]]
145
+ ]
146
+ )
147
+
148
+ end