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.
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,443 +0,0 @@
1
- require 'xsd/qname'
2
-
3
- module AdWords; module CampaignService
4
-
5
-
6
- # {https://adwords.google.com/api/adwords/v11}AdSchedule
7
- # intervals - AdWords::CampaignService::SchedulingInterval
8
- # status - AdWords::CampaignService::AdScheduleStatus
9
- class AdSchedule
10
- attr_accessor :intervals
11
- attr_accessor :status
12
-
13
- def initialize(intervals = [], status = nil)
14
- @intervals = intervals
15
- @status = status
16
- end
17
- end
18
-
19
- # {https://adwords.google.com/api/adwords/v11}ApiError
20
- # code - SOAP::SOAPInt
21
- # detail - SOAP::SOAPString
22
- # field - SOAP::SOAPString
23
- # index - SOAP::SOAPInt
24
- # isExemptable - SOAP::SOAPBoolean
25
- # textIndex - SOAP::SOAPInt
26
- # textLength - SOAP::SOAPInt
27
- # trigger - SOAP::SOAPString
28
- class ApiError
29
- attr_accessor :code
30
- attr_accessor :detail
31
- attr_accessor :field
32
- attr_accessor :index
33
- attr_accessor :isExemptable
34
- attr_accessor :textIndex
35
- attr_accessor :textLength
36
- attr_accessor :trigger
37
-
38
- def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
39
- @code = code
40
- @detail = detail
41
- @field = field
42
- @index = index
43
- @isExemptable = isExemptable
44
- @textIndex = textIndex
45
- @textLength = textLength
46
- @trigger = trigger
47
- end
48
- end
49
-
50
- # {https://adwords.google.com/api/adwords/v11}ApiException
51
- # code - SOAP::SOAPInt
52
- # errors - AdWords::CampaignService::ApiError
53
- # internal - SOAP::SOAPBoolean
54
- # message - SOAP::SOAPString
55
- # trigger - SOAP::SOAPString
56
- class ApiException
57
- attr_accessor :code
58
- attr_accessor :errors
59
- attr_accessor :internal
60
- attr_accessor :message
61
- attr_accessor :trigger
62
-
63
- def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
64
- @code = code
65
- @errors = errors
66
- @internal = internal
67
- @message = message
68
- @trigger = trigger
69
- end
70
- end
71
-
72
- # {https://adwords.google.com/api/adwords/v11}BudgetOptimizerSettings
73
- # bidCeiling - SOAP::SOAPLong
74
- # enabled - SOAP::SOAPBoolean
75
- # takeOnOptimizedBids - SOAP::SOAPBoolean
76
- class BudgetOptimizerSettings
77
- attr_accessor :bidCeiling
78
- attr_accessor :enabled
79
- attr_accessor :takeOnOptimizedBids
80
-
81
- def initialize(bidCeiling = nil, enabled = nil, takeOnOptimizedBids = nil)
82
- @bidCeiling = bidCeiling
83
- @enabled = enabled
84
- @takeOnOptimizedBids = takeOnOptimizedBids
85
- end
86
- end
87
-
88
- # {https://adwords.google.com/api/adwords/v11}Campaign
89
- # budgetOptimizerSettings - AdWords::CampaignService::BudgetOptimizerSettings
90
- # dailyBudget - SOAP::SOAPLong
91
- # enableSeparateContentBids - SOAP::SOAPBoolean
92
- # endDay - SOAP::SOAPDate
93
- # geoTargeting - AdWords::CampaignService::GeoTarget
94
- # id - SOAP::SOAPInt
95
- # languageTargeting - AdWords::CampaignService::LanguageTarget
96
- # name - SOAP::SOAPString
97
- # networkTargeting - AdWords::CampaignService::NetworkTarget
98
- # schedule - AdWords::CampaignService::AdSchedule
99
- # startDay - SOAP::SOAPDate
100
- # status - AdWords::CampaignService::CampaignStatus
101
- class Campaign
102
- attr_accessor :budgetOptimizerSettings
103
- attr_accessor :dailyBudget
104
- attr_accessor :enableSeparateContentBids
105
- attr_accessor :endDay
106
- attr_accessor :geoTargeting
107
- attr_accessor :id
108
- attr_accessor :languageTargeting
109
- attr_accessor :name
110
- attr_accessor :networkTargeting
111
- attr_accessor :schedule
112
- attr_accessor :startDay
113
- attr_accessor :status
114
-
115
- def initialize(budgetOptimizerSettings = nil, dailyBudget = nil, enableSeparateContentBids = nil, endDay = nil, geoTargeting = nil, id = nil, languageTargeting = nil, name = nil, networkTargeting = nil, schedule = nil, startDay = nil, status = nil)
116
- @budgetOptimizerSettings = budgetOptimizerSettings
117
- @dailyBudget = dailyBudget
118
- @enableSeparateContentBids = enableSeparateContentBids
119
- @endDay = endDay
120
- @geoTargeting = geoTargeting
121
- @id = id
122
- @languageTargeting = languageTargeting
123
- @name = name
124
- @networkTargeting = networkTargeting
125
- @schedule = schedule
126
- @startDay = startDay
127
- @status = status
128
- end
129
- end
130
-
131
- # {https://adwords.google.com/api/adwords/v11}Circle
132
- # latitudeMicroDegrees - SOAP::SOAPInt
133
- # longitudeMicroDegrees - SOAP::SOAPInt
134
- # radiusMeters - SOAP::SOAPInt
135
- class Circle
136
- attr_accessor :latitudeMicroDegrees
137
- attr_accessor :longitudeMicroDegrees
138
- attr_accessor :radiusMeters
139
-
140
- def initialize(latitudeMicroDegrees = nil, longitudeMicroDegrees = nil, radiusMeters = nil)
141
- @latitudeMicroDegrees = latitudeMicroDegrees
142
- @longitudeMicroDegrees = longitudeMicroDegrees
143
- @radiusMeters = radiusMeters
144
- end
145
- end
146
-
147
- # {https://adwords.google.com/api/adwords/v11}CityTargets
148
- class CityTargets < ::Array
149
- end
150
-
151
- # {https://adwords.google.com/api/adwords/v11}CountryTargets
152
- class CountryTargets < ::Array
153
- end
154
-
155
- # {https://adwords.google.com/api/adwords/v11}GeoTarget
156
- # cityTargets - AdWords::CampaignService::CityTargets
157
- # countryTargets - AdWords::CampaignService::CountryTargets
158
- # metroTargets - AdWords::CampaignService::MetroTargets
159
- # proximityTargets - AdWords::CampaignService::ProximityTargets
160
- # regionTargets - AdWords::CampaignService::RegionTargets
161
- # targetAll - SOAP::SOAPBoolean
162
- class GeoTarget
163
- attr_accessor :cityTargets
164
- attr_accessor :countryTargets
165
- attr_accessor :metroTargets
166
- attr_accessor :proximityTargets
167
- attr_accessor :regionTargets
168
- attr_accessor :targetAll
169
-
170
- def initialize(cityTargets = nil, countryTargets = nil, metroTargets = nil, proximityTargets = nil, regionTargets = nil, targetAll = nil)
171
- @cityTargets = cityTargets
172
- @countryTargets = countryTargets
173
- @metroTargets = metroTargets
174
- @proximityTargets = proximityTargets
175
- @regionTargets = regionTargets
176
- @targetAll = targetAll
177
- end
178
- end
179
-
180
- # {https://adwords.google.com/api/adwords/v11}LanguageTarget
181
- class LanguageTarget < ::Array
182
- end
183
-
184
- # {https://adwords.google.com/api/adwords/v11}MetroTargets
185
- class MetroTargets < ::Array
186
- end
187
-
188
- # {https://adwords.google.com/api/adwords/v11}NetworkTarget
189
- class NetworkTarget < ::Array
190
- end
191
-
192
- # {https://adwords.google.com/api/adwords/v11}ProximityTargets
193
- class ProximityTargets < ::Array
194
- end
195
-
196
- # {https://adwords.google.com/api/adwords/v11}RegionTargets
197
- class RegionTargets < ::Array
198
- end
199
-
200
- # {https://adwords.google.com/api/adwords/v11}SchedulingInterval
201
- # day - AdWords::CampaignService::DayOfWeek
202
- # endHour - SOAP::SOAPInt
203
- # endMinute - SOAP::SOAPInt
204
- # multiplier - SOAP::SOAPDouble
205
- # startHour - SOAP::SOAPInt
206
- # startMinute - SOAP::SOAPInt
207
- class SchedulingInterval
208
- attr_accessor :day
209
- attr_accessor :endHour
210
- attr_accessor :endMinute
211
- attr_accessor :multiplier
212
- attr_accessor :startHour
213
- attr_accessor :startMinute
214
-
215
- def initialize(day = nil, endHour = nil, endMinute = nil, multiplier = nil, startHour = nil, startMinute = nil)
216
- @day = day
217
- @endHour = endHour
218
- @endMinute = endMinute
219
- @multiplier = multiplier
220
- @startHour = startHour
221
- @startMinute = startMinute
222
- end
223
- end
224
-
225
- # {https://adwords.google.com/api/adwords/v11}StatsRecord
226
- # averagePosition - SOAP::SOAPDouble
227
- # clicks - SOAP::SOAPLong
228
- # conversionRate - SOAP::SOAPDouble
229
- # conversions - SOAP::SOAPLong
230
- # cost - SOAP::SOAPLong
231
- # id - SOAP::SOAPLong
232
- # impressions - SOAP::SOAPLong
233
- class StatsRecord
234
- attr_accessor :averagePosition
235
- attr_accessor :clicks
236
- attr_accessor :conversionRate
237
- attr_accessor :conversions
238
- attr_accessor :cost
239
- attr_accessor :id
240
- attr_accessor :impressions
241
-
242
- def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
243
- @averagePosition = averagePosition
244
- @clicks = clicks
245
- @conversionRate = conversionRate
246
- @conversions = conversions
247
- @cost = cost
248
- @id = id
249
- @impressions = impressions
250
- end
251
- end
252
-
253
- # {https://adwords.google.com/api/adwords/v11}AdScheduleStatus
254
- class AdScheduleStatus < ::String
255
- Disabled = AdScheduleStatus.new("Disabled")
256
- Enabled = AdScheduleStatus.new("Enabled")
257
- end
258
-
259
- # {https://adwords.google.com/api/adwords/v11}CampaignStatus
260
- class CampaignStatus < ::String
261
- Active = CampaignStatus.new("Active")
262
- Deleted = CampaignStatus.new("Deleted")
263
- Ended = CampaignStatus.new("Ended")
264
- Paused = CampaignStatus.new("Paused")
265
- Pending = CampaignStatus.new("Pending")
266
- Suspended = CampaignStatus.new("Suspended")
267
- end
268
-
269
- # {https://adwords.google.com/api/adwords/v11}DayOfWeek
270
- class DayOfWeek < ::String
271
- Friday = DayOfWeek.new("Friday")
272
- Monday = DayOfWeek.new("Monday")
273
- Saturday = DayOfWeek.new("Saturday")
274
- Sunday = DayOfWeek.new("Sunday")
275
- Thursday = DayOfWeek.new("Thursday")
276
- Tuesday = DayOfWeek.new("Tuesday")
277
- Wednesday = DayOfWeek.new("Wednesday")
278
- end
279
-
280
- # {https://adwords.google.com/api/adwords/v11}NetworkType
281
- class NetworkType < ::String
282
- ContentNetwork = NetworkType.new("ContentNetwork")
283
- GoogleSearch = NetworkType.new("GoogleSearch")
284
- SearchNetwork = NetworkType.new("SearchNetwork")
285
- end
286
-
287
- # {https://adwords.google.com/api/adwords/v11}addCampaign
288
- # campaign - AdWords::CampaignService::Campaign
289
- class AddCampaign
290
- attr_accessor :campaign
291
-
292
- def initialize(campaign = nil)
293
- @campaign = campaign
294
- end
295
- end
296
-
297
- # {https://adwords.google.com/api/adwords/v11}addCampaignList
298
- class AddCampaignList < ::Array
299
- end
300
-
301
- # {https://adwords.google.com/api/adwords/v11}addCampaignListResponse
302
- class AddCampaignListResponse < ::Array
303
- end
304
-
305
- # {https://adwords.google.com/api/adwords/v11}addCampaignResponse
306
- # addCampaignReturn - AdWords::CampaignService::Campaign
307
- class AddCampaignResponse
308
- attr_accessor :addCampaignReturn
309
-
310
- def initialize(addCampaignReturn = nil)
311
- @addCampaignReturn = addCampaignReturn
312
- end
313
- end
314
-
315
- # {https://adwords.google.com/api/adwords/v11}getAllAdWordsCampaigns
316
- # dummy - SOAP::SOAPInt
317
- class GetAllAdWordsCampaigns
318
- attr_accessor :dummy
319
-
320
- def initialize(dummy = nil)
321
- @dummy = dummy
322
- end
323
- end
324
-
325
- # {https://adwords.google.com/api/adwords/v11}getAllAdWordsCampaignsResponse
326
- class GetAllAdWordsCampaignsResponse < ::Array
327
- end
328
-
329
- # {https://adwords.google.com/api/adwords/v11}getCampaign
330
- # id - SOAP::SOAPInt
331
- class GetCampaign
332
- attr_accessor :id
333
-
334
- def initialize(id = nil)
335
- @id = id
336
- end
337
- end
338
-
339
- # {https://adwords.google.com/api/adwords/v11}getCampaignList
340
- class GetCampaignList < ::Array
341
- end
342
-
343
- # {https://adwords.google.com/api/adwords/v11}getCampaignListResponse
344
- class GetCampaignListResponse < ::Array
345
- end
346
-
347
- # {https://adwords.google.com/api/adwords/v11}getCampaignResponse
348
- # getCampaignReturn - AdWords::CampaignService::Campaign
349
- class GetCampaignResponse
350
- attr_accessor :getCampaignReturn
351
-
352
- def initialize(getCampaignReturn = nil)
353
- @getCampaignReturn = getCampaignReturn
354
- end
355
- end
356
-
357
- # {https://adwords.google.com/api/adwords/v11}getCampaignStats
358
- # campaignIds - SOAP::SOAPInt
359
- # startDay - SOAP::SOAPDate
360
- # endDay - SOAP::SOAPDate
361
- class GetCampaignStats
362
- attr_accessor :campaignIds
363
- attr_accessor :startDay
364
- attr_accessor :endDay
365
-
366
- def initialize(campaignIds = [], startDay = nil, endDay = nil)
367
- @campaignIds = campaignIds
368
- @startDay = startDay
369
- @endDay = endDay
370
- end
371
- end
372
-
373
- # {https://adwords.google.com/api/adwords/v11}getCampaignStatsResponse
374
- class GetCampaignStatsResponse < ::Array
375
- end
376
-
377
- # {https://adwords.google.com/api/adwords/v11}getOptimizeAdServing
378
- # campaignId - SOAP::SOAPInt
379
- class GetOptimizeAdServing
380
- attr_accessor :campaignId
381
-
382
- def initialize(campaignId = nil)
383
- @campaignId = campaignId
384
- end
385
- end
386
-
387
- # {https://adwords.google.com/api/adwords/v11}getOptimizeAdServingResponse
388
- # getOptimizeAdServingReturn - SOAP::SOAPBoolean
389
- class GetOptimizeAdServingResponse
390
- attr_accessor :getOptimizeAdServingReturn
391
-
392
- def initialize(getOptimizeAdServingReturn = nil)
393
- @getOptimizeAdServingReturn = getOptimizeAdServingReturn
394
- end
395
- end
396
-
397
- # {https://adwords.google.com/api/adwords/v11}setOptimizeAdServing
398
- # campaignId - SOAP::SOAPInt
399
- # enable - SOAP::SOAPBoolean
400
- class SetOptimizeAdServing
401
- attr_accessor :campaignId
402
- attr_accessor :enable
403
-
404
- def initialize(campaignId = nil, enable = nil)
405
- @campaignId = campaignId
406
- @enable = enable
407
- end
408
- end
409
-
410
- # {https://adwords.google.com/api/adwords/v11}setOptimizeAdServingResponse
411
- class SetOptimizeAdServingResponse
412
- def initialize
413
- end
414
- end
415
-
416
- # {https://adwords.google.com/api/adwords/v11}updateCampaign
417
- # campaign - AdWords::CampaignService::Campaign
418
- class UpdateCampaign
419
- attr_accessor :campaign
420
-
421
- def initialize(campaign = nil)
422
- @campaign = campaign
423
- end
424
- end
425
-
426
- # {https://adwords.google.com/api/adwords/v11}updateCampaignList
427
- class UpdateCampaignList < ::Array
428
- end
429
-
430
- # {https://adwords.google.com/api/adwords/v11}updateCampaignListResponse
431
- class UpdateCampaignListResponse
432
- def initialize
433
- end
434
- end
435
-
436
- # {https://adwords.google.com/api/adwords/v11}updateCampaignResponse
437
- class UpdateCampaignResponse
438
- def initialize
439
- end
440
- end
441
-
442
-
443
- end; end
@@ -1,125 +0,0 @@
1
- require 'adwords4r/v11/CampaignService'
2
- require 'adwords4r/v11/CampaignServiceMappingRegistry'
3
- require 'soap/rpc/driver'
4
-
5
- module AdWords
6
- module CampaignService
7
-
8
- class CampaignInterface < ::SOAP::RPC::Driver
9
- DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v11/CampaignService"
10
-
11
- Methods = [
12
- [ "",
13
- "addCampaign",
14
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "addCampaign"]],
15
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "addCampaignResponse"]] ],
16
- { :request_style => :document, :request_use => :literal,
17
- :response_style => :document, :response_use => :literal,
18
- :faults => {"AdWords::CampaignService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
19
- ],
20
- [ "",
21
- "addCampaignList",
22
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "addCampaignList"]],
23
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "addCampaignListResponse"]] ],
24
- { :request_style => :document, :request_use => :literal,
25
- :response_style => :document, :response_use => :literal,
26
- :faults => {"AdWords::CampaignService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
27
- ],
28
- [ "",
29
- "getAllAdWordsCampaigns",
30
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getAllAdWordsCampaigns"]],
31
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getAllAdWordsCampaignsResponse"]] ],
32
- { :request_style => :document, :request_use => :literal,
33
- :response_style => :document, :response_use => :literal,
34
- :faults => {"AdWords::CampaignService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
35
- ],
36
- [ "",
37
- "getCampaign",
38
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getCampaign"]],
39
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getCampaignResponse"]] ],
40
- { :request_style => :document, :request_use => :literal,
41
- :response_style => :document, :response_use => :literal,
42
- :faults => {"AdWords::CampaignService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
43
- ],
44
- [ "",
45
- "getCampaignList",
46
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getCampaignList"]],
47
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getCampaignListResponse"]] ],
48
- { :request_style => :document, :request_use => :literal,
49
- :response_style => :document, :response_use => :literal,
50
- :faults => {"AdWords::CampaignService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
51
- ],
52
- [ "",
53
- "getCampaignStats",
54
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getCampaignStats"]],
55
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getCampaignStatsResponse"]] ],
56
- { :request_style => :document, :request_use => :literal,
57
- :response_style => :document, :response_use => :literal,
58
- :faults => {"AdWords::CampaignService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
59
- ],
60
- [ "",
61
- "getOptimizeAdServing",
62
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getOptimizeAdServing"]],
63
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "getOptimizeAdServingResponse"]] ],
64
- { :request_style => :document, :request_use => :literal,
65
- :response_style => :document, :response_use => :literal,
66
- :faults => {"AdWords::CampaignService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
67
- ],
68
- [ "",
69
- "setOptimizeAdServing",
70
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "setOptimizeAdServing"]],
71
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "setOptimizeAdServingResponse"]] ],
72
- { :request_style => :document, :request_use => :literal,
73
- :response_style => :document, :response_use => :literal,
74
- :faults => {"AdWords::CampaignService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
75
- ],
76
- [ "",
77
- "updateCampaign",
78
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "updateCampaign"]],
79
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "updateCampaignResponse"]] ],
80
- { :request_style => :document, :request_use => :literal,
81
- :response_style => :document, :response_use => :literal,
82
- :faults => {"AdWords::CampaignService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
83
- ],
84
- [ "",
85
- "updateCampaignList",
86
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "updateCampaignList"]],
87
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v11", "updateCampaignListResponse"]] ],
88
- { :request_style => :document, :request_use => :literal,
89
- :response_style => :document, :response_use => :literal,
90
- :faults => {"AdWords::CampaignService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v11", :name=>"ApiException", :namespace=>nil}} }
91
- ]
92
- ]
93
-
94
- def initialize(endpoint_url = nil)
95
- endpoint_url ||= DefaultEndpointUrl
96
- super(endpoint_url, nil)
97
- self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
98
- self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
99
- init_methods
100
- end
101
-
102
- private
103
-
104
- def init_methods
105
- Methods.each do |definitions|
106
- opt = definitions.last
107
- if opt[:request_style] == :document
108
- add_document_operation(*definitions)
109
- else
110
- add_rpc_operation(*definitions)
111
- qname = definitions[0]
112
- name = definitions[2]
113
- if qname.name != name and qname.name.capitalize == name.capitalize
114
- ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
115
- __send__(name, *arg)
116
- end
117
- end
118
- end
119
- end
120
- end
121
- end
122
-
123
-
124
- end
125
- end