adwords4r 12.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog.txt +4 -0
- data/Rakefile +1 -1
- data/Readme.txt +2 -2
- data/adwords.properties +1 -1
- data/examples/account_info.rb +131 -0
- data/examples/create_all.rb +165 -0
- data/examples/keyword_suggestions.rb +2 -2
- data/examples/reports.rb +2 -2
- data/lib/adwords4r/credentials.rb +11 -0
- data/lib/adwords4r/services.rb +0 -2
- metadata +24 -60
- data/examples/campaign.rb +0 -40
- data/examples/framework.rb +0 -8
- data/examples/get_free_usage_this_month.rb +0 -20
- data/examples/get_unit_count.rb +0 -21
- data/examples/keyword_tool_demo.rb +0 -31
- data/examples/traffic_estimator.rb +0 -34
- data/lib/adwords4r/v11/AccountService.rb +0 -215
- data/lib/adwords4r/v11/AccountServiceDriver.rb +0 -69
- data/lib/adwords4r/v11/AccountServiceMappingRegistry.rb +0 -243
- data/lib/adwords4r/v11/AdGroupService.rb +0 -257
- data/lib/adwords4r/v11/AdGroupServiceDriver.rb +0 -109
- data/lib/adwords4r/v11/AdGroupServiceMappingRegistry.rb +0 -276
- data/lib/adwords4r/v11/AdService.rb +0 -760
- data/lib/adwords4r/v11/AdServiceDriver.rb +0 -125
- data/lib/adwords4r/v11/AdServiceMappingRegistry.rb +0 -807
- data/lib/adwords4r/v11/CampaignService.rb +0 -443
- data/lib/adwords4r/v11/CampaignServiceDriver.rb +0 -125
- data/lib/adwords4r/v11/CampaignServiceMappingRegistry.rb +0 -564
- data/lib/adwords4r/v11/CriterionService.rb +0 -442
- data/lib/adwords4r/v11/CriterionServiceDriver.rb +0 -117
- data/lib/adwords4r/v11/CriterionServiceMappingRegistry.rb +0 -507
- data/lib/adwords4r/v11/InfoService.rb +0 -242
- data/lib/adwords4r/v11/InfoServiceDriver.rb +0 -109
- data/lib/adwords4r/v11/InfoServiceMappingRegistry.rb +0 -228
- data/lib/adwords4r/v11/KeywordToolService.rb +0 -205
- data/lib/adwords4r/v11/KeywordToolServiceDriver.rb +0 -61
- data/lib/adwords4r/v11/KeywordToolServiceMappingRegistry.rb +0 -227
- data/lib/adwords4r/v11/ReportService.rb +0 -322
- data/lib/adwords4r/v11/ReportServiceDriver.rb +0 -101
- data/lib/adwords4r/v11/ReportServiceMappingRegistry.rb +0 -298
- data/lib/adwords4r/v11/SiteSuggestionService.rb +0 -242
- data/lib/adwords4r/v11/SiteSuggestionServiceDriver.rb +0 -77
- data/lib/adwords4r/v11/SiteSuggestionServiceMappingRegistry.rb +0 -271
- data/lib/adwords4r/v11/TrafficEstimatorService.rb +0 -312
- data/lib/adwords4r/v11/TrafficEstimatorServiceDriver.rb +0 -77
- data/lib/adwords4r/v11/TrafficEstimatorServiceMappingRegistry.rb +0 -483
- data/svn-commit.2.tmp +0 -60
- data/svn-commit.tmp +0 -60
@@ -1,242 +0,0 @@
|
|
1
|
-
require 'xsd/qname'
|
2
|
-
|
3
|
-
module AdWords; module SiteSuggestionService
|
4
|
-
|
5
|
-
|
6
|
-
# {https://adwords.google.com/api/adwords/v11}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/v11}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/v11}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/v11}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/v11}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/v11}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/v11}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/v11}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/v11}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/v11}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/v11}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/v11}getSitesByCategoryNameResponse
|
187
|
-
class GetSitesByCategoryNameResponse < ::Array
|
188
|
-
end
|
189
|
-
|
190
|
-
# {https://adwords.google.com/api/adwords/v11}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/v11}getSitesByDemographicsResponse
|
204
|
-
class GetSitesByDemographicsResponse < ::Array
|
205
|
-
end
|
206
|
-
|
207
|
-
# {https://adwords.google.com/api/adwords/v11}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/v11}getSitesByTopicsResponse
|
221
|
-
class GetSitesByTopicsResponse < ::Array
|
222
|
-
end
|
223
|
-
|
224
|
-
# {https://adwords.google.com/api/adwords/v11}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/v11}getSitesByUrlsResponse
|
238
|
-
class GetSitesByUrlsResponse < ::Array
|
239
|
-
end
|
240
|
-
|
241
|
-
|
242
|
-
end; end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
require 'adwords4r/v11/SiteSuggestionService'
|
2
|
-
require 'adwords4r/v11/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/v11/SiteSuggestionService"
|
10
|
-
|
11
|
-
Methods = [
|
12
|
-
[ "",
|
13
|
-
"getSitesByCategoryName",
|
14
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getSitesByCategoryName"]],
|
15
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getSitesByCategoryNameResponse"]] ],
|
16
|
-
{ :request_style => :document, :request_use => :literal,
|
17
|
-
:response_style => :document, :response_use => :literal,
|
18
|
-
:faults => {"AdWords::SiteSuggestionService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
|
19
|
-
],
|
20
|
-
[ "",
|
21
|
-
"getSitesByDemographics",
|
22
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getSitesByDemographics"]],
|
23
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getSitesByDemographicsResponse"]] ],
|
24
|
-
{ :request_style => :document, :request_use => :literal,
|
25
|
-
:response_style => :document, :response_use => :literal,
|
26
|
-
:faults => {"AdWords::SiteSuggestionService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
|
27
|
-
],
|
28
|
-
[ "",
|
29
|
-
"getSitesByTopics",
|
30
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getSitesByTopics"]],
|
31
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getSitesByTopicsResponse"]] ],
|
32
|
-
{ :request_style => :document, :request_use => :literal,
|
33
|
-
:response_style => :document, :response_use => :literal,
|
34
|
-
:faults => {"AdWords::SiteSuggestionService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
|
35
|
-
],
|
36
|
-
[ "",
|
37
|
-
"getSitesByUrls",
|
38
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getSitesByUrls"]],
|
39
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getSitesByUrlsResponse"]] ],
|
40
|
-
{ :request_style => :document, :request_use => :literal,
|
41
|
-
:response_style => :document, :response_use => :literal,
|
42
|
-
:faults => {"AdWords::SiteSuggestionService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
|
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
|
@@ -1,271 +0,0 @@
|
|
1
|
-
require 'adwords4r/v11/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
|
-
NsV11 = "https://adwords.google.com/api/adwords/v11"
|
10
|
-
|
11
|
-
EncodedRegistry.register(
|
12
|
-
:class => AdWords::SiteSuggestionService::ApiError,
|
13
|
-
:schema_type => XSD::QName.new(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "AgeRange")
|
78
|
-
)
|
79
|
-
|
80
|
-
EncodedRegistry.register(
|
81
|
-
:class => AdWords::SiteSuggestionService::ChildrenTarget,
|
82
|
-
:schema_type => XSD::QName.new(NsV11, "ChildrenTarget")
|
83
|
-
)
|
84
|
-
|
85
|
-
EncodedRegistry.register(
|
86
|
-
:class => AdWords::SiteSuggestionService::EthnicityTarget,
|
87
|
-
:schema_type => XSD::QName.new(NsV11, "EthnicityTarget")
|
88
|
-
)
|
89
|
-
|
90
|
-
EncodedRegistry.register(
|
91
|
-
:class => AdWords::SiteSuggestionService::GenderTarget,
|
92
|
-
:schema_type => XSD::QName.new(NsV11, "GenderTarget")
|
93
|
-
)
|
94
|
-
|
95
|
-
EncodedRegistry.register(
|
96
|
-
:class => AdWords::SiteSuggestionService::HouseholdIncomeRange,
|
97
|
-
:schema_type => XSD::QName.new(NsV11, "HouseholdIncomeRange")
|
98
|
-
)
|
99
|
-
|
100
|
-
LiteralRegistry.register(
|
101
|
-
:class => AdWords::SiteSuggestionService::ApiError,
|
102
|
-
:schema_type => XSD::QName.new(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "AgeRange")
|
167
|
-
)
|
168
|
-
|
169
|
-
LiteralRegistry.register(
|
170
|
-
:class => AdWords::SiteSuggestionService::ChildrenTarget,
|
171
|
-
:schema_type => XSD::QName.new(NsV11, "ChildrenTarget")
|
172
|
-
)
|
173
|
-
|
174
|
-
LiteralRegistry.register(
|
175
|
-
:class => AdWords::SiteSuggestionService::EthnicityTarget,
|
176
|
-
:schema_type => XSD::QName.new(NsV11, "EthnicityTarget")
|
177
|
-
)
|
178
|
-
|
179
|
-
LiteralRegistry.register(
|
180
|
-
:class => AdWords::SiteSuggestionService::GenderTarget,
|
181
|
-
:schema_type => XSD::QName.new(NsV11, "GenderTarget")
|
182
|
-
)
|
183
|
-
|
184
|
-
LiteralRegistry.register(
|
185
|
-
:class => AdWords::SiteSuggestionService::HouseholdIncomeRange,
|
186
|
-
:schema_type => XSD::QName.new(NsV11, "HouseholdIncomeRange")
|
187
|
-
)
|
188
|
-
|
189
|
-
LiteralRegistry.register(
|
190
|
-
:class => AdWords::SiteSuggestionService::ApiException,
|
191
|
-
:schema_name => XSD::QName.new(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "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(NsV11, "getSitesByUrlsResponse"),
|
264
|
-
:schema_element => [
|
265
|
-
["getSitesByUrlsReturn", "AdWords::SiteSuggestionService::SiteSuggestion[]", [1, nil]]
|
266
|
-
]
|
267
|
-
)
|
268
|
-
|
269
|
-
end
|
270
|
-
|
271
|
-
end; end
|