adwords4r 12.0.0 → 12.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/ChangeLog.txt +4 -0
  2. data/Rakefile +1 -1
  3. data/Readme.txt +2 -2
  4. data/adwords.properties +1 -1
  5. data/examples/account_info.rb +131 -0
  6. data/examples/create_all.rb +165 -0
  7. data/examples/keyword_suggestions.rb +2 -2
  8. data/examples/reports.rb +2 -2
  9. data/lib/adwords4r/credentials.rb +11 -0
  10. data/lib/adwords4r/services.rb +0 -2
  11. metadata +24 -60
  12. data/examples/campaign.rb +0 -40
  13. data/examples/framework.rb +0 -8
  14. data/examples/get_free_usage_this_month.rb +0 -20
  15. data/examples/get_unit_count.rb +0 -21
  16. data/examples/keyword_tool_demo.rb +0 -31
  17. data/examples/traffic_estimator.rb +0 -34
  18. data/lib/adwords4r/v11/AccountService.rb +0 -215
  19. data/lib/adwords4r/v11/AccountServiceDriver.rb +0 -69
  20. data/lib/adwords4r/v11/AccountServiceMappingRegistry.rb +0 -243
  21. data/lib/adwords4r/v11/AdGroupService.rb +0 -257
  22. data/lib/adwords4r/v11/AdGroupServiceDriver.rb +0 -109
  23. data/lib/adwords4r/v11/AdGroupServiceMappingRegistry.rb +0 -276
  24. data/lib/adwords4r/v11/AdService.rb +0 -760
  25. data/lib/adwords4r/v11/AdServiceDriver.rb +0 -125
  26. data/lib/adwords4r/v11/AdServiceMappingRegistry.rb +0 -807
  27. data/lib/adwords4r/v11/CampaignService.rb +0 -443
  28. data/lib/adwords4r/v11/CampaignServiceDriver.rb +0 -125
  29. data/lib/adwords4r/v11/CampaignServiceMappingRegistry.rb +0 -564
  30. data/lib/adwords4r/v11/CriterionService.rb +0 -442
  31. data/lib/adwords4r/v11/CriterionServiceDriver.rb +0 -117
  32. data/lib/adwords4r/v11/CriterionServiceMappingRegistry.rb +0 -507
  33. data/lib/adwords4r/v11/InfoService.rb +0 -242
  34. data/lib/adwords4r/v11/InfoServiceDriver.rb +0 -109
  35. data/lib/adwords4r/v11/InfoServiceMappingRegistry.rb +0 -228
  36. data/lib/adwords4r/v11/KeywordToolService.rb +0 -205
  37. data/lib/adwords4r/v11/KeywordToolServiceDriver.rb +0 -61
  38. data/lib/adwords4r/v11/KeywordToolServiceMappingRegistry.rb +0 -227
  39. data/lib/adwords4r/v11/ReportService.rb +0 -322
  40. data/lib/adwords4r/v11/ReportServiceDriver.rb +0 -101
  41. data/lib/adwords4r/v11/ReportServiceMappingRegistry.rb +0 -298
  42. data/lib/adwords4r/v11/SiteSuggestionService.rb +0 -242
  43. data/lib/adwords4r/v11/SiteSuggestionServiceDriver.rb +0 -77
  44. data/lib/adwords4r/v11/SiteSuggestionServiceMappingRegistry.rb +0 -271
  45. data/lib/adwords4r/v11/TrafficEstimatorService.rb +0 -312
  46. data/lib/adwords4r/v11/TrafficEstimatorServiceDriver.rb +0 -77
  47. data/lib/adwords4r/v11/TrafficEstimatorServiceMappingRegistry.rb +0 -483
  48. data/svn-commit.2.tmp +0 -60
  49. data/svn-commit.tmp +0 -60
@@ -1,312 +0,0 @@
1
- require 'xsd/qname'
2
-
3
- module AdWords; module TrafficEstimatorService
4
-
5
-
6
- # {https://adwords.google.com/api/adwords/v11}AdGroupEstimate
7
- # id - SOAP::SOAPInt
8
- # keywordEstimates - AdWords::TrafficEstimatorService::KeywordEstimate
9
- class AdGroupEstimate
10
- attr_accessor :id
11
- attr_accessor :keywordEstimates
12
-
13
- def initialize(id = nil, keywordEstimates = [])
14
- @id = id
15
- @keywordEstimates = keywordEstimates
16
- end
17
- end
18
-
19
- # {https://adwords.google.com/api/adwords/v11}AdGroupRequest
20
- # id - SOAP::SOAPInt
21
- # keywordRequests - AdWords::TrafficEstimatorService::KeywordRequest
22
- # maxCpc - SOAP::SOAPLong
23
- class AdGroupRequest
24
- attr_accessor :id
25
- attr_accessor :keywordRequests
26
- attr_accessor :maxCpc
27
-
28
- def initialize(id = nil, keywordRequests = [], maxCpc = nil)
29
- @id = id
30
- @keywordRequests = keywordRequests
31
- @maxCpc = maxCpc
32
- end
33
- end
34
-
35
- # {https://adwords.google.com/api/adwords/v11}ApiError
36
- # code - SOAP::SOAPInt
37
- # detail - SOAP::SOAPString
38
- # field - SOAP::SOAPString
39
- # index - SOAP::SOAPInt
40
- # isExemptable - SOAP::SOAPBoolean
41
- # textIndex - SOAP::SOAPInt
42
- # textLength - SOAP::SOAPInt
43
- # trigger - SOAP::SOAPString
44
- class ApiError
45
- attr_accessor :code
46
- attr_accessor :detail
47
- attr_accessor :field
48
- attr_accessor :index
49
- attr_accessor :isExemptable
50
- attr_accessor :textIndex
51
- attr_accessor :textLength
52
- attr_accessor :trigger
53
-
54
- def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
55
- @code = code
56
- @detail = detail
57
- @field = field
58
- @index = index
59
- @isExemptable = isExemptable
60
- @textIndex = textIndex
61
- @textLength = textLength
62
- @trigger = trigger
63
- end
64
- end
65
-
66
- # {https://adwords.google.com/api/adwords/v11}ApiException
67
- # code - SOAP::SOAPInt
68
- # errors - AdWords::TrafficEstimatorService::ApiError
69
- # internal - SOAP::SOAPBoolean
70
- # message - SOAP::SOAPString
71
- # trigger - SOAP::SOAPString
72
- class ApiException
73
- attr_accessor :code
74
- attr_accessor :errors
75
- attr_accessor :internal
76
- attr_accessor :message
77
- attr_accessor :trigger
78
-
79
- def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
80
- @code = code
81
- @errors = errors
82
- @internal = internal
83
- @message = message
84
- @trigger = trigger
85
- end
86
- end
87
-
88
- # {https://adwords.google.com/api/adwords/v11}CampaignEstimate
89
- # adGroupEstimates - AdWords::TrafficEstimatorService::AdGroupEstimate
90
- # id - SOAP::SOAPInt
91
- class CampaignEstimate
92
- attr_accessor :adGroupEstimates
93
- attr_accessor :id
94
-
95
- def initialize(adGroupEstimates = [], id = nil)
96
- @adGroupEstimates = adGroupEstimates
97
- @id = id
98
- end
99
- end
100
-
101
- # {https://adwords.google.com/api/adwords/v11}CampaignRequest
102
- # adGroupRequests - AdWords::TrafficEstimatorService::AdGroupRequest
103
- # geoTargeting - AdWords::TrafficEstimatorService::GeoTarget
104
- # id - SOAP::SOAPInt
105
- # languageTargeting - AdWords::TrafficEstimatorService::LanguageTarget
106
- # networkTargeting - AdWords::TrafficEstimatorService::NetworkTarget
107
- class CampaignRequest
108
- attr_accessor :adGroupRequests
109
- attr_accessor :geoTargeting
110
- attr_accessor :id
111
- attr_accessor :languageTargeting
112
- attr_accessor :networkTargeting
113
-
114
- def initialize(adGroupRequests = [], geoTargeting = nil, id = nil, languageTargeting = nil, networkTargeting = nil)
115
- @adGroupRequests = adGroupRequests
116
- @geoTargeting = geoTargeting
117
- @id = id
118
- @languageTargeting = languageTargeting
119
- @networkTargeting = networkTargeting
120
- end
121
- end
122
-
123
- # {https://adwords.google.com/api/adwords/v11}Circle
124
- # latitudeMicroDegrees - SOAP::SOAPInt
125
- # longitudeMicroDegrees - SOAP::SOAPInt
126
- # radiusMeters - SOAP::SOAPInt
127
- class Circle
128
- attr_accessor :latitudeMicroDegrees
129
- attr_accessor :longitudeMicroDegrees
130
- attr_accessor :radiusMeters
131
-
132
- def initialize(latitudeMicroDegrees = nil, longitudeMicroDegrees = nil, radiusMeters = nil)
133
- @latitudeMicroDegrees = latitudeMicroDegrees
134
- @longitudeMicroDegrees = longitudeMicroDegrees
135
- @radiusMeters = radiusMeters
136
- end
137
- end
138
-
139
- # {https://adwords.google.com/api/adwords/v11}CityTargets
140
- class CityTargets < ::Array
141
- end
142
-
143
- # {https://adwords.google.com/api/adwords/v11}CountryTargets
144
- class CountryTargets < ::Array
145
- end
146
-
147
- # {https://adwords.google.com/api/adwords/v11}GeoTarget
148
- # cityTargets - AdWords::TrafficEstimatorService::CityTargets
149
- # countryTargets - AdWords::TrafficEstimatorService::CountryTargets
150
- # metroTargets - AdWords::TrafficEstimatorService::MetroTargets
151
- # proximityTargets - AdWords::TrafficEstimatorService::ProximityTargets
152
- # regionTargets - AdWords::TrafficEstimatorService::RegionTargets
153
- # targetAll - SOAP::SOAPBoolean
154
- class GeoTarget
155
- attr_accessor :cityTargets
156
- attr_accessor :countryTargets
157
- attr_accessor :metroTargets
158
- attr_accessor :proximityTargets
159
- attr_accessor :regionTargets
160
- attr_accessor :targetAll
161
-
162
- def initialize(cityTargets = nil, countryTargets = nil, metroTargets = nil, proximityTargets = nil, regionTargets = nil, targetAll = nil)
163
- @cityTargets = cityTargets
164
- @countryTargets = countryTargets
165
- @metroTargets = metroTargets
166
- @proximityTargets = proximityTargets
167
- @regionTargets = regionTargets
168
- @targetAll = targetAll
169
- end
170
- end
171
-
172
- # {https://adwords.google.com/api/adwords/v11}KeywordEstimate
173
- # id - SOAP::SOAPLong
174
- # lowerAvgPosition - SOAP::SOAPFloat
175
- # lowerClicksPerDay - SOAP::SOAPFloat
176
- # lowerCpc - SOAP::SOAPLong
177
- # upperAvgPosition - SOAP::SOAPFloat
178
- # upperClicksPerDay - SOAP::SOAPFloat
179
- # upperCpc - SOAP::SOAPLong
180
- class KeywordEstimate
181
- attr_accessor :id
182
- attr_accessor :lowerAvgPosition
183
- attr_accessor :lowerClicksPerDay
184
- attr_accessor :lowerCpc
185
- attr_accessor :upperAvgPosition
186
- attr_accessor :upperClicksPerDay
187
- attr_accessor :upperCpc
188
-
189
- def initialize(id = nil, lowerAvgPosition = nil, lowerClicksPerDay = nil, lowerCpc = nil, upperAvgPosition = nil, upperClicksPerDay = nil, upperCpc = nil)
190
- @id = id
191
- @lowerAvgPosition = lowerAvgPosition
192
- @lowerClicksPerDay = lowerClicksPerDay
193
- @lowerCpc = lowerCpc
194
- @upperAvgPosition = upperAvgPosition
195
- @upperClicksPerDay = upperClicksPerDay
196
- @upperCpc = upperCpc
197
- end
198
- end
199
-
200
- # {https://adwords.google.com/api/adwords/v11}KeywordRequest
201
- # id - SOAP::SOAPLong
202
- # maxCpc - SOAP::SOAPLong
203
- # negative - SOAP::SOAPBoolean
204
- # text - SOAP::SOAPString
205
- # type - AdWords::TrafficEstimatorService::KeywordType
206
- class KeywordRequest
207
- attr_accessor :id
208
- attr_accessor :maxCpc
209
- attr_accessor :negative
210
- attr_accessor :text
211
- attr_accessor :type
212
-
213
- def initialize(id = nil, maxCpc = nil, negative = nil, text = nil, type = nil)
214
- @id = id
215
- @maxCpc = maxCpc
216
- @negative = negative
217
- @text = text
218
- @type = type
219
- end
220
- end
221
-
222
- # {https://adwords.google.com/api/adwords/v11}KeywordTrafficRequest
223
- # keywordText - SOAP::SOAPString
224
- # keywordType - AdWords::TrafficEstimatorService::KeywordType
225
- # language - SOAP::SOAPString
226
- class KeywordTrafficRequest
227
- attr_accessor :keywordText
228
- attr_accessor :keywordType
229
- attr_accessor :language
230
-
231
- def initialize(keywordText = nil, keywordType = nil, language = nil)
232
- @keywordText = keywordText
233
- @keywordType = keywordType
234
- @language = language
235
- end
236
- end
237
-
238
- # {https://adwords.google.com/api/adwords/v11}LanguageTarget
239
- class LanguageTarget < ::Array
240
- end
241
-
242
- # {https://adwords.google.com/api/adwords/v11}MetroTargets
243
- class MetroTargets < ::Array
244
- end
245
-
246
- # {https://adwords.google.com/api/adwords/v11}NetworkTarget
247
- class NetworkTarget < ::Array
248
- end
249
-
250
- # {https://adwords.google.com/api/adwords/v11}ProximityTargets
251
- class ProximityTargets < ::Array
252
- end
253
-
254
- # {https://adwords.google.com/api/adwords/v11}RegionTargets
255
- class RegionTargets < ::Array
256
- end
257
-
258
- # {https://adwords.google.com/api/adwords/v11}KeywordTraffic
259
- class KeywordTraffic < ::String
260
- HasTraffic = KeywordTraffic.new("HasTraffic")
261
- Unknown = KeywordTraffic.new("Unknown")
262
- VeryLowTraffic = KeywordTraffic.new("VeryLowTraffic")
263
- end
264
-
265
- # {https://adwords.google.com/api/adwords/v11}KeywordType
266
- class KeywordType < ::String
267
- Broad = KeywordType.new("Broad")
268
- Exact = KeywordType.new("Exact")
269
- Phrase = KeywordType.new("Phrase")
270
- end
271
-
272
- # {https://adwords.google.com/api/adwords/v11}NetworkType
273
- class NetworkType < ::String
274
- ContentNetwork = NetworkType.new("ContentNetwork")
275
- GoogleSearch = NetworkType.new("GoogleSearch")
276
- SearchNetwork = NetworkType.new("SearchNetwork")
277
- end
278
-
279
- # {https://adwords.google.com/api/adwords/v11}checkKeywordTraffic
280
- class CheckKeywordTraffic < ::Array
281
- end
282
-
283
- # {https://adwords.google.com/api/adwords/v11}checkKeywordTrafficResponse
284
- class CheckKeywordTrafficResponse < ::Array
285
- end
286
-
287
- # {https://adwords.google.com/api/adwords/v11}estimateAdGroupList
288
- class EstimateAdGroupList < ::Array
289
- end
290
-
291
- # {https://adwords.google.com/api/adwords/v11}estimateAdGroupListResponse
292
- class EstimateAdGroupListResponse < ::Array
293
- end
294
-
295
- # {https://adwords.google.com/api/adwords/v11}estimateCampaignList
296
- class EstimateCampaignList < ::Array
297
- end
298
-
299
- # {https://adwords.google.com/api/adwords/v11}estimateCampaignListResponse
300
- class EstimateCampaignListResponse < ::Array
301
- end
302
-
303
- # {https://adwords.google.com/api/adwords/v11}estimateKeywordList
304
- class EstimateKeywordList < ::Array
305
- end
306
-
307
- # {https://adwords.google.com/api/adwords/v11}estimateKeywordListResponse
308
- class EstimateKeywordListResponse < ::Array
309
- end
310
-
311
-
312
- end; end
@@ -1,77 +0,0 @@
1
- require 'adwords4r/v11/TrafficEstimatorService'
2
- require 'adwords4r/v11/TrafficEstimatorServiceMappingRegistry'
3
- require 'soap/rpc/driver'
4
-
5
- module AdWords
6
- module TrafficEstimatorService
7
-
8
- class TrafficEstimatorInterface < ::SOAP::RPC::Driver
9
- DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v11/TrafficEstimatorService"
10
-
11
- Methods = [
12
- [ "",
13
- "checkKeywordTraffic",
14
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "checkKeywordTraffic"]],
15
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "checkKeywordTrafficResponse"]] ],
16
- { :request_style => :document, :request_use => :literal,
17
- :response_style => :document, :response_use => :literal,
18
- :faults => {"AdWords::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
19
- ],
20
- [ "",
21
- "estimateAdGroupList",
22
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "estimateAdGroupList"]],
23
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "estimateAdGroupListResponse"]] ],
24
- { :request_style => :document, :request_use => :literal,
25
- :response_style => :document, :response_use => :literal,
26
- :faults => {"AdWords::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
27
- ],
28
- [ "",
29
- "estimateCampaignList",
30
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "estimateCampaignList"]],
31
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "estimateCampaignListResponse"]] ],
32
- { :request_style => :document, :request_use => :literal,
33
- :response_style => :document, :response_use => :literal,
34
- :faults => {"AdWords::TrafficEstimatorService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
35
- ],
36
- [ "",
37
- "estimateKeywordList",
38
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "estimateKeywordList"]],
39
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "estimateKeywordListResponse"]] ],
40
- { :request_style => :document, :request_use => :literal,
41
- :response_style => :document, :response_use => :literal,
42
- :faults => {"AdWords::TrafficEstimatorService::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,483 +0,0 @@
1
- require 'adwords4r/v11/TrafficEstimatorService'
2
- require 'soap/mapping'
3
-
4
- module AdWords; module TrafficEstimatorService
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::TrafficEstimatorService::AdGroupEstimate,
13
- :schema_type => XSD::QName.new(NsV11, "AdGroupEstimate"),
14
- :schema_element => [
15
- ["id", "SOAP::SOAPInt", [0, 1]],
16
- ["keywordEstimates", "AdWords::TrafficEstimatorService::KeywordEstimate[]", [1, nil]]
17
- ]
18
- )
19
-
20
- EncodedRegistry.register(
21
- :class => AdWords::TrafficEstimatorService::AdGroupRequest,
22
- :schema_type => XSD::QName.new(NsV11, "AdGroupRequest"),
23
- :schema_element => [
24
- ["id", "SOAP::SOAPInt", [0, 1]],
25
- ["keywordRequests", "AdWords::TrafficEstimatorService::KeywordRequest[]", [1, nil]],
26
- ["maxCpc", "SOAP::SOAPLong", [0, 1]]
27
- ]
28
- )
29
-
30
- EncodedRegistry.register(
31
- :class => AdWords::TrafficEstimatorService::ApiError,
32
- :schema_type => XSD::QName.new(NsV11, "ApiError"),
33
- :schema_element => [
34
- ["code", "SOAP::SOAPInt"],
35
- ["detail", "SOAP::SOAPString"],
36
- ["field", "SOAP::SOAPString", [0, 1]],
37
- ["index", "SOAP::SOAPInt"],
38
- ["isExemptable", "SOAP::SOAPBoolean"],
39
- ["textIndex", "SOAP::SOAPInt", [0, 1]],
40
- ["textLength", "SOAP::SOAPInt", [0, 1]],
41
- ["trigger", "SOAP::SOAPString", [0, 1]]
42
- ]
43
- )
44
-
45
- EncodedRegistry.register(
46
- :class => AdWords::TrafficEstimatorService::ApiException,
47
- :schema_type => XSD::QName.new(NsV11, "ApiException"),
48
- :schema_element => [
49
- ["code", "SOAP::SOAPInt"],
50
- ["errors", "AdWords::TrafficEstimatorService::ApiError[]", [1, nil]],
51
- ["internal", "SOAP::SOAPBoolean"],
52
- ["message", "SOAP::SOAPString"],
53
- ["trigger", "SOAP::SOAPString"]
54
- ]
55
- )
56
-
57
- EncodedRegistry.register(
58
- :class => AdWords::TrafficEstimatorService::CampaignEstimate,
59
- :schema_type => XSD::QName.new(NsV11, "CampaignEstimate"),
60
- :schema_element => [
61
- ["adGroupEstimates", "AdWords::TrafficEstimatorService::AdGroupEstimate[]", [1, nil]],
62
- ["id", "SOAP::SOAPInt", [0, 1]]
63
- ]
64
- )
65
-
66
- EncodedRegistry.register(
67
- :class => AdWords::TrafficEstimatorService::CampaignRequest,
68
- :schema_type => XSD::QName.new(NsV11, "CampaignRequest"),
69
- :schema_element => [
70
- ["adGroupRequests", "AdWords::TrafficEstimatorService::AdGroupRequest[]", [1, nil]],
71
- ["geoTargeting", "AdWords::TrafficEstimatorService::GeoTarget", [0, 1]],
72
- ["id", "SOAP::SOAPInt", [0, 1]],
73
- ["languageTargeting", "AdWords::TrafficEstimatorService::LanguageTarget", [0, 1]],
74
- ["networkTargeting", "AdWords::TrafficEstimatorService::NetworkTarget", [0, 1]]
75
- ]
76
- )
77
-
78
- EncodedRegistry.register(
79
- :class => AdWords::TrafficEstimatorService::Circle,
80
- :schema_type => XSD::QName.new(NsV11, "Circle"),
81
- :schema_element => [
82
- ["latitudeMicroDegrees", "SOAP::SOAPInt"],
83
- ["longitudeMicroDegrees", "SOAP::SOAPInt"],
84
- ["radiusMeters", "SOAP::SOAPInt"]
85
- ]
86
- )
87
-
88
- EncodedRegistry.register(
89
- :class => AdWords::TrafficEstimatorService::CityTargets,
90
- :schema_type => XSD::QName.new(NsV11, "CityTargets"),
91
- :schema_element => [
92
- ["cities", "SOAP::SOAPString[]", [0, nil]]
93
- ]
94
- )
95
-
96
- EncodedRegistry.register(
97
- :class => AdWords::TrafficEstimatorService::CountryTargets,
98
- :schema_type => XSD::QName.new(NsV11, "CountryTargets"),
99
- :schema_element => [
100
- ["countries", "SOAP::SOAPString[]", [0, nil]]
101
- ]
102
- )
103
-
104
- EncodedRegistry.register(
105
- :class => AdWords::TrafficEstimatorService::GeoTarget,
106
- :schema_type => XSD::QName.new(NsV11, "GeoTarget"),
107
- :schema_element => [
108
- ["cityTargets", "AdWords::TrafficEstimatorService::CityTargets", [0, 1]],
109
- ["countryTargets", "AdWords::TrafficEstimatorService::CountryTargets", [0, 1]],
110
- ["metroTargets", "AdWords::TrafficEstimatorService::MetroTargets", [0, 1]],
111
- ["proximityTargets", "AdWords::TrafficEstimatorService::ProximityTargets", [0, 1]],
112
- ["regionTargets", "AdWords::TrafficEstimatorService::RegionTargets", [0, 1]],
113
- ["targetAll", "SOAP::SOAPBoolean"]
114
- ]
115
- )
116
-
117
- EncodedRegistry.register(
118
- :class => AdWords::TrafficEstimatorService::KeywordEstimate,
119
- :schema_type => XSD::QName.new(NsV11, "KeywordEstimate"),
120
- :schema_element => [
121
- ["id", "SOAP::SOAPLong", [0, 1]],
122
- ["lowerAvgPosition", "SOAP::SOAPFloat"],
123
- ["lowerClicksPerDay", "SOAP::SOAPFloat"],
124
- ["lowerCpc", "SOAP::SOAPLong"],
125
- ["upperAvgPosition", "SOAP::SOAPFloat"],
126
- ["upperClicksPerDay", "SOAP::SOAPFloat"],
127
- ["upperCpc", "SOAP::SOAPLong"]
128
- ]
129
- )
130
-
131
- EncodedRegistry.register(
132
- :class => AdWords::TrafficEstimatorService::KeywordRequest,
133
- :schema_type => XSD::QName.new(NsV11, "KeywordRequest"),
134
- :schema_element => [
135
- ["id", "SOAP::SOAPLong", [0, 1]],
136
- ["maxCpc", "SOAP::SOAPLong", [0, 1]],
137
- ["negative", "SOAP::SOAPBoolean", [0, 1]],
138
- ["text", "SOAP::SOAPString", [0, 1]],
139
- ["type", "AdWords::TrafficEstimatorService::KeywordType", [0, 1]]
140
- ]
141
- )
142
-
143
- EncodedRegistry.register(
144
- :class => AdWords::TrafficEstimatorService::KeywordTrafficRequest,
145
- :schema_type => XSD::QName.new(NsV11, "KeywordTrafficRequest"),
146
- :schema_element => [
147
- ["keywordText", "SOAP::SOAPString"],
148
- ["keywordType", "AdWords::TrafficEstimatorService::KeywordType"],
149
- ["language", "SOAP::SOAPString", [0, 1]]
150
- ]
151
- )
152
-
153
- EncodedRegistry.register(
154
- :class => AdWords::TrafficEstimatorService::LanguageTarget,
155
- :schema_type => XSD::QName.new(NsV11, "LanguageTarget"),
156
- :schema_element => [
157
- ["languages", "SOAP::SOAPString[]", [1, nil]]
158
- ]
159
- )
160
-
161
- EncodedRegistry.register(
162
- :class => AdWords::TrafficEstimatorService::MetroTargets,
163
- :schema_type => XSD::QName.new(NsV11, "MetroTargets"),
164
- :schema_element => [
165
- ["metros", "SOAP::SOAPString[]", [0, nil]]
166
- ]
167
- )
168
-
169
- EncodedRegistry.register(
170
- :class => AdWords::TrafficEstimatorService::NetworkTarget,
171
- :schema_type => XSD::QName.new(NsV11, "NetworkTarget"),
172
- :schema_element => [
173
- ["networkTypes", "AdWords::TrafficEstimatorService::NetworkType[]", [0, nil]]
174
- ]
175
- )
176
-
177
- EncodedRegistry.register(
178
- :class => AdWords::TrafficEstimatorService::ProximityTargets,
179
- :schema_type => XSD::QName.new(NsV11, "ProximityTargets"),
180
- :schema_element => [
181
- ["circles", "AdWords::TrafficEstimatorService::Circle[]", [1, nil]]
182
- ]
183
- )
184
-
185
- EncodedRegistry.register(
186
- :class => AdWords::TrafficEstimatorService::RegionTargets,
187
- :schema_type => XSD::QName.new(NsV11, "RegionTargets"),
188
- :schema_element => [
189
- ["regions", "SOAP::SOAPString[]", [0, nil]]
190
- ]
191
- )
192
-
193
- EncodedRegistry.register(
194
- :class => AdWords::TrafficEstimatorService::KeywordTraffic,
195
- :schema_type => XSD::QName.new(NsV11, "KeywordTraffic")
196
- )
197
-
198
- EncodedRegistry.register(
199
- :class => AdWords::TrafficEstimatorService::KeywordType,
200
- :schema_type => XSD::QName.new(NsV11, "KeywordType")
201
- )
202
-
203
- EncodedRegistry.register(
204
- :class => AdWords::TrafficEstimatorService::NetworkType,
205
- :schema_type => XSD::QName.new(NsV11, "NetworkType")
206
- )
207
-
208
- LiteralRegistry.register(
209
- :class => AdWords::TrafficEstimatorService::AdGroupEstimate,
210
- :schema_type => XSD::QName.new(NsV11, "AdGroupEstimate"),
211
- :schema_element => [
212
- ["id", "SOAP::SOAPInt", [0, 1]],
213
- ["keywordEstimates", "AdWords::TrafficEstimatorService::KeywordEstimate[]", [1, nil]]
214
- ]
215
- )
216
-
217
- LiteralRegistry.register(
218
- :class => AdWords::TrafficEstimatorService::AdGroupRequest,
219
- :schema_type => XSD::QName.new(NsV11, "AdGroupRequest"),
220
- :schema_element => [
221
- ["id", "SOAP::SOAPInt", [0, 1]],
222
- ["keywordRequests", "AdWords::TrafficEstimatorService::KeywordRequest[]", [1, nil]],
223
- ["maxCpc", "SOAP::SOAPLong", [0, 1]]
224
- ]
225
- )
226
-
227
- LiteralRegistry.register(
228
- :class => AdWords::TrafficEstimatorService::ApiError,
229
- :schema_type => XSD::QName.new(NsV11, "ApiError"),
230
- :schema_element => [
231
- ["code", "SOAP::SOAPInt"],
232
- ["detail", "SOAP::SOAPString"],
233
- ["field", "SOAP::SOAPString", [0, 1]],
234
- ["index", "SOAP::SOAPInt"],
235
- ["isExemptable", "SOAP::SOAPBoolean"],
236
- ["textIndex", "SOAP::SOAPInt", [0, 1]],
237
- ["textLength", "SOAP::SOAPInt", [0, 1]],
238
- ["trigger", "SOAP::SOAPString", [0, 1]]
239
- ]
240
- )
241
-
242
- LiteralRegistry.register(
243
- :class => AdWords::TrafficEstimatorService::ApiException,
244
- :schema_type => XSD::QName.new(NsV11, "ApiException"),
245
- :schema_element => [
246
- ["code", "SOAP::SOAPInt"],
247
- ["errors", "AdWords::TrafficEstimatorService::ApiError[]", [1, nil]],
248
- ["internal", "SOAP::SOAPBoolean"],
249
- ["message", "SOAP::SOAPString"],
250
- ["trigger", "SOAP::SOAPString"]
251
- ]
252
- )
253
-
254
- LiteralRegistry.register(
255
- :class => AdWords::TrafficEstimatorService::CampaignEstimate,
256
- :schema_type => XSD::QName.new(NsV11, "CampaignEstimate"),
257
- :schema_element => [
258
- ["adGroupEstimates", "AdWords::TrafficEstimatorService::AdGroupEstimate[]", [1, nil]],
259
- ["id", "SOAP::SOAPInt", [0, 1]]
260
- ]
261
- )
262
-
263
- LiteralRegistry.register(
264
- :class => AdWords::TrafficEstimatorService::CampaignRequest,
265
- :schema_type => XSD::QName.new(NsV11, "CampaignRequest"),
266
- :schema_element => [
267
- ["adGroupRequests", "AdWords::TrafficEstimatorService::AdGroupRequest[]", [1, nil]],
268
- ["geoTargeting", "AdWords::TrafficEstimatorService::GeoTarget", [0, 1]],
269
- ["id", "SOAP::SOAPInt", [0, 1]],
270
- ["languageTargeting", "AdWords::TrafficEstimatorService::LanguageTarget", [0, 1]],
271
- ["networkTargeting", "AdWords::TrafficEstimatorService::NetworkTarget", [0, 1]]
272
- ]
273
- )
274
-
275
- LiteralRegistry.register(
276
- :class => AdWords::TrafficEstimatorService::Circle,
277
- :schema_type => XSD::QName.new(NsV11, "Circle"),
278
- :schema_element => [
279
- ["latitudeMicroDegrees", "SOAP::SOAPInt"],
280
- ["longitudeMicroDegrees", "SOAP::SOAPInt"],
281
- ["radiusMeters", "SOAP::SOAPInt"]
282
- ]
283
- )
284
-
285
- LiteralRegistry.register(
286
- :class => AdWords::TrafficEstimatorService::CityTargets,
287
- :schema_type => XSD::QName.new(NsV11, "CityTargets"),
288
- :schema_element => [
289
- ["cities", "SOAP::SOAPString[]", [0, nil]]
290
- ]
291
- )
292
-
293
- LiteralRegistry.register(
294
- :class => AdWords::TrafficEstimatorService::CountryTargets,
295
- :schema_type => XSD::QName.new(NsV11, "CountryTargets"),
296
- :schema_element => [
297
- ["countries", "SOAP::SOAPString[]", [0, nil]]
298
- ]
299
- )
300
-
301
- LiteralRegistry.register(
302
- :class => AdWords::TrafficEstimatorService::GeoTarget,
303
- :schema_type => XSD::QName.new(NsV11, "GeoTarget"),
304
- :schema_element => [
305
- ["cityTargets", "AdWords::TrafficEstimatorService::CityTargets", [0, 1]],
306
- ["countryTargets", "AdWords::TrafficEstimatorService::CountryTargets", [0, 1]],
307
- ["metroTargets", "AdWords::TrafficEstimatorService::MetroTargets", [0, 1]],
308
- ["proximityTargets", "AdWords::TrafficEstimatorService::ProximityTargets", [0, 1]],
309
- ["regionTargets", "AdWords::TrafficEstimatorService::RegionTargets", [0, 1]],
310
- ["targetAll", "SOAP::SOAPBoolean"]
311
- ]
312
- )
313
-
314
- LiteralRegistry.register(
315
- :class => AdWords::TrafficEstimatorService::KeywordEstimate,
316
- :schema_type => XSD::QName.new(NsV11, "KeywordEstimate"),
317
- :schema_element => [
318
- ["id", "SOAP::SOAPLong", [0, 1]],
319
- ["lowerAvgPosition", "SOAP::SOAPFloat"],
320
- ["lowerClicksPerDay", "SOAP::SOAPFloat"],
321
- ["lowerCpc", "SOAP::SOAPLong"],
322
- ["upperAvgPosition", "SOAP::SOAPFloat"],
323
- ["upperClicksPerDay", "SOAP::SOAPFloat"],
324
- ["upperCpc", "SOAP::SOAPLong"]
325
- ]
326
- )
327
-
328
- LiteralRegistry.register(
329
- :class => AdWords::TrafficEstimatorService::KeywordRequest,
330
- :schema_type => XSD::QName.new(NsV11, "KeywordRequest"),
331
- :schema_element => [
332
- ["id", "SOAP::SOAPLong", [0, 1]],
333
- ["maxCpc", "SOAP::SOAPLong", [0, 1]],
334
- ["negative", "SOAP::SOAPBoolean", [0, 1]],
335
- ["text", "SOAP::SOAPString", [0, 1]],
336
- ["type", "AdWords::TrafficEstimatorService::KeywordType", [0, 1]]
337
- ]
338
- )
339
-
340
- LiteralRegistry.register(
341
- :class => AdWords::TrafficEstimatorService::KeywordTrafficRequest,
342
- :schema_type => XSD::QName.new(NsV11, "KeywordTrafficRequest"),
343
- :schema_element => [
344
- ["keywordText", "SOAP::SOAPString"],
345
- ["keywordType", "AdWords::TrafficEstimatorService::KeywordType"],
346
- ["language", "SOAP::SOAPString", [0, 1]]
347
- ]
348
- )
349
-
350
- LiteralRegistry.register(
351
- :class => AdWords::TrafficEstimatorService::LanguageTarget,
352
- :schema_type => XSD::QName.new(NsV11, "LanguageTarget"),
353
- :schema_element => [
354
- ["languages", "SOAP::SOAPString[]", [1, nil]]
355
- ]
356
- )
357
-
358
- LiteralRegistry.register(
359
- :class => AdWords::TrafficEstimatorService::MetroTargets,
360
- :schema_type => XSD::QName.new(NsV11, "MetroTargets"),
361
- :schema_element => [
362
- ["metros", "SOAP::SOAPString[]", [0, nil]]
363
- ]
364
- )
365
-
366
- LiteralRegistry.register(
367
- :class => AdWords::TrafficEstimatorService::NetworkTarget,
368
- :schema_type => XSD::QName.new(NsV11, "NetworkTarget"),
369
- :schema_element => [
370
- ["networkTypes", "AdWords::TrafficEstimatorService::NetworkType[]", [0, nil]]
371
- ]
372
- )
373
-
374
- LiteralRegistry.register(
375
- :class => AdWords::TrafficEstimatorService::ProximityTargets,
376
- :schema_type => XSD::QName.new(NsV11, "ProximityTargets"),
377
- :schema_element => [
378
- ["circles", "AdWords::TrafficEstimatorService::Circle[]", [1, nil]]
379
- ]
380
- )
381
-
382
- LiteralRegistry.register(
383
- :class => AdWords::TrafficEstimatorService::RegionTargets,
384
- :schema_type => XSD::QName.new(NsV11, "RegionTargets"),
385
- :schema_element => [
386
- ["regions", "SOAP::SOAPString[]", [0, nil]]
387
- ]
388
- )
389
-
390
- LiteralRegistry.register(
391
- :class => AdWords::TrafficEstimatorService::KeywordTraffic,
392
- :schema_type => XSD::QName.new(NsV11, "KeywordTraffic")
393
- )
394
-
395
- LiteralRegistry.register(
396
- :class => AdWords::TrafficEstimatorService::KeywordType,
397
- :schema_type => XSD::QName.new(NsV11, "KeywordType")
398
- )
399
-
400
- LiteralRegistry.register(
401
- :class => AdWords::TrafficEstimatorService::NetworkType,
402
- :schema_type => XSD::QName.new(NsV11, "NetworkType")
403
- )
404
-
405
- LiteralRegistry.register(
406
- :class => AdWords::TrafficEstimatorService::CheckKeywordTraffic,
407
- :schema_name => XSD::QName.new(NsV11, "checkKeywordTraffic"),
408
- :schema_element => [
409
- ["requests", "AdWords::TrafficEstimatorService::KeywordTrafficRequest[]", [1, nil]]
410
- ]
411
- )
412
-
413
- LiteralRegistry.register(
414
- :class => AdWords::TrafficEstimatorService::CheckKeywordTrafficResponse,
415
- :schema_name => XSD::QName.new(NsV11, "checkKeywordTrafficResponse"),
416
- :schema_element => [
417
- ["checkKeywordTrafficReturn", "AdWords::TrafficEstimatorService::KeywordTraffic[]", [1, nil]]
418
- ]
419
- )
420
-
421
- LiteralRegistry.register(
422
- :class => AdWords::TrafficEstimatorService::EstimateAdGroupList,
423
- :schema_name => XSD::QName.new(NsV11, "estimateAdGroupList"),
424
- :schema_element => [
425
- ["adGroupRequests", "AdWords::TrafficEstimatorService::AdGroupRequest[]", [1, nil]]
426
- ]
427
- )
428
-
429
- LiteralRegistry.register(
430
- :class => AdWords::TrafficEstimatorService::EstimateAdGroupListResponse,
431
- :schema_name => XSD::QName.new(NsV11, "estimateAdGroupListResponse"),
432
- :schema_element => [
433
- ["estimateAdGroupListReturn", "AdWords::TrafficEstimatorService::AdGroupEstimate[]", [1, nil]]
434
- ]
435
- )
436
-
437
- LiteralRegistry.register(
438
- :class => AdWords::TrafficEstimatorService::EstimateCampaignList,
439
- :schema_name => XSD::QName.new(NsV11, "estimateCampaignList"),
440
- :schema_element => [
441
- ["campaignRequests", "AdWords::TrafficEstimatorService::CampaignRequest[]", [1, nil]]
442
- ]
443
- )
444
-
445
- LiteralRegistry.register(
446
- :class => AdWords::TrafficEstimatorService::EstimateCampaignListResponse,
447
- :schema_name => XSD::QName.new(NsV11, "estimateCampaignListResponse"),
448
- :schema_element => [
449
- ["estimateCampaignListReturn", "AdWords::TrafficEstimatorService::CampaignEstimate[]", [1, nil]]
450
- ]
451
- )
452
-
453
- LiteralRegistry.register(
454
- :class => AdWords::TrafficEstimatorService::EstimateKeywordList,
455
- :schema_name => XSD::QName.new(NsV11, "estimateKeywordList"),
456
- :schema_element => [
457
- ["keywordRequests", "AdWords::TrafficEstimatorService::KeywordRequest[]", [1, nil]]
458
- ]
459
- )
460
-
461
- LiteralRegistry.register(
462
- :class => AdWords::TrafficEstimatorService::EstimateKeywordListResponse,
463
- :schema_name => XSD::QName.new(NsV11, "estimateKeywordListResponse"),
464
- :schema_element => [
465
- ["estimateKeywordListReturn", "AdWords::TrafficEstimatorService::KeywordEstimate[]", [1, nil]]
466
- ]
467
- )
468
-
469
- LiteralRegistry.register(
470
- :class => AdWords::TrafficEstimatorService::ApiException,
471
- :schema_name => XSD::QName.new(NsV11, "fault"),
472
- :schema_element => [
473
- ["code", "SOAP::SOAPInt"],
474
- ["errors", "AdWords::TrafficEstimatorService::ApiError[]", [1, nil]],
475
- ["internal", "SOAP::SOAPBoolean"],
476
- ["message", "SOAP::SOAPString"],
477
- ["trigger", "SOAP::SOAPString"]
478
- ]
479
- )
480
-
481
- end
482
-
483
- end; end