adwords4r 12.1.0 → 13.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/ChangeLog.txt +3 -0
  2. data/Rakefile +1 -1
  3. data/examples/account_info.rb +2 -2
  4. data/examples/create_all.rb +2 -2
  5. data/examples/keyword_suggestions.rb +14 -8
  6. data/examples/reports.rb +2 -2
  7. data/lib/adwords4r/services.rb +2 -0
  8. data/lib/adwords4r/v12/AccountServiceDriver.rb +3 -3
  9. data/lib/adwords4r/v12/AdGroupServiceDriver.rb +8 -8
  10. data/lib/adwords4r/v12/AdServiceDriver.rb +10 -10
  11. data/lib/adwords4r/v12/CampaignServiceDriver.rb +11 -11
  12. data/lib/adwords4r/v12/CriterionServiceDriver.rb +9 -9
  13. data/lib/adwords4r/v12/InfoServiceDriver.rb +8 -8
  14. data/lib/adwords4r/v12/KeywordToolServiceDriver.rb +2 -2
  15. data/lib/adwords4r/v12/ReportServiceDriver.rb +7 -7
  16. data/lib/adwords4r/v12/ReportServiceMappingRegistry.rb +2 -2
  17. data/lib/adwords4r/v12/SiteSuggestionServiceDriver.rb +4 -4
  18. data/lib/adwords4r/v12/TrafficEstimatorService.rb +1 -1
  19. data/lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb +4 -4
  20. data/lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb +2 -2
  21. data/lib/adwords4r/v13/AccountService.rb +297 -0
  22. data/lib/adwords4r/v13/AccountServiceDriver.rb +85 -0
  23. data/lib/adwords4r/v13/AccountServiceMappingRegistry.rb +337 -0
  24. data/lib/adwords4r/v13/AdGroupService.rb +277 -0
  25. data/lib/adwords4r/v13/AdGroupServiceDriver.rb +117 -0
  26. data/lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb +296 -0
  27. data/lib/adwords4r/v13/AdService.rb +846 -0
  28. data/lib/adwords4r/v13/AdServiceDriver.rb +125 -0
  29. data/lib/adwords4r/v13/AdServiceMappingRegistry.rb +859 -0
  30. data/lib/adwords4r/v13/CampaignService.rb +562 -0
  31. data/lib/adwords4r/v13/CampaignServiceDriver.rb +149 -0
  32. data/lib/adwords4r/v13/CampaignServiceMappingRegistry.rb +696 -0
  33. data/lib/adwords4r/v13/CriterionService.rb +484 -0
  34. data/lib/adwords4r/v13/CriterionServiceDriver.rb +117 -0
  35. data/lib/adwords4r/v13/CriterionServiceMappingRegistry.rb +519 -0
  36. data/lib/adwords4r/v13/InfoService.rb +242 -0
  37. data/lib/adwords4r/v13/InfoServiceDriver.rb +109 -0
  38. data/lib/adwords4r/v13/InfoServiceMappingRegistry.rb +228 -0
  39. data/lib/adwords4r/v13/KeywordToolService.rb +211 -0
  40. data/lib/adwords4r/v13/KeywordToolServiceDriver.rb +61 -0
  41. data/lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb +231 -0
  42. data/lib/adwords4r/v13/ReportService.rb +322 -0
  43. data/lib/adwords4r/v13/ReportServiceDriver.rb +101 -0
  44. data/lib/adwords4r/v13/ReportServiceMappingRegistry.rb +298 -0
  45. data/lib/adwords4r/v13/SiteSuggestionService.rb +242 -0
  46. data/lib/adwords4r/v13/SiteSuggestionServiceDriver.rb +77 -0
  47. data/lib/adwords4r/v13/SiteSuggestionServiceMappingRegistry.rb +271 -0
  48. data/lib/adwords4r/v13/TrafficEstimatorService.rb +348 -0
  49. data/lib/adwords4r/v13/TrafficEstimatorServiceDriver.rb +77 -0
  50. data/lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb +491 -0
  51. data/setup.rb +0 -0
  52. metadata +93 -54
@@ -0,0 +1,484 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdWords; module CriterionService
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::CriterionService::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}Circle
60
+ # latitudeMicroDegrees - SOAP::SOAPInt
61
+ # longitudeMicroDegrees - SOAP::SOAPInt
62
+ # radiusMeters - SOAP::SOAPInt
63
+ class Circle
64
+ attr_accessor :latitudeMicroDegrees
65
+ attr_accessor :longitudeMicroDegrees
66
+ attr_accessor :radiusMeters
67
+
68
+ def initialize(latitudeMicroDegrees = nil, longitudeMicroDegrees = nil, radiusMeters = nil)
69
+ @latitudeMicroDegrees = latitudeMicroDegrees
70
+ @longitudeMicroDegrees = longitudeMicroDegrees
71
+ @radiusMeters = radiusMeters
72
+ end
73
+ end
74
+
75
+ # {https://adwords.google.com/api/adwords/v13}CityTargets
76
+ # cities - SOAP::SOAPString
77
+ # excludedCities - SOAP::SOAPString
78
+ class CityTargets
79
+ attr_accessor :cities
80
+ attr_accessor :excludedCities
81
+
82
+ def initialize(cities = [], excludedCities = [])
83
+ @cities = cities
84
+ @excludedCities = excludedCities
85
+ end
86
+ end
87
+
88
+ # {https://adwords.google.com/api/adwords/v13}CountryTargets
89
+ # countries - SOAP::SOAPString
90
+ # excludedCountries - SOAP::SOAPString
91
+ class CountryTargets
92
+ attr_accessor :countries
93
+ attr_accessor :excludedCountries
94
+
95
+ def initialize(countries = [], excludedCountries = [])
96
+ @countries = countries
97
+ @excludedCountries = excludedCountries
98
+ end
99
+ end
100
+
101
+ # {https://adwords.google.com/api/adwords/v13}Criterion
102
+ # abstract
103
+ # adGroupId - SOAP::SOAPLong
104
+ # criterionType - AdWords::CriterionService::CriterionType
105
+ # destinationUrl - SOAP::SOAPString
106
+ # exemptionRequest - SOAP::SOAPString
107
+ # id - SOAP::SOAPLong
108
+ # language - SOAP::SOAPString
109
+ # negative - SOAP::SOAPBoolean
110
+ # paused - SOAP::SOAPBoolean
111
+ # status - AdWords::CriterionService::CriterionStatus
112
+ class Criterion
113
+ attr_accessor :adGroupId
114
+ attr_accessor :criterionType
115
+ attr_accessor :destinationUrl
116
+ attr_accessor :exemptionRequest
117
+ attr_accessor :id
118
+ attr_accessor :language
119
+ attr_accessor :negative
120
+ attr_accessor :paused
121
+ attr_accessor :status
122
+
123
+ def initialize(adGroupId = nil, criterionType = nil, destinationUrl = nil, exemptionRequest = nil, id = nil, language = nil, negative = nil, paused = nil, status = nil)
124
+ @adGroupId = adGroupId
125
+ @criterionType = criterionType
126
+ @destinationUrl = destinationUrl
127
+ @exemptionRequest = exemptionRequest
128
+ @id = id
129
+ @language = language
130
+ @negative = negative
131
+ @paused = paused
132
+ @status = status
133
+ end
134
+ end
135
+
136
+ # {https://adwords.google.com/api/adwords/v13}Keyword
137
+ # adGroupId - SOAP::SOAPLong
138
+ # criterionType - AdWords::CriterionService::CriterionType
139
+ # destinationUrl - SOAP::SOAPString
140
+ # exemptionRequest - SOAP::SOAPString
141
+ # id - SOAP::SOAPLong
142
+ # language - SOAP::SOAPString
143
+ # negative - SOAP::SOAPBoolean
144
+ # paused - SOAP::SOAPBoolean
145
+ # status - AdWords::CriterionService::CriterionStatus
146
+ # firstPageCpc - SOAP::SOAPLong
147
+ # maxCpc - SOAP::SOAPLong
148
+ # proxyMaxCpc - SOAP::SOAPLong
149
+ # qualityScore - SOAP::SOAPInt
150
+ # text - SOAP::SOAPString
151
+ # type - AdWords::CriterionService::KeywordType
152
+ class Keyword < Criterion
153
+ attr_accessor :adGroupId
154
+ attr_accessor :criterionType
155
+ attr_accessor :destinationUrl
156
+ attr_accessor :exemptionRequest
157
+ attr_accessor :id
158
+ attr_accessor :language
159
+ attr_accessor :negative
160
+ attr_accessor :paused
161
+ attr_accessor :status
162
+ attr_accessor :firstPageCpc
163
+ attr_accessor :maxCpc
164
+ attr_accessor :proxyMaxCpc
165
+ attr_accessor :qualityScore
166
+ attr_accessor :text
167
+ attr_accessor :type
168
+
169
+ def initialize(adGroupId = nil, criterionType = nil, destinationUrl = nil, exemptionRequest = nil, id = nil, language = nil, negative = nil, paused = nil, status = nil, firstPageCpc = nil, maxCpc = nil, proxyMaxCpc = nil, qualityScore = nil, text = nil, type = nil)
170
+ @adGroupId = adGroupId
171
+ @criterionType = criterionType
172
+ @destinationUrl = destinationUrl
173
+ @exemptionRequest = exemptionRequest
174
+ @id = id
175
+ @language = language
176
+ @negative = negative
177
+ @paused = paused
178
+ @status = status
179
+ @firstPageCpc = firstPageCpc
180
+ @maxCpc = maxCpc
181
+ @proxyMaxCpc = proxyMaxCpc
182
+ @qualityScore = qualityScore
183
+ @text = text
184
+ @type = type
185
+ end
186
+ end
187
+
188
+ # {https://adwords.google.com/api/adwords/v13}Website
189
+ # adGroupId - SOAP::SOAPLong
190
+ # criterionType - AdWords::CriterionService::CriterionType
191
+ # destinationUrl - SOAP::SOAPString
192
+ # exemptionRequest - SOAP::SOAPString
193
+ # id - SOAP::SOAPLong
194
+ # language - SOAP::SOAPString
195
+ # negative - SOAP::SOAPBoolean
196
+ # paused - SOAP::SOAPBoolean
197
+ # status - AdWords::CriterionService::CriterionStatus
198
+ # maxCpc - SOAP::SOAPLong
199
+ # maxCpm - SOAP::SOAPLong
200
+ # url - SOAP::SOAPString
201
+ class Website < Criterion
202
+ attr_accessor :adGroupId
203
+ attr_accessor :criterionType
204
+ attr_accessor :destinationUrl
205
+ attr_accessor :exemptionRequest
206
+ attr_accessor :id
207
+ attr_accessor :language
208
+ attr_accessor :negative
209
+ attr_accessor :paused
210
+ attr_accessor :status
211
+ attr_accessor :maxCpc
212
+ attr_accessor :maxCpm
213
+ attr_accessor :url
214
+
215
+ def initialize(adGroupId = nil, criterionType = nil, destinationUrl = nil, exemptionRequest = nil, id = nil, language = nil, negative = nil, paused = nil, status = nil, maxCpc = nil, maxCpm = nil, url = nil)
216
+ @adGroupId = adGroupId
217
+ @criterionType = criterionType
218
+ @destinationUrl = destinationUrl
219
+ @exemptionRequest = exemptionRequest
220
+ @id = id
221
+ @language = language
222
+ @negative = negative
223
+ @paused = paused
224
+ @status = status
225
+ @maxCpc = maxCpc
226
+ @maxCpm = maxCpm
227
+ @url = url
228
+ end
229
+ end
230
+
231
+ # {https://adwords.google.com/api/adwords/v13}GeoTarget
232
+ # cityTargets - AdWords::CriterionService::CityTargets
233
+ # countryTargets - AdWords::CriterionService::CountryTargets
234
+ # metroTargets - AdWords::CriterionService::MetroTargets
235
+ # proximityTargets - AdWords::CriterionService::ProximityTargets
236
+ # regionTargets - AdWords::CriterionService::RegionTargets
237
+ # targetAll - SOAP::SOAPBoolean
238
+ class GeoTarget
239
+ attr_accessor :cityTargets
240
+ attr_accessor :countryTargets
241
+ attr_accessor :metroTargets
242
+ attr_accessor :proximityTargets
243
+ attr_accessor :regionTargets
244
+ attr_accessor :targetAll
245
+
246
+ def initialize(cityTargets = nil, countryTargets = nil, metroTargets = nil, proximityTargets = nil, regionTargets = nil, targetAll = nil)
247
+ @cityTargets = cityTargets
248
+ @countryTargets = countryTargets
249
+ @metroTargets = metroTargets
250
+ @proximityTargets = proximityTargets
251
+ @regionTargets = regionTargets
252
+ @targetAll = targetAll
253
+ end
254
+ end
255
+
256
+ # {https://adwords.google.com/api/adwords/v13}LanguageTarget
257
+ class LanguageTarget < ::Array
258
+ end
259
+
260
+ # {https://adwords.google.com/api/adwords/v13}MetroTargets
261
+ # excludedMetros - SOAP::SOAPString
262
+ # metros - SOAP::SOAPString
263
+ class MetroTargets
264
+ attr_accessor :excludedMetros
265
+ attr_accessor :metros
266
+
267
+ def initialize(excludedMetros = [], metros = [])
268
+ @excludedMetros = excludedMetros
269
+ @metros = metros
270
+ end
271
+ end
272
+
273
+ # {https://adwords.google.com/api/adwords/v13}ProximityTargets
274
+ class ProximityTargets < ::Array
275
+ end
276
+
277
+ # {https://adwords.google.com/api/adwords/v13}RegionTargets
278
+ # excludedRegions - SOAP::SOAPString
279
+ # regions - SOAP::SOAPString
280
+ class RegionTargets
281
+ attr_accessor :excludedRegions
282
+ attr_accessor :regions
283
+
284
+ def initialize(excludedRegions = [], regions = [])
285
+ @excludedRegions = excludedRegions
286
+ @regions = regions
287
+ end
288
+ end
289
+
290
+ # {https://adwords.google.com/api/adwords/v13}StatsRecord
291
+ # averagePosition - SOAP::SOAPDouble
292
+ # clicks - SOAP::SOAPLong
293
+ # conversionRate - SOAP::SOAPDouble
294
+ # conversions - SOAP::SOAPLong
295
+ # cost - SOAP::SOAPLong
296
+ # id - SOAP::SOAPLong
297
+ # impressions - SOAP::SOAPLong
298
+ class StatsRecord
299
+ attr_accessor :averagePosition
300
+ attr_accessor :clicks
301
+ attr_accessor :conversionRate
302
+ attr_accessor :conversions
303
+ attr_accessor :cost
304
+ attr_accessor :id
305
+ attr_accessor :impressions
306
+
307
+ def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
308
+ @averagePosition = averagePosition
309
+ @clicks = clicks
310
+ @conversionRate = conversionRate
311
+ @conversions = conversions
312
+ @cost = cost
313
+ @id = id
314
+ @impressions = impressions
315
+ end
316
+ end
317
+
318
+ # {https://adwords.google.com/api/adwords/v13}CriterionStatus
319
+ class CriterionStatus < ::String
320
+ Active = CriterionStatus.new("Active")
321
+ Deleted = CriterionStatus.new("Deleted")
322
+ Disapproved = CriterionStatus.new("Disapproved")
323
+ InActive = CriterionStatus.new("InActive")
324
+ end
325
+
326
+ # {https://adwords.google.com/api/adwords/v13}CriterionType
327
+ class CriterionType < ::String
328
+ Keyword = CriterionType.new("Keyword")
329
+ Website = CriterionType.new("Website")
330
+ end
331
+
332
+ # {https://adwords.google.com/api/adwords/v13}KeywordType
333
+ class KeywordType < ::String
334
+ Broad = KeywordType.new("Broad")
335
+ Exact = KeywordType.new("Exact")
336
+ Phrase = KeywordType.new("Phrase")
337
+ end
338
+
339
+ # {https://adwords.google.com/api/adwords/v13}addCriteria
340
+ class AddCriteria < ::Array
341
+ end
342
+
343
+ # {https://adwords.google.com/api/adwords/v13}addCriteriaResponse
344
+ class AddCriteriaResponse < ::Array
345
+ end
346
+
347
+ # {https://adwords.google.com/api/adwords/v13}checkCriteria
348
+ # criteria - AdWords::CriterionService::Criterion
349
+ # languageTarget - AdWords::CriterionService::LanguageTarget
350
+ # geoTarget - AdWords::CriterionService::GeoTarget
351
+ class CheckCriteria
352
+ attr_accessor :criteria
353
+ attr_accessor :languageTarget
354
+ attr_accessor :geoTarget
355
+
356
+ def initialize(criteria = [], languageTarget = nil, geoTarget = nil)
357
+ @criteria = criteria
358
+ @languageTarget = languageTarget
359
+ @geoTarget = geoTarget
360
+ end
361
+ end
362
+
363
+ # {https://adwords.google.com/api/adwords/v13}checkCriteriaResponse
364
+ class CheckCriteriaResponse < ::Array
365
+ end
366
+
367
+ # {https://adwords.google.com/api/adwords/v13}getAllCriteria
368
+ # adGroupId - SOAP::SOAPLong
369
+ class GetAllCriteria
370
+ attr_accessor :adGroupId
371
+
372
+ def initialize(adGroupId = nil)
373
+ @adGroupId = adGroupId
374
+ end
375
+ end
376
+
377
+ # {https://adwords.google.com/api/adwords/v13}getAllCriteriaResponse
378
+ class GetAllCriteriaResponse < ::Array
379
+ end
380
+
381
+ # {https://adwords.google.com/api/adwords/v13}getCampaignNegativeCriteria
382
+ # campaignId - SOAP::SOAPInt
383
+ class GetCampaignNegativeCriteria
384
+ attr_accessor :campaignId
385
+
386
+ def initialize(campaignId = nil)
387
+ @campaignId = campaignId
388
+ end
389
+ end
390
+
391
+ # {https://adwords.google.com/api/adwords/v13}getCampaignNegativeCriteriaResponse
392
+ class GetCampaignNegativeCriteriaResponse < ::Array
393
+ end
394
+
395
+ # {https://adwords.google.com/api/adwords/v13}getCriteria
396
+ # adGroupId - SOAP::SOAPLong
397
+ # criterionIds - SOAP::SOAPLong
398
+ class GetCriteria
399
+ attr_accessor :adGroupId
400
+ attr_accessor :criterionIds
401
+
402
+ def initialize(adGroupId = nil, criterionIds = [])
403
+ @adGroupId = adGroupId
404
+ @criterionIds = criterionIds
405
+ end
406
+ end
407
+
408
+ # {https://adwords.google.com/api/adwords/v13}getCriteriaResponse
409
+ class GetCriteriaResponse < ::Array
410
+ end
411
+
412
+ # {https://adwords.google.com/api/adwords/v13}getCriterionStats
413
+ # adGroupId - SOAP::SOAPLong
414
+ # criterionIds - SOAP::SOAPLong
415
+ # startDay - SOAP::SOAPDate
416
+ # endDay - SOAP::SOAPDate
417
+ class GetCriterionStats
418
+ attr_accessor :adGroupId
419
+ attr_accessor :criterionIds
420
+ attr_accessor :startDay
421
+ attr_accessor :endDay
422
+
423
+ def initialize(adGroupId = nil, criterionIds = [], startDay = nil, endDay = nil)
424
+ @adGroupId = adGroupId
425
+ @criterionIds = criterionIds
426
+ @startDay = startDay
427
+ @endDay = endDay
428
+ end
429
+ end
430
+
431
+ # {https://adwords.google.com/api/adwords/v13}getCriterionStatsResponse
432
+ class GetCriterionStatsResponse < ::Array
433
+ end
434
+
435
+ # {https://adwords.google.com/api/adwords/v13}removeCriteria
436
+ # adGroupId - SOAP::SOAPLong
437
+ # criterionIds - SOAP::SOAPLong
438
+ class RemoveCriteria
439
+ attr_accessor :adGroupId
440
+ attr_accessor :criterionIds
441
+
442
+ def initialize(adGroupId = nil, criterionIds = [])
443
+ @adGroupId = adGroupId
444
+ @criterionIds = criterionIds
445
+ end
446
+ end
447
+
448
+ # {https://adwords.google.com/api/adwords/v13}removeCriteriaResponse
449
+ class RemoveCriteriaResponse
450
+ def initialize
451
+ end
452
+ end
453
+
454
+ # {https://adwords.google.com/api/adwords/v13}setCampaignNegativeCriteria
455
+ # campaignId - SOAP::SOAPInt
456
+ # criteria - AdWords::CriterionService::Criterion
457
+ class SetCampaignNegativeCriteria
458
+ attr_accessor :campaignId
459
+ attr_accessor :criteria
460
+
461
+ def initialize(campaignId = nil, criteria = [])
462
+ @campaignId = campaignId
463
+ @criteria = criteria
464
+ end
465
+ end
466
+
467
+ # {https://adwords.google.com/api/adwords/v13}setCampaignNegativeCriteriaResponse
468
+ class SetCampaignNegativeCriteriaResponse
469
+ def initialize
470
+ end
471
+ end
472
+
473
+ # {https://adwords.google.com/api/adwords/v13}updateCriteria
474
+ class UpdateCriteria < ::Array
475
+ end
476
+
477
+ # {https://adwords.google.com/api/adwords/v13}updateCriteriaResponse
478
+ class UpdateCriteriaResponse
479
+ def initialize
480
+ end
481
+ end
482
+
483
+
484
+ end; end