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.
- data/.gemtest +0 -0
- data/History.txt +6 -0
- data/Manifest.txt +41 -19
- data/README.txt +1 -1
- data/Rakefile.rb +2 -2
- data/VERSION +1 -1
- data/devel/gen_wsdl_drivers.rb +1 -1
- data/devel/wsdl.yml +16 -13
- data/lib/AdIntelligenceService.rb +787 -0
- data/lib/AdIntelligenceServiceClient.rb +160 -0
- data/lib/AdIntelligenceServiceDriver.rb +115 -0
- data/lib/AdIntelligenceServiceMappingRegistry.rb +1378 -0
- data/lib/AdministrationService.rb +85 -0
- data/lib/AdministrationServiceClient.rb +46 -0
- data/lib/AdministrationServiceDriver.rb +8 -8
- data/lib/AdministrationServiceMappingRegistry.rb +8 -7
- data/lib/CampaignManagementService.rb +3413 -0
- data/lib/CampaignManagementServiceClient.rb +1330 -0
- data/lib/CampaignManagementServiceDriver.rb +335 -359
- data/lib/CampaignManagementServiceMappingRegistry.rb +2288 -2259
- data/lib/CustomerBillingService.rb +419 -0
- data/lib/CustomerBillingServiceClient.rb +148 -0
- data/lib/CustomerBillingServiceDriver.rb +17 -9
- data/lib/CustomerBillingServiceMappingRegistry.rb +50 -32
- data/lib/CustomerManagementService.rb +1502 -0
- data/lib/CustomerManagementServiceClient.rb +368 -0
- data/lib/CustomerManagementServiceDriver.rb +59 -19
- data/lib/CustomerManagementServiceMappingRegistry.rb +373 -145
- data/lib/NotificationService.rb +427 -0
- data/lib/NotificationServiceClient.rb +48 -0
- data/lib/NotificationServiceDriver.rb +59 -0
- data/lib/NotificationServiceMappingRegistry.rb +756 -0
- data/lib/OptimizerService.rb +265 -0
- data/lib/OptimizerServiceClient.rb +48 -0
- data/lib/OptimizerServiceDriver.rb +59 -0
- data/lib/OptimizerServiceMappingRegistry.rb +469 -0
- data/lib/ReportingService.rb +2376 -0
- data/lib/ReportingServiceClient.rb +48 -0
- data/lib/ReportingServiceDriver.rb +8 -8
- data/lib/ReportingServiceMappingRegistry.rb +1718 -1476
- data/lib/ad_intelligence_service.rb +9 -0
- data/lib/adcenter_client.rb +30 -23
- data/lib/adcenter_service.rb +15 -1
- data/lib/adcenter_wrapper_entities.rb +8179 -8164
- data/lib/administration_service.rb +1 -0
- data/lib/campaign_management_service.rb +2 -0
- data/lib/custom_assertions.rb +1 -0
- data/lib/customer_billing_service.rb +2 -0
- data/lib/customer_management_service.rb +4 -0
- data/lib/notification_management.rb +2 -0
- data/lib/notification_service.rb +7 -0
- data/lib/optimizer_service.rb +7 -0
- data/lib/reporting_service.rb +2 -0
- data/lib/secure_data_management_service.rb +2 -0
- data/tasks/doctask.rake +1 -1
- data/test/adcenter_client_test.rb +2 -1
- data/test/administration_service_test.rb +2 -2
- data/test/customer_management_service_test.rb +2 -2
- data/test/report_service_test.rb +16 -6
- metadata +54 -35
- data/lib/SecureDataManagementServiceDriver.rb +0 -51
- data/lib/SecureDataManagementServiceMappingRegistry.rb +0 -380
- data/lib/defaultDriver.rb +0 -67
data/lib/defaultDriver.rb
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
require 'adcenter_wrapper_entities'
|
2
|
-
require 'defaultMappingRegistry.rb'
|
3
|
-
require 'soap/rpc/driver'
|
4
|
-
|
5
|
-
module AdCenterWrapper
|
6
|
-
|
7
|
-
class NotificationManagementSoap < ::SOAP::RPC::Driver
|
8
|
-
DefaultEndpointUrl = "https://adcenterapi.microsoft.com/Api/Advertiser/v6/NotificationManagement/NotificationManagement.asmx"
|
9
|
-
|
10
|
-
Methods = [
|
11
|
-
[ "http://adcenter.microsoft.com/syncapis/GetNotifications",
|
12
|
-
"getNotifications",
|
13
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://adcenter.microsoft.com/syncapis", "GetNotifications"]],
|
14
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://adcenter.microsoft.com/syncapis", "GetNotificationsResponse"]] ],
|
15
|
-
{ :request_style => :document, :request_use => :literal,
|
16
|
-
:response_style => :document, :response_use => :literal,
|
17
|
-
:faults => {} }
|
18
|
-
],
|
19
|
-
[ "http://adcenter.microsoft.com/syncapis/GetNotificationsByType",
|
20
|
-
"getNotificationsByType",
|
21
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://adcenter.microsoft.com/syncapis", "GetNotificationsByType"]],
|
22
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://adcenter.microsoft.com/syncapis", "GetNotificationsByTypeResponse"]] ],
|
23
|
-
{ :request_style => :document, :request_use => :literal,
|
24
|
-
:response_style => :document, :response_use => :literal,
|
25
|
-
:faults => {} }
|
26
|
-
],
|
27
|
-
[ "http://adcenter.microsoft.com/syncapis/GetArchivedNotifications",
|
28
|
-
"getArchivedNotifications",
|
29
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://adcenter.microsoft.com/syncapis", "GetArchivedNotifications"]],
|
30
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://adcenter.microsoft.com/syncapis", "GetArchivedNotificationsResponse"]] ],
|
31
|
-
{ :request_style => :document, :request_use => :literal,
|
32
|
-
:response_style => :document, :response_use => :literal,
|
33
|
-
:faults => {} }
|
34
|
-
]
|
35
|
-
]
|
36
|
-
|
37
|
-
def initialize(endpoint_url = nil)
|
38
|
-
endpoint_url ||= DefaultEndpointUrl
|
39
|
-
super(endpoint_url, nil)
|
40
|
-
self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
|
41
|
-
self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
|
42
|
-
init_methods
|
43
|
-
end
|
44
|
-
|
45
|
-
private
|
46
|
-
|
47
|
-
def init_methods
|
48
|
-
Methods.each do |definitions|
|
49
|
-
opt = definitions.last
|
50
|
-
if opt[:request_style] == :document
|
51
|
-
add_document_operation(*definitions)
|
52
|
-
else
|
53
|
-
add_rpc_operation(*definitions)
|
54
|
-
qname = definitions[0]
|
55
|
-
name = definitions[2]
|
56
|
-
if qname.name != name and qname.name.capitalize == name.capitalize
|
57
|
-
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
58
|
-
__send__(name, *arg)
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
|
67
|
-
end
|