adwords4r 12.1.0 → 13.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.txt +3 -0
- data/Rakefile +1 -1
- data/examples/account_info.rb +2 -2
- data/examples/create_all.rb +2 -2
- data/examples/keyword_suggestions.rb +14 -8
- data/examples/reports.rb +2 -2
- data/lib/adwords4r/services.rb +2 -0
- data/lib/adwords4r/v12/AccountServiceDriver.rb +3 -3
- data/lib/adwords4r/v12/AdGroupServiceDriver.rb +8 -8
- data/lib/adwords4r/v12/AdServiceDriver.rb +10 -10
- data/lib/adwords4r/v12/CampaignServiceDriver.rb +11 -11
- data/lib/adwords4r/v12/CriterionServiceDriver.rb +9 -9
- data/lib/adwords4r/v12/InfoServiceDriver.rb +8 -8
- data/lib/adwords4r/v12/KeywordToolServiceDriver.rb +2 -2
- data/lib/adwords4r/v12/ReportServiceDriver.rb +7 -7
- data/lib/adwords4r/v12/ReportServiceMappingRegistry.rb +2 -2
- data/lib/adwords4r/v12/SiteSuggestionServiceDriver.rb +4 -4
- data/lib/adwords4r/v12/TrafficEstimatorService.rb +1 -1
- data/lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb +4 -4
- data/lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb +2 -2
- data/lib/adwords4r/v13/AccountService.rb +297 -0
- data/lib/adwords4r/v13/AccountServiceDriver.rb +85 -0
- data/lib/adwords4r/v13/AccountServiceMappingRegistry.rb +337 -0
- data/lib/adwords4r/v13/AdGroupService.rb +277 -0
- data/lib/adwords4r/v13/AdGroupServiceDriver.rb +117 -0
- data/lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb +296 -0
- data/lib/adwords4r/v13/AdService.rb +846 -0
- data/lib/adwords4r/v13/AdServiceDriver.rb +125 -0
- data/lib/adwords4r/v13/AdServiceMappingRegistry.rb +859 -0
- data/lib/adwords4r/v13/CampaignService.rb +562 -0
- data/lib/adwords4r/v13/CampaignServiceDriver.rb +149 -0
- data/lib/adwords4r/v13/CampaignServiceMappingRegistry.rb +696 -0
- data/lib/adwords4r/v13/CriterionService.rb +484 -0
- data/lib/adwords4r/v13/CriterionServiceDriver.rb +117 -0
- data/lib/adwords4r/v13/CriterionServiceMappingRegistry.rb +519 -0
- data/lib/adwords4r/v13/InfoService.rb +242 -0
- data/lib/adwords4r/v13/InfoServiceDriver.rb +109 -0
- data/lib/adwords4r/v13/InfoServiceMappingRegistry.rb +228 -0
- data/lib/adwords4r/v13/KeywordToolService.rb +211 -0
- data/lib/adwords4r/v13/KeywordToolServiceDriver.rb +61 -0
- data/lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb +231 -0
- data/lib/adwords4r/v13/ReportService.rb +322 -0
- data/lib/adwords4r/v13/ReportServiceDriver.rb +101 -0
- data/lib/adwords4r/v13/ReportServiceMappingRegistry.rb +298 -0
- data/lib/adwords4r/v13/SiteSuggestionService.rb +242 -0
- data/lib/adwords4r/v13/SiteSuggestionServiceDriver.rb +77 -0
- data/lib/adwords4r/v13/SiteSuggestionServiceMappingRegistry.rb +271 -0
- data/lib/adwords4r/v13/TrafficEstimatorService.rb +348 -0
- data/lib/adwords4r/v13/TrafficEstimatorServiceDriver.rb +77 -0
- data/lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb +491 -0
- data/setup.rb +0 -0
- metadata +93 -54
@@ -0,0 +1,242 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
module AdWords; module SiteSuggestionService
|
4
|
+
|
5
|
+
|
6
|
+
# {https://adwords.google.com/api/adwords/v13}ApiError
|
7
|
+
# code - SOAP::SOAPInt
|
8
|
+
# detail - SOAP::SOAPString
|
9
|
+
# field - SOAP::SOAPString
|
10
|
+
# index - SOAP::SOAPInt
|
11
|
+
# isExemptable - SOAP::SOAPBoolean
|
12
|
+
# textIndex - SOAP::SOAPInt
|
13
|
+
# textLength - SOAP::SOAPInt
|
14
|
+
# trigger - SOAP::SOAPString
|
15
|
+
class ApiError
|
16
|
+
attr_accessor :code
|
17
|
+
attr_accessor :detail
|
18
|
+
attr_accessor :field
|
19
|
+
attr_accessor :index
|
20
|
+
attr_accessor :isExemptable
|
21
|
+
attr_accessor :textIndex
|
22
|
+
attr_accessor :textLength
|
23
|
+
attr_accessor :trigger
|
24
|
+
|
25
|
+
def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
|
26
|
+
@code = code
|
27
|
+
@detail = detail
|
28
|
+
@field = field
|
29
|
+
@index = index
|
30
|
+
@isExemptable = isExemptable
|
31
|
+
@textIndex = textIndex
|
32
|
+
@textLength = textLength
|
33
|
+
@trigger = trigger
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# {https://adwords.google.com/api/adwords/v13}ApiException
|
38
|
+
# code - SOAP::SOAPInt
|
39
|
+
# errors - AdWords::SiteSuggestionService::ApiError
|
40
|
+
# internal - SOAP::SOAPBoolean
|
41
|
+
# message - SOAP::SOAPString
|
42
|
+
# trigger - SOAP::SOAPString
|
43
|
+
class ApiException
|
44
|
+
attr_accessor :code
|
45
|
+
attr_accessor :errors
|
46
|
+
attr_accessor :internal
|
47
|
+
attr_accessor :message
|
48
|
+
attr_accessor :trigger
|
49
|
+
|
50
|
+
def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
|
51
|
+
@code = code
|
52
|
+
@errors = errors
|
53
|
+
@internal = internal
|
54
|
+
@message = message
|
55
|
+
@trigger = trigger
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# {https://adwords.google.com/api/adwords/v13}DemographicsTarget
|
60
|
+
# childrenTarget - AdWords::SiteSuggestionService::ChildrenTarget
|
61
|
+
# ethnicityTarget - AdWords::SiteSuggestionService::EthnicityTarget
|
62
|
+
# genderTarget - AdWords::SiteSuggestionService::GenderTarget
|
63
|
+
# maxAgeRange - AdWords::SiteSuggestionService::AgeRange
|
64
|
+
# maxHouseholdIncomeRange - AdWords::SiteSuggestionService::HouseholdIncomeRange
|
65
|
+
# minAgeRange - AdWords::SiteSuggestionService::AgeRange
|
66
|
+
# minHouseholdIncomeRange - AdWords::SiteSuggestionService::HouseholdIncomeRange
|
67
|
+
class DemographicsTarget
|
68
|
+
attr_accessor :childrenTarget
|
69
|
+
attr_accessor :ethnicityTarget
|
70
|
+
attr_accessor :genderTarget
|
71
|
+
attr_accessor :maxAgeRange
|
72
|
+
attr_accessor :maxHouseholdIncomeRange
|
73
|
+
attr_accessor :minAgeRange
|
74
|
+
attr_accessor :minHouseholdIncomeRange
|
75
|
+
|
76
|
+
def initialize(childrenTarget = nil, ethnicityTarget = nil, genderTarget = nil, maxAgeRange = nil, maxHouseholdIncomeRange = nil, minAgeRange = nil, minHouseholdIncomeRange = nil)
|
77
|
+
@childrenTarget = childrenTarget
|
78
|
+
@ethnicityTarget = ethnicityTarget
|
79
|
+
@genderTarget = genderTarget
|
80
|
+
@maxAgeRange = maxAgeRange
|
81
|
+
@maxHouseholdIncomeRange = maxHouseholdIncomeRange
|
82
|
+
@minAgeRange = minAgeRange
|
83
|
+
@minHouseholdIncomeRange = minHouseholdIncomeRange
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# {https://adwords.google.com/api/adwords/v13}LanguageGeoTargeting
|
88
|
+
# countries - SOAP::SOAPString
|
89
|
+
# languages - SOAP::SOAPString
|
90
|
+
# metros - SOAP::SOAPString
|
91
|
+
# regions - SOAP::SOAPString
|
92
|
+
class LanguageGeoTargeting
|
93
|
+
attr_accessor :countries
|
94
|
+
attr_accessor :languages
|
95
|
+
attr_accessor :metros
|
96
|
+
attr_accessor :regions
|
97
|
+
|
98
|
+
def initialize(countries = [], languages = [], metros = [], regions = [])
|
99
|
+
@countries = countries
|
100
|
+
@languages = languages
|
101
|
+
@metros = metros
|
102
|
+
@regions = regions
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# {https://adwords.google.com/api/adwords/v13}SiteSuggestion
|
107
|
+
# acceptsImageAds - SOAP::SOAPBoolean
|
108
|
+
# acceptsTextAds - SOAP::SOAPBoolean
|
109
|
+
# acceptsVideoAds - SOAP::SOAPBoolean
|
110
|
+
# pageViews - SOAP::SOAPInt
|
111
|
+
# url - SOAP::SOAPString
|
112
|
+
class SiteSuggestion
|
113
|
+
attr_accessor :acceptsImageAds
|
114
|
+
attr_accessor :acceptsTextAds
|
115
|
+
attr_accessor :acceptsVideoAds
|
116
|
+
attr_accessor :pageViews
|
117
|
+
attr_accessor :url
|
118
|
+
|
119
|
+
def initialize(acceptsImageAds = nil, acceptsTextAds = nil, acceptsVideoAds = nil, pageViews = nil, url = nil)
|
120
|
+
@acceptsImageAds = acceptsImageAds
|
121
|
+
@acceptsTextAds = acceptsTextAds
|
122
|
+
@acceptsVideoAds = acceptsVideoAds
|
123
|
+
@pageViews = pageViews
|
124
|
+
@url = url
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
# {https://adwords.google.com/api/adwords/v13}AgeRange
|
129
|
+
class AgeRange < ::String
|
130
|
+
Range0To17 = AgeRange.new("Range0To17")
|
131
|
+
Range18To24 = AgeRange.new("Range18To24")
|
132
|
+
Range25To34 = AgeRange.new("Range25To34")
|
133
|
+
Range35To44 = AgeRange.new("Range35To44")
|
134
|
+
Range45To54 = AgeRange.new("Range45To54")
|
135
|
+
Range55To64 = AgeRange.new("Range55To64")
|
136
|
+
Range65Plus = AgeRange.new("Range65Plus")
|
137
|
+
end
|
138
|
+
|
139
|
+
# {https://adwords.google.com/api/adwords/v13}ChildrenTarget
|
140
|
+
class ChildrenTarget < ::String
|
141
|
+
HouseholdsWithChildrenOnly = ChildrenTarget.new("HouseholdsWithChildrenOnly")
|
142
|
+
HouseholdsWithoutChildrenOnly = ChildrenTarget.new("HouseholdsWithoutChildrenOnly")
|
143
|
+
NoPreference = ChildrenTarget.new("NoPreference")
|
144
|
+
end
|
145
|
+
|
146
|
+
# {https://adwords.google.com/api/adwords/v13}EthnicityTarget
|
147
|
+
class EthnicityTarget < ::String
|
148
|
+
AfricanAmericanOnly = EthnicityTarget.new("AfricanAmericanOnly")
|
149
|
+
AsianOnly = EthnicityTarget.new("AsianOnly")
|
150
|
+
CaucasianOnly = EthnicityTarget.new("CaucasianOnly")
|
151
|
+
HispanicOnly = EthnicityTarget.new("HispanicOnly")
|
152
|
+
NoPreference = EthnicityTarget.new("NoPreference")
|
153
|
+
end
|
154
|
+
|
155
|
+
# {https://adwords.google.com/api/adwords/v13}GenderTarget
|
156
|
+
class GenderTarget < ::String
|
157
|
+
FemaleOnly = GenderTarget.new("FemaleOnly")
|
158
|
+
MaleOnly = GenderTarget.new("MaleOnly")
|
159
|
+
NoPreference = GenderTarget.new("NoPreference")
|
160
|
+
end
|
161
|
+
|
162
|
+
# {https://adwords.google.com/api/adwords/v13}HouseholdIncomeRange
|
163
|
+
class HouseholdIncomeRange < ::String
|
164
|
+
Range0To14999 = HouseholdIncomeRange.new("Range0To14999")
|
165
|
+
Range100000PLUS = HouseholdIncomeRange.new("Range100000PLUS")
|
166
|
+
Range15000To24999 = HouseholdIncomeRange.new("Range15000To24999")
|
167
|
+
Range25000To39999 = HouseholdIncomeRange.new("Range25000To39999")
|
168
|
+
Range40000To59999 = HouseholdIncomeRange.new("Range40000To59999")
|
169
|
+
Range60000To74999 = HouseholdIncomeRange.new("Range60000To74999")
|
170
|
+
Range75000To99999 = HouseholdIncomeRange.new("Range75000To99999")
|
171
|
+
end
|
172
|
+
|
173
|
+
# {https://adwords.google.com/api/adwords/v13}getSitesByCategoryName
|
174
|
+
# categoryName - SOAP::SOAPString
|
175
|
+
# targeting - AdWords::SiteSuggestionService::LanguageGeoTargeting
|
176
|
+
class GetSitesByCategoryName
|
177
|
+
attr_accessor :categoryName
|
178
|
+
attr_accessor :targeting
|
179
|
+
|
180
|
+
def initialize(categoryName = nil, targeting = nil)
|
181
|
+
@categoryName = categoryName
|
182
|
+
@targeting = targeting
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
# {https://adwords.google.com/api/adwords/v13}getSitesByCategoryNameResponse
|
187
|
+
class GetSitesByCategoryNameResponse < ::Array
|
188
|
+
end
|
189
|
+
|
190
|
+
# {https://adwords.google.com/api/adwords/v13}getSitesByDemographics
|
191
|
+
# demo - AdWords::SiteSuggestionService::DemographicsTarget
|
192
|
+
# targeting - AdWords::SiteSuggestionService::LanguageGeoTargeting
|
193
|
+
class GetSitesByDemographics
|
194
|
+
attr_accessor :demo
|
195
|
+
attr_accessor :targeting
|
196
|
+
|
197
|
+
def initialize(demo = nil, targeting = nil)
|
198
|
+
@demo = demo
|
199
|
+
@targeting = targeting
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# {https://adwords.google.com/api/adwords/v13}getSitesByDemographicsResponse
|
204
|
+
class GetSitesByDemographicsResponse < ::Array
|
205
|
+
end
|
206
|
+
|
207
|
+
# {https://adwords.google.com/api/adwords/v13}getSitesByTopics
|
208
|
+
# topics - SOAP::SOAPString
|
209
|
+
# targeting - AdWords::SiteSuggestionService::LanguageGeoTargeting
|
210
|
+
class GetSitesByTopics
|
211
|
+
attr_accessor :topics
|
212
|
+
attr_accessor :targeting
|
213
|
+
|
214
|
+
def initialize(topics = [], targeting = nil)
|
215
|
+
@topics = topics
|
216
|
+
@targeting = targeting
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
# {https://adwords.google.com/api/adwords/v13}getSitesByTopicsResponse
|
221
|
+
class GetSitesByTopicsResponse < ::Array
|
222
|
+
end
|
223
|
+
|
224
|
+
# {https://adwords.google.com/api/adwords/v13}getSitesByUrls
|
225
|
+
# urls - SOAP::SOAPString
|
226
|
+
# targeting - AdWords::SiteSuggestionService::LanguageGeoTargeting
|
227
|
+
class GetSitesByUrls
|
228
|
+
attr_accessor :urls
|
229
|
+
attr_accessor :targeting
|
230
|
+
|
231
|
+
def initialize(urls = [], targeting = nil)
|
232
|
+
@urls = urls
|
233
|
+
@targeting = targeting
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
# {https://adwords.google.com/api/adwords/v13}getSitesByUrlsResponse
|
238
|
+
class GetSitesByUrlsResponse < ::Array
|
239
|
+
end
|
240
|
+
|
241
|
+
|
242
|
+
end; end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'adwords4r/v13/SiteSuggestionService'
|
2
|
+
require 'adwords4r/v13/SiteSuggestionServiceMappingRegistry'
|
3
|
+
require 'soap/rpc/driver'
|
4
|
+
|
5
|
+
module AdWords
|
6
|
+
module SiteSuggestionService
|
7
|
+
|
8
|
+
class SiteSuggestionInterface < ::SOAP::RPC::Driver
|
9
|
+
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v13/SiteSuggestionService"
|
10
|
+
|
11
|
+
Methods = [
|
12
|
+
[ "",
|
13
|
+
"getSitesByCategoryName",
|
14
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getSitesByCategoryName"]],
|
15
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getSitesByCategoryNameResponse"]] ],
|
16
|
+
{ :request_style => :document, :request_use => :literal,
|
17
|
+
:response_style => :document, :response_use => :literal,
|
18
|
+
:faults => {"AdWords::SiteSuggestionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
|
19
|
+
],
|
20
|
+
[ "",
|
21
|
+
"getSitesByDemographics",
|
22
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getSitesByDemographics"]],
|
23
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getSitesByDemographicsResponse"]] ],
|
24
|
+
{ :request_style => :document, :request_use => :literal,
|
25
|
+
:response_style => :document, :response_use => :literal,
|
26
|
+
:faults => {"AdWords::SiteSuggestionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
|
27
|
+
],
|
28
|
+
[ "",
|
29
|
+
"getSitesByTopics",
|
30
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getSitesByTopics"]],
|
31
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getSitesByTopicsResponse"]] ],
|
32
|
+
{ :request_style => :document, :request_use => :literal,
|
33
|
+
:response_style => :document, :response_use => :literal,
|
34
|
+
:faults => {"AdWords::SiteSuggestionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
|
35
|
+
],
|
36
|
+
[ "",
|
37
|
+
"getSitesByUrls",
|
38
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getSitesByUrls"]],
|
39
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getSitesByUrlsResponse"]] ],
|
40
|
+
{ :request_style => :document, :request_use => :literal,
|
41
|
+
:response_style => :document, :response_use => :literal,
|
42
|
+
:faults => {"AdWords::SiteSuggestionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
|
43
|
+
]
|
44
|
+
]
|
45
|
+
|
46
|
+
def initialize(endpoint_url = nil)
|
47
|
+
endpoint_url ||= DefaultEndpointUrl
|
48
|
+
super(endpoint_url, nil)
|
49
|
+
self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
|
50
|
+
self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
|
51
|
+
init_methods
|
52
|
+
end
|
53
|
+
|
54
|
+
private
|
55
|
+
|
56
|
+
def init_methods
|
57
|
+
Methods.each do |definitions|
|
58
|
+
opt = definitions.last
|
59
|
+
if opt[:request_style] == :document
|
60
|
+
add_document_operation(*definitions)
|
61
|
+
else
|
62
|
+
add_rpc_operation(*definitions)
|
63
|
+
qname = definitions[0]
|
64
|
+
name = definitions[2]
|
65
|
+
if qname.name != name and qname.name.capitalize == name.capitalize
|
66
|
+
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
67
|
+
__send__(name, *arg)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,271 @@
|
|
1
|
+
require 'adwords4r/v13/SiteSuggestionService'
|
2
|
+
require 'soap/mapping'
|
3
|
+
|
4
|
+
module AdWords; module SiteSuggestionService
|
5
|
+
|
6
|
+
module DefaultMappingRegistry
|
7
|
+
EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
|
8
|
+
LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
|
9
|
+
NsV13 = "https://adwords.google.com/api/adwords/v13"
|
10
|
+
|
11
|
+
EncodedRegistry.register(
|
12
|
+
:class => AdWords::SiteSuggestionService::ApiError,
|
13
|
+
:schema_type => XSD::QName.new(NsV13, "ApiError"),
|
14
|
+
:schema_element => [
|
15
|
+
["code", "SOAP::SOAPInt"],
|
16
|
+
["detail", "SOAP::SOAPString"],
|
17
|
+
["field", "SOAP::SOAPString", [0, 1]],
|
18
|
+
["index", "SOAP::SOAPInt"],
|
19
|
+
["isExemptable", "SOAP::SOAPBoolean"],
|
20
|
+
["textIndex", "SOAP::SOAPInt", [0, 1]],
|
21
|
+
["textLength", "SOAP::SOAPInt", [0, 1]],
|
22
|
+
["trigger", "SOAP::SOAPString", [0, 1]]
|
23
|
+
]
|
24
|
+
)
|
25
|
+
|
26
|
+
EncodedRegistry.register(
|
27
|
+
:class => AdWords::SiteSuggestionService::ApiException,
|
28
|
+
:schema_type => XSD::QName.new(NsV13, "ApiException"),
|
29
|
+
:schema_element => [
|
30
|
+
["code", "SOAP::SOAPInt"],
|
31
|
+
["errors", "AdWords::SiteSuggestionService::ApiError[]", [1, nil]],
|
32
|
+
["internal", "SOAP::SOAPBoolean"],
|
33
|
+
["message", "SOAP::SOAPString"],
|
34
|
+
["trigger", "SOAP::SOAPString"]
|
35
|
+
]
|
36
|
+
)
|
37
|
+
|
38
|
+
EncodedRegistry.register(
|
39
|
+
:class => AdWords::SiteSuggestionService::DemographicsTarget,
|
40
|
+
:schema_type => XSD::QName.new(NsV13, "DemographicsTarget"),
|
41
|
+
:schema_element => [
|
42
|
+
["childrenTarget", "AdWords::SiteSuggestionService::ChildrenTarget", [0, 1]],
|
43
|
+
["ethnicityTarget", "AdWords::SiteSuggestionService::EthnicityTarget", [0, 1]],
|
44
|
+
["genderTarget", "AdWords::SiteSuggestionService::GenderTarget", [0, 1]],
|
45
|
+
["maxAgeRange", "AdWords::SiteSuggestionService::AgeRange", [0, 1]],
|
46
|
+
["maxHouseholdIncomeRange", "AdWords::SiteSuggestionService::HouseholdIncomeRange", [0, 1]],
|
47
|
+
["minAgeRange", "AdWords::SiteSuggestionService::AgeRange", [0, 1]],
|
48
|
+
["minHouseholdIncomeRange", "AdWords::SiteSuggestionService::HouseholdIncomeRange", [0, 1]]
|
49
|
+
]
|
50
|
+
)
|
51
|
+
|
52
|
+
EncodedRegistry.register(
|
53
|
+
:class => AdWords::SiteSuggestionService::LanguageGeoTargeting,
|
54
|
+
:schema_type => XSD::QName.new(NsV13, "LanguageGeoTargeting"),
|
55
|
+
:schema_element => [
|
56
|
+
["countries", "SOAP::SOAPString[]", [1, nil]],
|
57
|
+
["languages", "SOAP::SOAPString[]", [1, nil]],
|
58
|
+
["metros", "SOAP::SOAPString[]", [1, nil]],
|
59
|
+
["regions", "SOAP::SOAPString[]", [1, nil]]
|
60
|
+
]
|
61
|
+
)
|
62
|
+
|
63
|
+
EncodedRegistry.register(
|
64
|
+
:class => AdWords::SiteSuggestionService::SiteSuggestion,
|
65
|
+
:schema_type => XSD::QName.new(NsV13, "SiteSuggestion"),
|
66
|
+
:schema_element => [
|
67
|
+
["acceptsImageAds", "SOAP::SOAPBoolean"],
|
68
|
+
["acceptsTextAds", "SOAP::SOAPBoolean"],
|
69
|
+
["acceptsVideoAds", "SOAP::SOAPBoolean"],
|
70
|
+
["pageViews", "SOAP::SOAPInt"],
|
71
|
+
["url", "SOAP::SOAPString"]
|
72
|
+
]
|
73
|
+
)
|
74
|
+
|
75
|
+
EncodedRegistry.register(
|
76
|
+
:class => AdWords::SiteSuggestionService::AgeRange,
|
77
|
+
:schema_type => XSD::QName.new(NsV13, "AgeRange")
|
78
|
+
)
|
79
|
+
|
80
|
+
EncodedRegistry.register(
|
81
|
+
:class => AdWords::SiteSuggestionService::ChildrenTarget,
|
82
|
+
:schema_type => XSD::QName.new(NsV13, "ChildrenTarget")
|
83
|
+
)
|
84
|
+
|
85
|
+
EncodedRegistry.register(
|
86
|
+
:class => AdWords::SiteSuggestionService::EthnicityTarget,
|
87
|
+
:schema_type => XSD::QName.new(NsV13, "EthnicityTarget")
|
88
|
+
)
|
89
|
+
|
90
|
+
EncodedRegistry.register(
|
91
|
+
:class => AdWords::SiteSuggestionService::GenderTarget,
|
92
|
+
:schema_type => XSD::QName.new(NsV13, "GenderTarget")
|
93
|
+
)
|
94
|
+
|
95
|
+
EncodedRegistry.register(
|
96
|
+
:class => AdWords::SiteSuggestionService::HouseholdIncomeRange,
|
97
|
+
:schema_type => XSD::QName.new(NsV13, "HouseholdIncomeRange")
|
98
|
+
)
|
99
|
+
|
100
|
+
LiteralRegistry.register(
|
101
|
+
:class => AdWords::SiteSuggestionService::ApiError,
|
102
|
+
:schema_type => XSD::QName.new(NsV13, "ApiError"),
|
103
|
+
:schema_element => [
|
104
|
+
["code", "SOAP::SOAPInt"],
|
105
|
+
["detail", "SOAP::SOAPString"],
|
106
|
+
["field", "SOAP::SOAPString", [0, 1]],
|
107
|
+
["index", "SOAP::SOAPInt"],
|
108
|
+
["isExemptable", "SOAP::SOAPBoolean"],
|
109
|
+
["textIndex", "SOAP::SOAPInt", [0, 1]],
|
110
|
+
["textLength", "SOAP::SOAPInt", [0, 1]],
|
111
|
+
["trigger", "SOAP::SOAPString", [0, 1]]
|
112
|
+
]
|
113
|
+
)
|
114
|
+
|
115
|
+
LiteralRegistry.register(
|
116
|
+
:class => AdWords::SiteSuggestionService::ApiException,
|
117
|
+
:schema_type => XSD::QName.new(NsV13, "ApiException"),
|
118
|
+
:schema_element => [
|
119
|
+
["code", "SOAP::SOAPInt"],
|
120
|
+
["errors", "AdWords::SiteSuggestionService::ApiError[]", [1, nil]],
|
121
|
+
["internal", "SOAP::SOAPBoolean"],
|
122
|
+
["message", "SOAP::SOAPString"],
|
123
|
+
["trigger", "SOAP::SOAPString"]
|
124
|
+
]
|
125
|
+
)
|
126
|
+
|
127
|
+
LiteralRegistry.register(
|
128
|
+
:class => AdWords::SiteSuggestionService::DemographicsTarget,
|
129
|
+
:schema_type => XSD::QName.new(NsV13, "DemographicsTarget"),
|
130
|
+
:schema_element => [
|
131
|
+
["childrenTarget", "AdWords::SiteSuggestionService::ChildrenTarget", [0, 1]],
|
132
|
+
["ethnicityTarget", "AdWords::SiteSuggestionService::EthnicityTarget", [0, 1]],
|
133
|
+
["genderTarget", "AdWords::SiteSuggestionService::GenderTarget", [0, 1]],
|
134
|
+
["maxAgeRange", "AdWords::SiteSuggestionService::AgeRange", [0, 1]],
|
135
|
+
["maxHouseholdIncomeRange", "AdWords::SiteSuggestionService::HouseholdIncomeRange", [0, 1]],
|
136
|
+
["minAgeRange", "AdWords::SiteSuggestionService::AgeRange", [0, 1]],
|
137
|
+
["minHouseholdIncomeRange", "AdWords::SiteSuggestionService::HouseholdIncomeRange", [0, 1]]
|
138
|
+
]
|
139
|
+
)
|
140
|
+
|
141
|
+
LiteralRegistry.register(
|
142
|
+
:class => AdWords::SiteSuggestionService::LanguageGeoTargeting,
|
143
|
+
:schema_type => XSD::QName.new(NsV13, "LanguageGeoTargeting"),
|
144
|
+
:schema_element => [
|
145
|
+
["countries", "SOAP::SOAPString[]", [1, nil]],
|
146
|
+
["languages", "SOAP::SOAPString[]", [1, nil]],
|
147
|
+
["metros", "SOAP::SOAPString[]", [1, nil]],
|
148
|
+
["regions", "SOAP::SOAPString[]", [1, nil]]
|
149
|
+
]
|
150
|
+
)
|
151
|
+
|
152
|
+
LiteralRegistry.register(
|
153
|
+
:class => AdWords::SiteSuggestionService::SiteSuggestion,
|
154
|
+
:schema_type => XSD::QName.new(NsV13, "SiteSuggestion"),
|
155
|
+
:schema_element => [
|
156
|
+
["acceptsImageAds", "SOAP::SOAPBoolean"],
|
157
|
+
["acceptsTextAds", "SOAP::SOAPBoolean"],
|
158
|
+
["acceptsVideoAds", "SOAP::SOAPBoolean"],
|
159
|
+
["pageViews", "SOAP::SOAPInt"],
|
160
|
+
["url", "SOAP::SOAPString"]
|
161
|
+
]
|
162
|
+
)
|
163
|
+
|
164
|
+
LiteralRegistry.register(
|
165
|
+
:class => AdWords::SiteSuggestionService::AgeRange,
|
166
|
+
:schema_type => XSD::QName.new(NsV13, "AgeRange")
|
167
|
+
)
|
168
|
+
|
169
|
+
LiteralRegistry.register(
|
170
|
+
:class => AdWords::SiteSuggestionService::ChildrenTarget,
|
171
|
+
:schema_type => XSD::QName.new(NsV13, "ChildrenTarget")
|
172
|
+
)
|
173
|
+
|
174
|
+
LiteralRegistry.register(
|
175
|
+
:class => AdWords::SiteSuggestionService::EthnicityTarget,
|
176
|
+
:schema_type => XSD::QName.new(NsV13, "EthnicityTarget")
|
177
|
+
)
|
178
|
+
|
179
|
+
LiteralRegistry.register(
|
180
|
+
:class => AdWords::SiteSuggestionService::GenderTarget,
|
181
|
+
:schema_type => XSD::QName.new(NsV13, "GenderTarget")
|
182
|
+
)
|
183
|
+
|
184
|
+
LiteralRegistry.register(
|
185
|
+
:class => AdWords::SiteSuggestionService::HouseholdIncomeRange,
|
186
|
+
:schema_type => XSD::QName.new(NsV13, "HouseholdIncomeRange")
|
187
|
+
)
|
188
|
+
|
189
|
+
LiteralRegistry.register(
|
190
|
+
:class => AdWords::SiteSuggestionService::ApiException,
|
191
|
+
:schema_name => XSD::QName.new(NsV13, "fault"),
|
192
|
+
:schema_element => [
|
193
|
+
["code", "SOAP::SOAPInt"],
|
194
|
+
["errors", "AdWords::SiteSuggestionService::ApiError[]", [1, nil]],
|
195
|
+
["internal", "SOAP::SOAPBoolean"],
|
196
|
+
["message", "SOAP::SOAPString"],
|
197
|
+
["trigger", "SOAP::SOAPString"]
|
198
|
+
]
|
199
|
+
)
|
200
|
+
|
201
|
+
LiteralRegistry.register(
|
202
|
+
:class => AdWords::SiteSuggestionService::GetSitesByCategoryName,
|
203
|
+
:schema_name => XSD::QName.new(NsV13, "getSitesByCategoryName"),
|
204
|
+
:schema_element => [
|
205
|
+
["categoryName", "SOAP::SOAPString"],
|
206
|
+
["targeting", "AdWords::SiteSuggestionService::LanguageGeoTargeting"]
|
207
|
+
]
|
208
|
+
)
|
209
|
+
|
210
|
+
LiteralRegistry.register(
|
211
|
+
:class => AdWords::SiteSuggestionService::GetSitesByCategoryNameResponse,
|
212
|
+
:schema_name => XSD::QName.new(NsV13, "getSitesByCategoryNameResponse"),
|
213
|
+
:schema_element => [
|
214
|
+
["getSitesByCategoryNameReturn", "AdWords::SiteSuggestionService::SiteSuggestion[]", [1, nil]]
|
215
|
+
]
|
216
|
+
)
|
217
|
+
|
218
|
+
LiteralRegistry.register(
|
219
|
+
:class => AdWords::SiteSuggestionService::GetSitesByDemographics,
|
220
|
+
:schema_name => XSD::QName.new(NsV13, "getSitesByDemographics"),
|
221
|
+
:schema_element => [
|
222
|
+
["demo", "AdWords::SiteSuggestionService::DemographicsTarget"],
|
223
|
+
["targeting", "AdWords::SiteSuggestionService::LanguageGeoTargeting"]
|
224
|
+
]
|
225
|
+
)
|
226
|
+
|
227
|
+
LiteralRegistry.register(
|
228
|
+
:class => AdWords::SiteSuggestionService::GetSitesByDemographicsResponse,
|
229
|
+
:schema_name => XSD::QName.new(NsV13, "getSitesByDemographicsResponse"),
|
230
|
+
:schema_element => [
|
231
|
+
["getSitesByDemographicsReturn", "AdWords::SiteSuggestionService::SiteSuggestion[]", [1, nil]]
|
232
|
+
]
|
233
|
+
)
|
234
|
+
|
235
|
+
LiteralRegistry.register(
|
236
|
+
:class => AdWords::SiteSuggestionService::GetSitesByTopics,
|
237
|
+
:schema_name => XSD::QName.new(NsV13, "getSitesByTopics"),
|
238
|
+
:schema_element => [
|
239
|
+
["topics", "SOAP::SOAPString[]", [1, nil]],
|
240
|
+
["targeting", "AdWords::SiteSuggestionService::LanguageGeoTargeting"]
|
241
|
+
]
|
242
|
+
)
|
243
|
+
|
244
|
+
LiteralRegistry.register(
|
245
|
+
:class => AdWords::SiteSuggestionService::GetSitesByTopicsResponse,
|
246
|
+
:schema_name => XSD::QName.new(NsV13, "getSitesByTopicsResponse"),
|
247
|
+
:schema_element => [
|
248
|
+
["getSitesByTopicsReturn", "AdWords::SiteSuggestionService::SiteSuggestion[]", [1, nil]]
|
249
|
+
]
|
250
|
+
)
|
251
|
+
|
252
|
+
LiteralRegistry.register(
|
253
|
+
:class => AdWords::SiteSuggestionService::GetSitesByUrls,
|
254
|
+
:schema_name => XSD::QName.new(NsV13, "getSitesByUrls"),
|
255
|
+
:schema_element => [
|
256
|
+
["urls", "SOAP::SOAPString[]", [1, nil]],
|
257
|
+
["targeting", "AdWords::SiteSuggestionService::LanguageGeoTargeting"]
|
258
|
+
]
|
259
|
+
)
|
260
|
+
|
261
|
+
LiteralRegistry.register(
|
262
|
+
:class => AdWords::SiteSuggestionService::GetSitesByUrlsResponse,
|
263
|
+
:schema_name => XSD::QName.new(NsV13, "getSitesByUrlsResponse"),
|
264
|
+
:schema_element => [
|
265
|
+
["getSitesByUrlsReturn", "AdWords::SiteSuggestionService::SiteSuggestion[]", [1, nil]]
|
266
|
+
]
|
267
|
+
)
|
268
|
+
|
269
|
+
end
|
270
|
+
|
271
|
+
end; end
|