ysm4r 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Authors.txt +2 -0
- data/ChangeLog.txt +1 -0
- data/License.txt +13 -0
- data/Rakefile +209 -0
- data/Readme.txt +4 -0
- data/clean.sh +3 -0
- data/lib/soapex/driver.rb +13 -0
- data/lib/soapex/error.rb +49 -0
- data/lib/soapex/mapping.rb +31 -0
- data/lib/soapex/wsdl2ruby.rb +166 -0
- data/lib/ysm4r.rb +4 -0
- data/lib/ysm4r/client.rb +120 -0
- data/lib/ysm4r/service.rb +68 -0
- data/lib/ysm4r/v1/AccountService.rb +370 -0
- data/lib/ysm4r/v1/AccountServiceDriver.rb +162 -0
- data/lib/ysm4r/v1/AccountServiceMappingRegistry.rb +509 -0
- data/lib/ysm4r/v1/AdGroupService.rb +649 -0
- data/lib/ysm4r/v1/AdGroupServiceDriver.rb +226 -0
- data/lib/ysm4r/v1/AdGroupServiceMappingRegistry.rb +864 -0
- data/lib/ysm4r/v1/AdService.rb +533 -0
- data/lib/ysm4r/v1/AdServiceDriver.rb +178 -0
- data/lib/ysm4r/v1/AdServiceMappingRegistry.rb +753 -0
- data/lib/ysm4r/v1/BasicReportService.rb +259 -0
- data/lib/ysm4r/v1/BasicReportServiceDriver.rb +98 -0
- data/lib/ysm4r/v1/BasicReportServiceMappingRegistry.rb +389 -0
- data/lib/ysm4r/v1/BidInformationService.rb +69 -0
- data/lib/ysm4r/v1/BidInformationServiceDriver.rb +50 -0
- data/lib/ysm4r/v1/BidInformationServiceMappingRegistry.rb +135 -0
- data/lib/ysm4r/v1/BudgetingService.rb +161 -0
- data/lib/ysm4r/v1/BudgetingServiceDriver.rb +98 -0
- data/lib/ysm4r/v1/BudgetingServiceMappingRegistry.rb +230 -0
- data/lib/ysm4r/v1/CampaignService.rb +644 -0
- data/lib/ysm4r/v1/CampaignServiceDriver.rb +210 -0
- data/lib/ysm4r/v1/CampaignServiceMappingRegistry.rb +909 -0
- data/lib/ysm4r/v1/ExcludedWordsService.rb +294 -0
- data/lib/ysm4r/v1/ExcludedWordsServiceDriver.rb +122 -0
- data/lib/ysm4r/v1/ExcludedWordsServiceMappingRegistry.rb +469 -0
- data/lib/ysm4r/v1/ForecastService.rb +200 -0
- data/lib/ysm4r/v1/ForecastServiceDriver.rb +66 -0
- data/lib/ysm4r/v1/ForecastServiceMappingRegistry.rb +359 -0
- data/lib/ysm4r/v1/KeywordResearchService.rb +290 -0
- data/lib/ysm4r/v1/KeywordResearchServiceDriver.rb +66 -0
- data/lib/ysm4r/v1/KeywordResearchServiceMappingRegistry.rb +548 -0
- data/lib/ysm4r/v1/KeywordService.rb +671 -0
- data/lib/ysm4r/v1/KeywordServiceDriver.rb +218 -0
- data/lib/ysm4r/v1/KeywordServiceMappingRegistry.rb +913 -0
- data/lib/ysm4r/v1/LocationService.rb +53 -0
- data/lib/ysm4r/v1/LocationServiceDriver.rb +50 -0
- data/lib/ysm4r/v1/LocationServiceMappingRegistry.rb +111 -0
- data/lib/ysm4r/v1/MasterAccountService.rb +289 -0
- data/lib/ysm4r/v1/MasterAccountServiceDriver.rb +74 -0
- data/lib/ysm4r/v1/MasterAccountServiceMappingRegistry.rb +414 -0
- data/lib/ysm4r/v1/UpgradeService.rb +72 -0
- data/lib/ysm4r/v1/UpgradeServiceDriver.rb +58 -0
- data/lib/ysm4r/v1/UpgradeServiceMappingRegistry.rb +145 -0
- data/lib/ysm4r/v1/UserManagementService.rb +766 -0
- data/lib/ysm4r/v1/UserManagementServiceDriver.rb +290 -0
- data/lib/ysm4r/v1/UserManagementServiceMappingRegistry.rb +1057 -0
- data/lib/ysm4r/v1/sandbox/LocationService.rb +53 -0
- data/lib/ysm4r/v1/sandbox/LocationServiceDriver.rb +50 -0
- data/lib/ysm4r/v1/sandbox/LocationServiceMappingRegistry.rb +111 -0
- data/lib/ysm4r/v1/sandbox/UpgradeService.rb +72 -0
- data/lib/ysm4r/v1/sandbox/UpgradeServiceDriver.rb +58 -0
- data/lib/ysm4r/v1/sandbox/UpgradeServiceMappingRegistry.rb +145 -0
- data/lib/ysm4r/v2/AccountService.rb +372 -0
- data/lib/ysm4r/v2/AccountServiceDriver.rb +162 -0
- data/lib/ysm4r/v2/AccountServiceMappingRegistry.rb +510 -0
- data/lib/ysm4r/v2/AdGroupService.rb +649 -0
- data/lib/ysm4r/v2/AdGroupServiceDriver.rb +226 -0
- data/lib/ysm4r/v2/AdGroupServiceMappingRegistry.rb +864 -0
- data/lib/ysm4r/v2/AdService.rb +553 -0
- data/lib/ysm4r/v2/AdServiceDriver.rb +186 -0
- data/lib/ysm4r/v2/AdServiceMappingRegistry.rb +774 -0
- data/lib/ysm4r/v2/BasicReportService.rb +272 -0
- data/lib/ysm4r/v2/BasicReportServiceDriver.rb +98 -0
- data/lib/ysm4r/v2/BasicReportServiceMappingRegistry.rb +389 -0
- data/lib/ysm4r/v2/BidInformationService.rb +109 -0
- data/lib/ysm4r/v2/BidInformationServiceDriver.rb +66 -0
- data/lib/ysm4r/v2/BidInformationServiceMappingRegistry.rb +177 -0
- data/lib/ysm4r/v2/BudgetingService.rb +161 -0
- data/lib/ysm4r/v2/BudgetingServiceDriver.rb +98 -0
- data/lib/ysm4r/v2/BudgetingServiceMappingRegistry.rb +230 -0
- data/lib/ysm4r/v2/CampaignService.rb +644 -0
- data/lib/ysm4r/v2/CampaignServiceDriver.rb +210 -0
- data/lib/ysm4r/v2/CampaignServiceMappingRegistry.rb +909 -0
- data/lib/ysm4r/v2/CompanyService.rb +68 -0
- data/lib/ysm4r/v2/CompanyServiceDriver.rb +50 -0
- data/lib/ysm4r/v2/CompanyServiceMappingRegistry.rb +136 -0
- data/lib/ysm4r/v2/ExcludedWordsService.rb +294 -0
- data/lib/ysm4r/v2/ExcludedWordsServiceDriver.rb +122 -0
- data/lib/ysm4r/v2/ExcludedWordsServiceMappingRegistry.rb +469 -0
- data/lib/ysm4r/v2/ForecastService.rb +200 -0
- data/lib/ysm4r/v2/ForecastServiceDriver.rb +66 -0
- data/lib/ysm4r/v2/ForecastServiceMappingRegistry.rb +359 -0
- data/lib/ysm4r/v2/KeywordResearchService.rb +369 -0
- data/lib/ysm4r/v2/KeywordResearchServiceDriver.rb +82 -0
- data/lib/ysm4r/v2/KeywordResearchServiceMappingRegistry.rb +673 -0
- data/lib/ysm4r/v2/KeywordService.rb +691 -0
- data/lib/ysm4r/v2/KeywordServiceDriver.rb +226 -0
- data/lib/ysm4r/v2/KeywordServiceMappingRegistry.rb +934 -0
- data/lib/ysm4r/v2/LocationService.rb +53 -0
- data/lib/ysm4r/v2/LocationServiceDriver.rb +50 -0
- data/lib/ysm4r/v2/LocationServiceMappingRegistry.rb +111 -0
- data/lib/ysm4r/v2/MasterAccountService.rb +332 -0
- data/lib/ysm4r/v2/MasterAccountServiceDriver.rb +82 -0
- data/lib/ysm4r/v2/MasterAccountServiceMappingRegistry.rb +480 -0
- data/lib/ysm4r/v2/UpgradeService.rb +72 -0
- data/lib/ysm4r/v2/UpgradeServiceDriver.rb +58 -0
- data/lib/ysm4r/v2/UpgradeServiceMappingRegistry.rb +145 -0
- data/lib/ysm4r/v2/UserManagementService.rb +766 -0
- data/lib/ysm4r/v2/UserManagementServiceDriver.rb +290 -0
- data/lib/ysm4r/v2/UserManagementServiceMappingRegistry.rb +1057 -0
- data/lib/ysm4r/v2/sandbox/LocationService.rb +53 -0
- data/lib/ysm4r/v2/sandbox/LocationServiceDriver.rb +50 -0
- data/lib/ysm4r/v2/sandbox/LocationServiceMappingRegistry.rb +111 -0
- data/lib/ysm4r/v2/sandbox/UpgradeService.rb +72 -0
- data/lib/ysm4r/v2/sandbox/UpgradeServiceDriver.rb +58 -0
- data/lib/ysm4r/v2/sandbox/UpgradeServiceMappingRegistry.rb +145 -0
- data/setup.rb +1585 -0
- data/test/test_campaign_service.rb +12 -0
- data/test/test_keyword_research_service.rb +15 -0
- data/test/test_master_account_service.rb +18 -0
- data/ysm.properties +6 -0
- metadata +171 -0
@@ -0,0 +1,98 @@
|
|
1
|
+
require 'ysm4r/v2/BudgetingServiceMappingRegistry'
|
2
|
+
|
3
|
+
|
4
|
+
module YSM::BudgetingService
|
5
|
+
require 'soap/rpc/driver'
|
6
|
+
|
7
|
+
class BudgetingService < ::SOAP::RPC::Driver
|
8
|
+
DefaultEndpointUrl = "https://USE_ADDRESS_RETURNED_BY_LOCATION_SERVICE/services/V2/BudgetingService"
|
9
|
+
|
10
|
+
Methods = [
|
11
|
+
[ "",
|
12
|
+
"getAccountDailySpendLimit",
|
13
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccountDailySpendLimit"]],
|
14
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccountDailySpendLimitResponse"]] ],
|
15
|
+
{ :request_style => :document, :request_use => :literal,
|
16
|
+
:response_style => :document, :response_use => :literal,
|
17
|
+
:faults => {"YSM::BudgetingService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
|
18
|
+
],
|
19
|
+
[ "",
|
20
|
+
"getCampaignDailySpendLimitStatus",
|
21
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getCampaignDailySpendLimitStatus"]],
|
22
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getCampaignDailySpendLimitStatusResponse"]] ],
|
23
|
+
{ :request_style => :document, :request_use => :literal,
|
24
|
+
:response_style => :document, :response_use => :literal,
|
25
|
+
:faults => {"YSM::BudgetingService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
|
26
|
+
],
|
27
|
+
[ "",
|
28
|
+
"updateAccountDailySpendLimit",
|
29
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "updateAccountDailySpendLimit"]],
|
30
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "updateAccountDailySpendLimitResponse"]] ],
|
31
|
+
{ :request_style => :document, :request_use => :literal,
|
32
|
+
:response_style => :document, :response_use => :literal,
|
33
|
+
:faults => {"YSM::BudgetingService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
|
34
|
+
],
|
35
|
+
[ "",
|
36
|
+
"getCampaignDailySpendLimit",
|
37
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getCampaignDailySpendLimit"]],
|
38
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getCampaignDailySpendLimitResponse"]] ],
|
39
|
+
{ :request_style => :document, :request_use => :literal,
|
40
|
+
:response_style => :document, :response_use => :literal,
|
41
|
+
:faults => {"YSM::BudgetingService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
|
42
|
+
],
|
43
|
+
[ "",
|
44
|
+
"updateCampaignDailySpendLimitStatus",
|
45
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "updateCampaignDailySpendLimitStatus"]],
|
46
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "updateCampaignDailySpendLimitStatusResponse"]] ],
|
47
|
+
{ :request_style => :document, :request_use => :literal,
|
48
|
+
:response_style => :document, :response_use => :literal,
|
49
|
+
:faults => {"YSM::BudgetingService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
|
50
|
+
],
|
51
|
+
[ "",
|
52
|
+
"updateCampaignDailySpendLimit",
|
53
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "updateCampaignDailySpendLimit"]],
|
54
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "updateCampaignDailySpendLimitResponse"]] ],
|
55
|
+
{ :request_style => :document, :request_use => :literal,
|
56
|
+
:response_style => :document, :response_use => :literal,
|
57
|
+
:faults => {"YSM::BudgetingService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
|
58
|
+
],
|
59
|
+
[ "",
|
60
|
+
"getAccountDailySpendLimitStatus",
|
61
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccountDailySpendLimitStatus"]],
|
62
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://marketing.ews.yahooapis.com/V2", "getAccountDailySpendLimitStatusResponse"]] ],
|
63
|
+
{ :request_style => :document, :request_use => :literal,
|
64
|
+
:response_style => :document, :response_use => :literal,
|
65
|
+
:faults => {"YSM::BudgetingService::ApiFault"=>{:name=>"ApiFault", :encodingstyle=>"document", :namespace=>nil, :ns=>"http://marketing.ews.yahooapis.com/V2", :use=>"literal"}} }
|
66
|
+
]
|
67
|
+
]
|
68
|
+
|
69
|
+
def initialize(endpoint_url = nil)
|
70
|
+
endpoint_url ||= DefaultEndpointUrl
|
71
|
+
super(endpoint_url, nil)
|
72
|
+
self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
|
73
|
+
self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
|
74
|
+
init_methods
|
75
|
+
end
|
76
|
+
|
77
|
+
private
|
78
|
+
|
79
|
+
def init_methods
|
80
|
+
Methods.each do |definitions|
|
81
|
+
opt = definitions.last
|
82
|
+
if opt[:request_style] == :document
|
83
|
+
add_document_operation(*definitions)
|
84
|
+
else
|
85
|
+
add_rpc_operation(*definitions)
|
86
|
+
qname = definitions[0]
|
87
|
+
name = definitions[2]
|
88
|
+
if qname.name != name and qname.name.capitalize == name.capitalize
|
89
|
+
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
90
|
+
__send__(name, *arg)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
@@ -0,0 +1,230 @@
|
|
1
|
+
require 'ysm4r/v2/BudgetingService'
|
2
|
+
require 'soap/mapping'
|
3
|
+
|
4
|
+
module YSM; module BudgetingService
|
5
|
+
|
6
|
+
module DefaultMappingRegistry
|
7
|
+
EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
|
8
|
+
LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
|
9
|
+
|
10
|
+
EncodedRegistry.register(
|
11
|
+
:class => YSM::BudgetingService::ApiFault,
|
12
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
13
|
+
:schema_type => "ApiFault",
|
14
|
+
:schema_element => [
|
15
|
+
["code", "SOAP::SOAPString", [0, 1]],
|
16
|
+
["message", "SOAP::SOAPString", [0, 1]]
|
17
|
+
]
|
18
|
+
)
|
19
|
+
|
20
|
+
EncodedRegistry.register(
|
21
|
+
:class => YSM::BudgetingService::Security,
|
22
|
+
:schema_ns => "http://schemas.xmlsoap.org/ws/2002/07/secext",
|
23
|
+
:schema_type => "Security",
|
24
|
+
:schema_element => [
|
25
|
+
["usernameToken", ["YSM::BudgetingService::UsernameToken", XSD::QName.new(nil, "UsernameToken")]]
|
26
|
+
]
|
27
|
+
)
|
28
|
+
|
29
|
+
EncodedRegistry.register(
|
30
|
+
:class => YSM::BudgetingService::UsernameToken,
|
31
|
+
:schema_ns => "http://schemas.xmlsoap.org/ws/2002/07/secext",
|
32
|
+
:schema_type => "UsernameToken",
|
33
|
+
:schema_element => [
|
34
|
+
["username", ["SOAP::SOAPString", XSD::QName.new(nil, "Username")]],
|
35
|
+
["password", ["SOAP::SOAPString", XSD::QName.new(nil, "Password")]]
|
36
|
+
]
|
37
|
+
)
|
38
|
+
|
39
|
+
LiteralRegistry.register(
|
40
|
+
:class => YSM::BudgetingService::ApiFault,
|
41
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
42
|
+
:schema_type => "ApiFault",
|
43
|
+
:schema_qualified => false,
|
44
|
+
:schema_element => [
|
45
|
+
["code", "SOAP::SOAPString", [0, 1]],
|
46
|
+
["message", "SOAP::SOAPString", [0, 1]]
|
47
|
+
]
|
48
|
+
)
|
49
|
+
|
50
|
+
LiteralRegistry.register(
|
51
|
+
:class => YSM::BudgetingService::Security,
|
52
|
+
:schema_ns => "http://schemas.xmlsoap.org/ws/2002/07/secext",
|
53
|
+
:schema_type => "Security",
|
54
|
+
:schema_qualified => false,
|
55
|
+
:schema_element => [
|
56
|
+
["usernameToken", ["YSM::BudgetingService::UsernameToken", XSD::QName.new(nil, "UsernameToken")]]
|
57
|
+
]
|
58
|
+
)
|
59
|
+
|
60
|
+
LiteralRegistry.register(
|
61
|
+
:class => YSM::BudgetingService::UsernameToken,
|
62
|
+
:schema_ns => "http://schemas.xmlsoap.org/ws/2002/07/secext",
|
63
|
+
:schema_type => "UsernameToken",
|
64
|
+
:schema_qualified => false,
|
65
|
+
:schema_element => [
|
66
|
+
["username", ["SOAP::SOAPString", XSD::QName.new(nil, "Username")]],
|
67
|
+
["password", ["SOAP::SOAPString", XSD::QName.new(nil, "Password")]]
|
68
|
+
]
|
69
|
+
)
|
70
|
+
|
71
|
+
LiteralRegistry.register(
|
72
|
+
:class => YSM::BudgetingService::GetAccountDailySpendLimit,
|
73
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
74
|
+
:schema_name => "getAccountDailySpendLimit",
|
75
|
+
:schema_qualified => true,
|
76
|
+
:schema_element => [
|
77
|
+
["accountID", "SOAP::SOAPString"]
|
78
|
+
]
|
79
|
+
)
|
80
|
+
|
81
|
+
LiteralRegistry.register(
|
82
|
+
:class => YSM::BudgetingService::GetAccountDailySpendLimitResponse,
|
83
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
84
|
+
:schema_name => "getAccountDailySpendLimitResponse",
|
85
|
+
:schema_qualified => true,
|
86
|
+
:schema_element => [
|
87
|
+
["out", "SOAP::SOAPDouble"]
|
88
|
+
]
|
89
|
+
)
|
90
|
+
|
91
|
+
LiteralRegistry.register(
|
92
|
+
:class => YSM::BudgetingService::ApiFault,
|
93
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
94
|
+
:schema_name => "ApiFault",
|
95
|
+
:schema_qualified => true,
|
96
|
+
:schema_element => [
|
97
|
+
["code", "SOAP::SOAPString", [0, 1]],
|
98
|
+
["message", "SOAP::SOAPString", [0, 1]]
|
99
|
+
]
|
100
|
+
)
|
101
|
+
|
102
|
+
LiteralRegistry.register(
|
103
|
+
:class => YSM::BudgetingService::GetCampaignDailySpendLimitStatus,
|
104
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
105
|
+
:schema_name => "getCampaignDailySpendLimitStatus",
|
106
|
+
:schema_qualified => true,
|
107
|
+
:schema_element => [
|
108
|
+
["campaignID", "SOAP::SOAPLong"]
|
109
|
+
]
|
110
|
+
)
|
111
|
+
|
112
|
+
LiteralRegistry.register(
|
113
|
+
:class => YSM::BudgetingService::GetCampaignDailySpendLimitStatusResponse,
|
114
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
115
|
+
:schema_name => "getCampaignDailySpendLimitStatusResponse",
|
116
|
+
:schema_qualified => true,
|
117
|
+
:schema_element => [
|
118
|
+
["out", "SOAP::SOAPBoolean"]
|
119
|
+
]
|
120
|
+
)
|
121
|
+
|
122
|
+
LiteralRegistry.register(
|
123
|
+
:class => YSM::BudgetingService::UpdateAccountDailySpendLimit,
|
124
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
125
|
+
:schema_name => "updateAccountDailySpendLimit",
|
126
|
+
:schema_qualified => true,
|
127
|
+
:schema_element => [
|
128
|
+
["accountID", "SOAP::SOAPString"],
|
129
|
+
["amount", "SOAP::SOAPDouble"]
|
130
|
+
]
|
131
|
+
)
|
132
|
+
|
133
|
+
LiteralRegistry.register(
|
134
|
+
:class => YSM::BudgetingService::UpdateAccountDailySpendLimitResponse,
|
135
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
136
|
+
:schema_name => "updateAccountDailySpendLimitResponse",
|
137
|
+
:schema_qualified => true,
|
138
|
+
:schema_element => []
|
139
|
+
)
|
140
|
+
|
141
|
+
LiteralRegistry.register(
|
142
|
+
:class => YSM::BudgetingService::GetCampaignDailySpendLimit,
|
143
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
144
|
+
:schema_name => "getCampaignDailySpendLimit",
|
145
|
+
:schema_qualified => true,
|
146
|
+
:schema_element => [
|
147
|
+
["campaignID", "SOAP::SOAPLong"]
|
148
|
+
]
|
149
|
+
)
|
150
|
+
|
151
|
+
LiteralRegistry.register(
|
152
|
+
:class => YSM::BudgetingService::GetCampaignDailySpendLimitResponse,
|
153
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
154
|
+
:schema_name => "getCampaignDailySpendLimitResponse",
|
155
|
+
:schema_qualified => true,
|
156
|
+
:schema_element => [
|
157
|
+
["out", "SOAP::SOAPDouble"]
|
158
|
+
]
|
159
|
+
)
|
160
|
+
|
161
|
+
LiteralRegistry.register(
|
162
|
+
:class => YSM::BudgetingService::UpdateCampaignDailySpendLimitStatus,
|
163
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
164
|
+
:schema_name => "updateCampaignDailySpendLimitStatus",
|
165
|
+
:schema_qualified => true,
|
166
|
+
:schema_element => [
|
167
|
+
["campaignID", "SOAP::SOAPLong"],
|
168
|
+
["status", "SOAP::SOAPBoolean"]
|
169
|
+
]
|
170
|
+
)
|
171
|
+
|
172
|
+
LiteralRegistry.register(
|
173
|
+
:class => YSM::BudgetingService::UpdateCampaignDailySpendLimitStatusResponse,
|
174
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
175
|
+
:schema_name => "updateCampaignDailySpendLimitStatusResponse",
|
176
|
+
:schema_qualified => true,
|
177
|
+
:schema_element => []
|
178
|
+
)
|
179
|
+
|
180
|
+
LiteralRegistry.register(
|
181
|
+
:class => YSM::BudgetingService::UpdateCampaignDailySpendLimit,
|
182
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
183
|
+
:schema_name => "updateCampaignDailySpendLimit",
|
184
|
+
:schema_qualified => true,
|
185
|
+
:schema_element => [
|
186
|
+
["campaignID", "SOAP::SOAPLong"],
|
187
|
+
["amount", "SOAP::SOAPDouble"]
|
188
|
+
]
|
189
|
+
)
|
190
|
+
|
191
|
+
LiteralRegistry.register(
|
192
|
+
:class => YSM::BudgetingService::UpdateCampaignDailySpendLimitResponse,
|
193
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
194
|
+
:schema_name => "updateCampaignDailySpendLimitResponse",
|
195
|
+
:schema_qualified => true,
|
196
|
+
:schema_element => []
|
197
|
+
)
|
198
|
+
|
199
|
+
LiteralRegistry.register(
|
200
|
+
:class => YSM::BudgetingService::GetAccountDailySpendLimitStatus,
|
201
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
202
|
+
:schema_name => "getAccountDailySpendLimitStatus",
|
203
|
+
:schema_qualified => true,
|
204
|
+
:schema_element => [
|
205
|
+
["accountID", "SOAP::SOAPString"]
|
206
|
+
]
|
207
|
+
)
|
208
|
+
|
209
|
+
LiteralRegistry.register(
|
210
|
+
:class => YSM::BudgetingService::GetAccountDailySpendLimitStatusResponse,
|
211
|
+
:schema_ns => "http://marketing.ews.yahooapis.com/V2",
|
212
|
+
:schema_name => "getAccountDailySpendLimitStatusResponse",
|
213
|
+
:schema_qualified => true,
|
214
|
+
:schema_element => [
|
215
|
+
["out", "SOAP::SOAPBoolean"]
|
216
|
+
]
|
217
|
+
)
|
218
|
+
|
219
|
+
LiteralRegistry.register(
|
220
|
+
:class => YSM::BudgetingService::Security,
|
221
|
+
:schema_ns => "http://schemas.xmlsoap.org/ws/2002/07/secext",
|
222
|
+
:schema_name => "Security",
|
223
|
+
:schema_qualified => true,
|
224
|
+
:schema_element => [
|
225
|
+
["usernameToken", ["YSM::BudgetingService::UsernameToken", XSD::QName.new(nil, "UsernameToken")]]
|
226
|
+
]
|
227
|
+
)
|
228
|
+
end
|
229
|
+
|
230
|
+
end; end
|
@@ -0,0 +1,644 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
module YSM::CampaignService
|
4
|
+
|
5
|
+
|
6
|
+
# {http://marketing.ews.yahooapis.com/V2}Campaign
|
7
|
+
class Campaign
|
8
|
+
attr_accessor :iD
|
9
|
+
attr_accessor :accountID
|
10
|
+
attr_accessor :advancedMatchON
|
11
|
+
attr_accessor :campaignOptimizationON
|
12
|
+
attr_accessor :contentMatchON
|
13
|
+
attr_accessor :createTimestamp
|
14
|
+
attr_accessor :deleteTimestamp
|
15
|
+
attr_accessor :description
|
16
|
+
attr_accessor :endDate
|
17
|
+
attr_accessor :lastUpdateTimestamp
|
18
|
+
attr_accessor :name
|
19
|
+
attr_accessor :sponsoredSearchON
|
20
|
+
attr_accessor :startDate
|
21
|
+
attr_accessor :status
|
22
|
+
attr_accessor :watchON
|
23
|
+
|
24
|
+
def initialize(iD = nil, accountID = nil, advancedMatchON = nil, campaignOptimizationON = nil, contentMatchON = nil, createTimestamp = nil, deleteTimestamp = nil, description = nil, endDate = nil, lastUpdateTimestamp = nil, name = nil, sponsoredSearchON = nil, startDate = nil, status = nil, watchON = nil)
|
25
|
+
@iD = iD
|
26
|
+
@accountID = accountID
|
27
|
+
@advancedMatchON = advancedMatchON
|
28
|
+
@campaignOptimizationON = campaignOptimizationON
|
29
|
+
@contentMatchON = contentMatchON
|
30
|
+
@createTimestamp = createTimestamp
|
31
|
+
@deleteTimestamp = deleteTimestamp
|
32
|
+
@description = description
|
33
|
+
@endDate = endDate
|
34
|
+
@lastUpdateTimestamp = lastUpdateTimestamp
|
35
|
+
@name = name
|
36
|
+
@sponsoredSearchON = sponsoredSearchON
|
37
|
+
@startDate = startDate
|
38
|
+
@status = status
|
39
|
+
@watchON = watchON
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
# {http://marketing.ews.yahooapis.com/V2}CampaignResponse
|
44
|
+
class CampaignResponse
|
45
|
+
attr_accessor :campaign
|
46
|
+
attr_accessor :errors
|
47
|
+
attr_accessor :operationSucceeded
|
48
|
+
|
49
|
+
def initialize(campaign = nil, errors = nil, operationSucceeded = nil)
|
50
|
+
@campaign = campaign
|
51
|
+
@errors = errors
|
52
|
+
@operationSucceeded = operationSucceeded
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# {http://marketing.ews.yahooapis.com/V2}ArrayOfError
|
57
|
+
class ArrayOfError < ::Array
|
58
|
+
end
|
59
|
+
|
60
|
+
# {http://marketing.ews.yahooapis.com/V2}Error
|
61
|
+
class Error
|
62
|
+
attr_accessor :code
|
63
|
+
attr_accessor :message
|
64
|
+
|
65
|
+
def initialize(code = nil, message = nil)
|
66
|
+
@code = code
|
67
|
+
@message = message
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# {http://marketing.ews.yahooapis.com/V2}ApiFault
|
72
|
+
class ApiFault < ::StandardError
|
73
|
+
attr_accessor :code
|
74
|
+
attr_accessor :message
|
75
|
+
|
76
|
+
def initialize(code = nil, message = nil)
|
77
|
+
@code = code
|
78
|
+
@message = message
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# {http://marketing.ews.yahooapis.com/V2}ArrayOfCampaign
|
83
|
+
class ArrayOfCampaign < ::Array
|
84
|
+
end
|
85
|
+
|
86
|
+
# {http://marketing.ews.yahooapis.com/V2}CampaignOptimizationGuidelines
|
87
|
+
class CampaignOptimizationGuidelines
|
88
|
+
attr_accessor :cPA
|
89
|
+
attr_accessor :cPC
|
90
|
+
attr_accessor :cPM
|
91
|
+
attr_accessor :rOAS
|
92
|
+
attr_accessor :accountID
|
93
|
+
attr_accessor :averageConversionRate
|
94
|
+
attr_accessor :averageRevenuePerConversion
|
95
|
+
attr_accessor :bidLimitHeadroom
|
96
|
+
attr_accessor :campaignID
|
97
|
+
attr_accessor :conversionImportance
|
98
|
+
attr_accessor :conversionMetric
|
99
|
+
attr_accessor :createTimestamp
|
100
|
+
attr_accessor :impressionImportance
|
101
|
+
attr_accessor :lastUpdateTimestamp
|
102
|
+
attr_accessor :leadImportance
|
103
|
+
attr_accessor :maxBid
|
104
|
+
attr_accessor :monthlySpendRate
|
105
|
+
attr_accessor :sponsoredSearchMinPosition
|
106
|
+
attr_accessor :sponsoredSearchMinPositionImportance
|
107
|
+
attr_accessor :taggedForConversion
|
108
|
+
attr_accessor :taggedForRevenue
|
109
|
+
|
110
|
+
def initialize(cPA = nil, cPC = nil, cPM = nil, rOAS = nil, accountID = nil, averageConversionRate = nil, averageRevenuePerConversion = nil, bidLimitHeadroom = nil, campaignID = nil, conversionImportance = nil, conversionMetric = nil, createTimestamp = nil, impressionImportance = nil, lastUpdateTimestamp = nil, leadImportance = nil, maxBid = nil, monthlySpendRate = nil, sponsoredSearchMinPosition = nil, sponsoredSearchMinPositionImportance = nil, taggedForConversion = nil, taggedForRevenue = nil)
|
111
|
+
@cPA = cPA
|
112
|
+
@cPC = cPC
|
113
|
+
@cPM = cPM
|
114
|
+
@rOAS = rOAS
|
115
|
+
@accountID = accountID
|
116
|
+
@averageConversionRate = averageConversionRate
|
117
|
+
@averageRevenuePerConversion = averageRevenuePerConversion
|
118
|
+
@bidLimitHeadroom = bidLimitHeadroom
|
119
|
+
@campaignID = campaignID
|
120
|
+
@conversionImportance = conversionImportance
|
121
|
+
@conversionMetric = conversionMetric
|
122
|
+
@createTimestamp = createTimestamp
|
123
|
+
@impressionImportance = impressionImportance
|
124
|
+
@lastUpdateTimestamp = lastUpdateTimestamp
|
125
|
+
@leadImportance = leadImportance
|
126
|
+
@maxBid = maxBid
|
127
|
+
@monthlySpendRate = monthlySpendRate
|
128
|
+
@sponsoredSearchMinPosition = sponsoredSearchMinPosition
|
129
|
+
@sponsoredSearchMinPositionImportance = sponsoredSearchMinPositionImportance
|
130
|
+
@taggedForConversion = taggedForConversion
|
131
|
+
@taggedForRevenue = taggedForRevenue
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# {http://marketing.ews.yahooapis.com/V2}CampaignOptimizationGuidelinesResponse
|
136
|
+
class CampaignOptimizationGuidelinesResponse
|
137
|
+
attr_accessor :campaignOptimizationGuidelines
|
138
|
+
attr_accessor :errors
|
139
|
+
attr_accessor :operationSucceeded
|
140
|
+
|
141
|
+
def initialize(campaignOptimizationGuidelines = nil, errors = nil, operationSucceeded = nil)
|
142
|
+
@campaignOptimizationGuidelines = campaignOptimizationGuidelines
|
143
|
+
@errors = errors
|
144
|
+
@operationSucceeded = operationSucceeded
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
# {http://marketing.ews.yahooapis.com/V2}BasicResponse
|
149
|
+
class BasicResponse
|
150
|
+
attr_accessor :errors
|
151
|
+
attr_accessor :operationSucceeded
|
152
|
+
|
153
|
+
def initialize(errors = nil, operationSucceeded = nil)
|
154
|
+
@errors = errors
|
155
|
+
@operationSucceeded = operationSucceeded
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
# {http://marketing.ews.yahooapis.com/V2}ArrayOfCampaignResponse
|
160
|
+
class ArrayOfCampaignResponse < ::Array
|
161
|
+
end
|
162
|
+
|
163
|
+
# {http://marketing.ews.yahooapis.com/V2}ArrayOfLong
|
164
|
+
class ArrayOfLong < ::Array
|
165
|
+
end
|
166
|
+
|
167
|
+
# {http://marketing.ews.yahooapis.com/V2}ArrayOfString
|
168
|
+
class ArrayOfString < ::Array
|
169
|
+
end
|
170
|
+
|
171
|
+
# {http://marketing.ews.yahooapis.com/V2}SetGeographicLocationResponse
|
172
|
+
class SetGeographicLocationResponse
|
173
|
+
attr_accessor :ambiguousMatches
|
174
|
+
attr_accessor :setSucceeded
|
175
|
+
attr_accessor :stringsWithNoMatches
|
176
|
+
|
177
|
+
def initialize(ambiguousMatches = nil, setSucceeded = nil, stringsWithNoMatches = nil)
|
178
|
+
@ambiguousMatches = ambiguousMatches
|
179
|
+
@setSucceeded = setSucceeded
|
180
|
+
@stringsWithNoMatches = stringsWithNoMatches
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
# {http://marketing.ews.yahooapis.com/V2}ArrayOfAmbiguousGeoMatch
|
185
|
+
class ArrayOfAmbiguousGeoMatch < ::Array
|
186
|
+
end
|
187
|
+
|
188
|
+
# {http://marketing.ews.yahooapis.com/V2}AmbiguousGeoMatch
|
189
|
+
class AmbiguousGeoMatch
|
190
|
+
attr_accessor :geoString
|
191
|
+
attr_accessor :possibleMatches
|
192
|
+
|
193
|
+
def initialize(geoString = nil, possibleMatches = nil)
|
194
|
+
@geoString = geoString
|
195
|
+
@possibleMatches = possibleMatches
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
# {http://marketing.ews.yahooapis.com/V2}ArrayOfBasicResponse
|
200
|
+
class ArrayOfBasicResponse < ::Array
|
201
|
+
end
|
202
|
+
|
203
|
+
# {http://schemas.xmlsoap.org/ws/2002/07/secext}Security
|
204
|
+
class Security
|
205
|
+
attr_accessor :usernameToken
|
206
|
+
|
207
|
+
def initialize(usernameToken = nil)
|
208
|
+
@usernameToken = usernameToken
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# {http://schemas.xmlsoap.org/ws/2002/07/secext}UsernameToken
|
213
|
+
class UsernameToken
|
214
|
+
attr_accessor :username
|
215
|
+
attr_accessor :password
|
216
|
+
|
217
|
+
def initialize(username = nil, password = nil)
|
218
|
+
@username = username
|
219
|
+
@password = password
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
# {http://marketing.ews.yahooapis.com/V2}CampaignStatus
|
224
|
+
class CampaignStatus < ::String
|
225
|
+
Deleted = CampaignStatus.new("Deleted")
|
226
|
+
Off = CampaignStatus.new("Off")
|
227
|
+
On = CampaignStatus.new("On")
|
228
|
+
end
|
229
|
+
|
230
|
+
# {http://marketing.ews.yahooapis.com/V2}Importance
|
231
|
+
class Importance < ::String
|
232
|
+
High = Importance.new("High")
|
233
|
+
Low = Importance.new("Low")
|
234
|
+
Medium = Importance.new("Medium")
|
235
|
+
None = Importance.new("None")
|
236
|
+
end
|
237
|
+
|
238
|
+
# {http://marketing.ews.yahooapis.com/V2}ConversionMetric
|
239
|
+
class ConversionMetric < ::String
|
240
|
+
Conversions = ConversionMetric.new("Conversions")
|
241
|
+
None = ConversionMetric.new("None")
|
242
|
+
Revenue = ConversionMetric.new("Revenue")
|
243
|
+
end
|
244
|
+
|
245
|
+
# {http://marketing.ews.yahooapis.com/V2}addCampaign
|
246
|
+
class AddCampaign
|
247
|
+
attr_accessor :campaign
|
248
|
+
|
249
|
+
def initialize(campaign = nil)
|
250
|
+
@campaign = campaign
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
# {http://marketing.ews.yahooapis.com/V2}addCampaignResponse
|
255
|
+
class AddCampaignResponse
|
256
|
+
attr_accessor :out
|
257
|
+
|
258
|
+
def initialize(out = nil)
|
259
|
+
@out = out
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaignsByAccountID
|
264
|
+
class GetCampaignsByAccountID
|
265
|
+
attr_accessor :accountID
|
266
|
+
attr_accessor :includeDeleted
|
267
|
+
|
268
|
+
def initialize(accountID = nil, includeDeleted = nil)
|
269
|
+
@accountID = accountID
|
270
|
+
@includeDeleted = includeDeleted
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaignsByAccountIDResponse
|
275
|
+
class GetCampaignsByAccountIDResponse
|
276
|
+
attr_accessor :out
|
277
|
+
|
278
|
+
def initialize(out = nil)
|
279
|
+
@out = out
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
# {http://marketing.ews.yahooapis.com/V2}setOptimizationGuidelinesForCampaign
|
284
|
+
class SetOptimizationGuidelinesForCampaign
|
285
|
+
attr_accessor :optimizationGuidelines
|
286
|
+
|
287
|
+
def initialize(optimizationGuidelines = nil)
|
288
|
+
@optimizationGuidelines = optimizationGuidelines
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
# {http://marketing.ews.yahooapis.com/V2}setOptimizationGuidelinesForCampaignResponse
|
293
|
+
class SetOptimizationGuidelinesForCampaignResponse
|
294
|
+
attr_accessor :out
|
295
|
+
|
296
|
+
def initialize(out = nil)
|
297
|
+
@out = out
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
# {http://marketing.ews.yahooapis.com/V2}setCampaignOptimizationON
|
302
|
+
class SetCampaignOptimizationON
|
303
|
+
attr_accessor :campaignID
|
304
|
+
attr_accessor :campaignOptimizationON
|
305
|
+
|
306
|
+
def initialize(campaignID = nil, campaignOptimizationON = nil)
|
307
|
+
@campaignID = campaignID
|
308
|
+
@campaignOptimizationON = campaignOptimizationON
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
# {http://marketing.ews.yahooapis.com/V2}setCampaignOptimizationONResponse
|
313
|
+
class SetCampaignOptimizationONResponse
|
314
|
+
attr_accessor :out
|
315
|
+
|
316
|
+
def initialize(out = nil)
|
317
|
+
@out = out
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
# {http://marketing.ews.yahooapis.com/V2}updateStatusForCampaign
|
322
|
+
class UpdateStatusForCampaign
|
323
|
+
attr_accessor :campaignID
|
324
|
+
attr_accessor :status
|
325
|
+
|
326
|
+
def initialize(campaignID = nil, status = nil)
|
327
|
+
@campaignID = campaignID
|
328
|
+
@status = status
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
# {http://marketing.ews.yahooapis.com/V2}updateStatusForCampaignResponse
|
333
|
+
class UpdateStatusForCampaignResponse
|
334
|
+
attr_accessor :out
|
335
|
+
|
336
|
+
def initialize(out = nil)
|
337
|
+
@out = out
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
# {http://marketing.ews.yahooapis.com/V2}addCampaigns
|
342
|
+
class AddCampaigns
|
343
|
+
attr_accessor :campaigns
|
344
|
+
|
345
|
+
def initialize(campaigns = nil)
|
346
|
+
@campaigns = campaigns
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
# {http://marketing.ews.yahooapis.com/V2}addCampaignsResponse
|
351
|
+
class AddCampaignsResponse
|
352
|
+
attr_accessor :out
|
353
|
+
|
354
|
+
def initialize(out = nil)
|
355
|
+
@out = out
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaignKeywordCount
|
360
|
+
class GetCampaignKeywordCount
|
361
|
+
attr_accessor :campaignID
|
362
|
+
attr_accessor :includeDeleted
|
363
|
+
|
364
|
+
def initialize(campaignID = nil, includeDeleted = nil)
|
365
|
+
@campaignID = campaignID
|
366
|
+
@includeDeleted = includeDeleted
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaignKeywordCountResponse
|
371
|
+
class GetCampaignKeywordCountResponse
|
372
|
+
attr_accessor :out
|
373
|
+
|
374
|
+
def initialize(out = nil)
|
375
|
+
@out = out
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
# {http://marketing.ews.yahooapis.com/V2}deleteGeographicLocationFromCampaign
|
380
|
+
class DeleteGeographicLocationFromCampaign
|
381
|
+
attr_accessor :campaignID
|
382
|
+
|
383
|
+
def initialize(campaignID = nil)
|
384
|
+
@campaignID = campaignID
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
388
|
+
# {http://marketing.ews.yahooapis.com/V2}deleteGeographicLocationFromCampaignResponse
|
389
|
+
class DeleteGeographicLocationFromCampaignResponse
|
390
|
+
attr_accessor :out
|
391
|
+
|
392
|
+
def initialize(out = nil)
|
393
|
+
@out = out
|
394
|
+
end
|
395
|
+
end
|
396
|
+
|
397
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaign
|
398
|
+
class GetCampaign
|
399
|
+
attr_accessor :campaignID
|
400
|
+
|
401
|
+
def initialize(campaignID = nil)
|
402
|
+
@campaignID = campaignID
|
403
|
+
end
|
404
|
+
end
|
405
|
+
|
406
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaignResponse
|
407
|
+
class GetCampaignResponse
|
408
|
+
attr_accessor :out
|
409
|
+
|
410
|
+
def initialize(out = nil)
|
411
|
+
@out = out
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
415
|
+
# {http://marketing.ews.yahooapis.com/V2}updateCampaigns
|
416
|
+
class UpdateCampaigns
|
417
|
+
attr_accessor :campaigns
|
418
|
+
attr_accessor :updateAll
|
419
|
+
|
420
|
+
def initialize(campaigns = nil, updateAll = nil)
|
421
|
+
@campaigns = campaigns
|
422
|
+
@updateAll = updateAll
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
426
|
+
# {http://marketing.ews.yahooapis.com/V2}updateCampaignsResponse
|
427
|
+
class UpdateCampaignsResponse
|
428
|
+
attr_accessor :out
|
429
|
+
|
430
|
+
def initialize(out = nil)
|
431
|
+
@out = out
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
# {http://marketing.ews.yahooapis.com/V2}getStatusForCampaign
|
436
|
+
class GetStatusForCampaign
|
437
|
+
attr_accessor :campaignID
|
438
|
+
|
439
|
+
def initialize(campaignID = nil)
|
440
|
+
@campaignID = campaignID
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
# {http://marketing.ews.yahooapis.com/V2}getStatusForCampaignResponse
|
445
|
+
class GetStatusForCampaignResponse
|
446
|
+
attr_accessor :out
|
447
|
+
|
448
|
+
def initialize(out = nil)
|
449
|
+
@out = out
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
453
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaignsByAccountIDByCampaignStatus
|
454
|
+
class GetCampaignsByAccountIDByCampaignStatus
|
455
|
+
attr_accessor :accountID
|
456
|
+
attr_accessor :status
|
457
|
+
|
458
|
+
def initialize(accountID = nil, status = nil)
|
459
|
+
@accountID = accountID
|
460
|
+
@status = status
|
461
|
+
end
|
462
|
+
end
|
463
|
+
|
464
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaignsByAccountIDByCampaignStatusResponse
|
465
|
+
class GetCampaignsByAccountIDByCampaignStatusResponse
|
466
|
+
attr_accessor :out
|
467
|
+
|
468
|
+
def initialize(out = nil)
|
469
|
+
@out = out
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
473
|
+
# {http://marketing.ews.yahooapis.com/V2}updateStatusForCampaigns
|
474
|
+
class UpdateStatusForCampaigns
|
475
|
+
attr_accessor :campaignIDs
|
476
|
+
attr_accessor :status
|
477
|
+
|
478
|
+
def initialize(campaignIDs = nil, status = nil)
|
479
|
+
@campaignIDs = campaignIDs
|
480
|
+
@status = status
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
484
|
+
# {http://marketing.ews.yahooapis.com/V2}updateStatusForCampaignsResponse
|
485
|
+
class UpdateStatusForCampaignsResponse
|
486
|
+
attr_accessor :out
|
487
|
+
|
488
|
+
def initialize(out = nil)
|
489
|
+
@out = out
|
490
|
+
end
|
491
|
+
end
|
492
|
+
|
493
|
+
# {http://marketing.ews.yahooapis.com/V2}updateCampaign
|
494
|
+
class UpdateCampaign
|
495
|
+
attr_accessor :campaign
|
496
|
+
attr_accessor :updateAll
|
497
|
+
|
498
|
+
def initialize(campaign = nil, updateAll = nil)
|
499
|
+
@campaign = campaign
|
500
|
+
@updateAll = updateAll
|
501
|
+
end
|
502
|
+
end
|
503
|
+
|
504
|
+
# {http://marketing.ews.yahooapis.com/V2}updateCampaignResponse
|
505
|
+
class UpdateCampaignResponse
|
506
|
+
attr_accessor :out
|
507
|
+
|
508
|
+
def initialize(out = nil)
|
509
|
+
@out = out
|
510
|
+
end
|
511
|
+
end
|
512
|
+
|
513
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaigns
|
514
|
+
class GetCampaigns
|
515
|
+
attr_accessor :campaignIDs
|
516
|
+
|
517
|
+
def initialize(campaignIDs = nil)
|
518
|
+
@campaignIDs = campaignIDs
|
519
|
+
end
|
520
|
+
end
|
521
|
+
|
522
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaignsResponse
|
523
|
+
class GetCampaignsResponse
|
524
|
+
attr_accessor :out
|
525
|
+
|
526
|
+
def initialize(out = nil)
|
527
|
+
@out = out
|
528
|
+
end
|
529
|
+
end
|
530
|
+
|
531
|
+
# {http://marketing.ews.yahooapis.com/V2}setGeographicLocationForCampaign
|
532
|
+
class SetGeographicLocationForCampaign
|
533
|
+
attr_accessor :campaignID
|
534
|
+
attr_accessor :geoStrings
|
535
|
+
|
536
|
+
def initialize(campaignID = nil, geoStrings = nil)
|
537
|
+
@campaignID = campaignID
|
538
|
+
@geoStrings = geoStrings
|
539
|
+
end
|
540
|
+
end
|
541
|
+
|
542
|
+
# {http://marketing.ews.yahooapis.com/V2}setGeographicLocationForCampaignResponse
|
543
|
+
class SetGeographicLocationForCampaignResponse
|
544
|
+
attr_accessor :out
|
545
|
+
|
546
|
+
def initialize(out = nil)
|
547
|
+
@out = out
|
548
|
+
end
|
549
|
+
end
|
550
|
+
|
551
|
+
# {http://marketing.ews.yahooapis.com/V2}getOptimizationGuidelinesForCampaign
|
552
|
+
class GetOptimizationGuidelinesForCampaign
|
553
|
+
attr_accessor :campaignID
|
554
|
+
|
555
|
+
def initialize(campaignID = nil)
|
556
|
+
@campaignID = campaignID
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
560
|
+
# {http://marketing.ews.yahooapis.com/V2}getOptimizationGuidelinesForCampaignResponse
|
561
|
+
class GetOptimizationGuidelinesForCampaignResponse
|
562
|
+
attr_accessor :out
|
563
|
+
|
564
|
+
def initialize(out = nil)
|
565
|
+
@out = out
|
566
|
+
end
|
567
|
+
end
|
568
|
+
|
569
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaignAdGroupCount
|
570
|
+
class GetCampaignAdGroupCount
|
571
|
+
attr_accessor :campaignID
|
572
|
+
attr_accessor :includeDeleted
|
573
|
+
|
574
|
+
def initialize(campaignID = nil, includeDeleted = nil)
|
575
|
+
@campaignID = campaignID
|
576
|
+
@includeDeleted = includeDeleted
|
577
|
+
end
|
578
|
+
end
|
579
|
+
|
580
|
+
# {http://marketing.ews.yahooapis.com/V2}getCampaignAdGroupCountResponse
|
581
|
+
class GetCampaignAdGroupCountResponse
|
582
|
+
attr_accessor :out
|
583
|
+
|
584
|
+
def initialize(out = nil)
|
585
|
+
@out = out
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
# {http://marketing.ews.yahooapis.com/V2}getGeographicLocationForCampaign
|
590
|
+
class GetGeographicLocationForCampaign
|
591
|
+
attr_accessor :campaignID
|
592
|
+
|
593
|
+
def initialize(campaignID = nil)
|
594
|
+
@campaignID = campaignID
|
595
|
+
end
|
596
|
+
end
|
597
|
+
|
598
|
+
# {http://marketing.ews.yahooapis.com/V2}getGeographicLocationForCampaignResponse
|
599
|
+
class GetGeographicLocationForCampaignResponse
|
600
|
+
attr_accessor :out
|
601
|
+
|
602
|
+
def initialize(out = nil)
|
603
|
+
@out = out
|
604
|
+
end
|
605
|
+
end
|
606
|
+
|
607
|
+
# {http://marketing.ews.yahooapis.com/V2}deleteCampaign
|
608
|
+
class DeleteCampaign
|
609
|
+
attr_accessor :campaignID
|
610
|
+
|
611
|
+
def initialize(campaignID = nil)
|
612
|
+
@campaignID = campaignID
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
# {http://marketing.ews.yahooapis.com/V2}deleteCampaignResponse
|
617
|
+
class DeleteCampaignResponse
|
618
|
+
attr_accessor :out
|
619
|
+
|
620
|
+
def initialize(out = nil)
|
621
|
+
@out = out
|
622
|
+
end
|
623
|
+
end
|
624
|
+
|
625
|
+
# {http://marketing.ews.yahooapis.com/V2}deleteCampaigns
|
626
|
+
class DeleteCampaigns
|
627
|
+
attr_accessor :campaignIDs
|
628
|
+
|
629
|
+
def initialize(campaignIDs = nil)
|
630
|
+
@campaignIDs = campaignIDs
|
631
|
+
end
|
632
|
+
end
|
633
|
+
|
634
|
+
# {http://marketing.ews.yahooapis.com/V2}deleteCampaignsResponse
|
635
|
+
class DeleteCampaignsResponse
|
636
|
+
attr_accessor :out
|
637
|
+
|
638
|
+
def initialize(out = nil)
|
639
|
+
@out = out
|
640
|
+
end
|
641
|
+
end
|
642
|
+
|
643
|
+
|
644
|
+
end
|