adwords4r 0.7 → 11.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. data/Authors.txt +3 -1
  2. data/ChangeLog.txt +18 -1
  3. data/Rakefile +35 -50
  4. data/Readme.txt +28 -11
  5. data/Todo.txt +1 -9
  6. data/adwords.properties +7 -7
  7. data/examples/campaign.rb +7 -5
  8. data/examples/framework.rb +3 -1
  9. data/examples/get_free_usage_this_month.rb +3 -1
  10. data/examples/get_unit_count.rb +7 -2
  11. data/examples/keyword_tool_demo.rb +5 -2
  12. data/examples/traffic_estimator.rb +5 -2
  13. data/lib/adwords4r.rb +157 -147
  14. data/lib/adwords4r/credentials.rb +36 -36
  15. data/lib/adwords4r/services.rb +24 -32
  16. data/lib/adwords4r/v10/AccountService.rb +234 -0
  17. data/lib/adwords4r/v10/AccountServiceDriver.rb +77 -0
  18. data/lib/adwords4r/v10/AccountServiceMappingRegistry.rb +258 -0
  19. data/lib/adwords4r/v10/AdGroupService.rb +257 -0
  20. data/lib/adwords4r/v10/AdGroupServiceDriver.rb +109 -0
  21. data/lib/adwords4r/v10/AdGroupServiceMappingRegistry.rb +276 -0
  22. data/lib/adwords4r/v10/AdService.rb +757 -0
  23. data/lib/adwords4r/v10/AdServiceDriver.rb +125 -0
  24. data/lib/adwords4r/v10/AdServiceMappingRegistry.rb +805 -0
  25. data/lib/adwords4r/v10/CampaignService.rb +443 -0
  26. data/lib/adwords4r/v10/CampaignServiceDriver.rb +125 -0
  27. data/lib/adwords4r/v10/CampaignServiceMappingRegistry.rb +564 -0
  28. data/lib/adwords4r/v10/CriterionService.rb +442 -0
  29. data/lib/adwords4r/v10/CriterionServiceDriver.rb +117 -0
  30. data/lib/adwords4r/v10/CriterionServiceMappingRegistry.rb +507 -0
  31. data/lib/adwords4r/v10/InfoService.rb +242 -0
  32. data/lib/adwords4r/v10/InfoServiceDriver.rb +109 -0
  33. data/lib/adwords4r/v10/InfoServiceMappingRegistry.rb +228 -0
  34. data/lib/adwords4r/v10/KeywordToolService.rb +205 -0
  35. data/lib/adwords4r/{v6 → v10}/KeywordToolServiceDriver.rb +18 -12
  36. data/lib/adwords4r/v10/KeywordToolServiceMappingRegistry.rb +227 -0
  37. data/lib/adwords4r/{v6 → v10}/ReportService.rb +335 -472
  38. data/lib/adwords4r/v10/ReportServiceDriver.rb +93 -0
  39. data/lib/adwords4r/v10/ReportServiceMappingRegistry.rb +559 -0
  40. data/lib/adwords4r/v10/SiteSuggestionService.rb +242 -0
  41. data/lib/adwords4r/v10/SiteSuggestionServiceDriver.rb +77 -0
  42. data/lib/adwords4r/v10/SiteSuggestionServiceMappingRegistry.rb +271 -0
  43. data/lib/adwords4r/v10/TrafficEstimatorService.rb +312 -0
  44. data/lib/adwords4r/v10/TrafficEstimatorServiceDriver.rb +77 -0
  45. data/lib/adwords4r/v10/TrafficEstimatorServiceMappingRegistry.rb +483 -0
  46. data/lib/adwords4r/v11/AccountService.rb +215 -0
  47. data/lib/adwords4r/v11/AccountServiceDriver.rb +69 -0
  48. data/lib/adwords4r/v11/AccountServiceMappingRegistry.rb +243 -0
  49. data/lib/adwords4r/v11/AdGroupService.rb +257 -0
  50. data/lib/adwords4r/v11/AdGroupServiceDriver.rb +109 -0
  51. data/lib/adwords4r/v11/AdGroupServiceMappingRegistry.rb +276 -0
  52. data/lib/adwords4r/v11/AdService.rb +760 -0
  53. data/lib/adwords4r/v11/AdServiceDriver.rb +125 -0
  54. data/lib/adwords4r/v11/AdServiceMappingRegistry.rb +807 -0
  55. data/lib/adwords4r/v11/CampaignService.rb +443 -0
  56. data/lib/adwords4r/v11/CampaignServiceDriver.rb +125 -0
  57. data/lib/adwords4r/v11/CampaignServiceMappingRegistry.rb +564 -0
  58. data/lib/adwords4r/v11/CriterionService.rb +442 -0
  59. data/lib/adwords4r/v11/CriterionServiceDriver.rb +117 -0
  60. data/lib/adwords4r/v11/CriterionServiceMappingRegistry.rb +507 -0
  61. data/lib/adwords4r/v11/InfoService.rb +242 -0
  62. data/lib/adwords4r/v11/InfoServiceDriver.rb +109 -0
  63. data/lib/adwords4r/v11/InfoServiceMappingRegistry.rb +228 -0
  64. data/lib/adwords4r/v11/KeywordToolService.rb +205 -0
  65. data/lib/adwords4r/{v5 → v11}/KeywordToolServiceDriver.rb +18 -12
  66. data/lib/adwords4r/v11/KeywordToolServiceMappingRegistry.rb +227 -0
  67. data/lib/adwords4r/v11/ReportService.rb +322 -0
  68. data/lib/adwords4r/v11/ReportServiceDriver.rb +101 -0
  69. data/lib/adwords4r/v11/ReportServiceMappingRegistry.rb +298 -0
  70. data/lib/adwords4r/v11/SiteSuggestionService.rb +242 -0
  71. data/lib/adwords4r/v11/SiteSuggestionServiceDriver.rb +77 -0
  72. data/lib/adwords4r/v11/SiteSuggestionServiceMappingRegistry.rb +271 -0
  73. data/lib/adwords4r/v11/TrafficEstimatorService.rb +312 -0
  74. data/lib/adwords4r/v11/TrafficEstimatorServiceDriver.rb +77 -0
  75. data/lib/adwords4r/v11/TrafficEstimatorServiceMappingRegistry.rb +483 -0
  76. metadata +96 -74
  77. data/lib/adwords4r/v4/AccountService.rb +0 -709
  78. data/lib/adwords4r/v4/AccountServiceDriver.rb +0 -174
  79. data/lib/adwords4r/v4/AdGroupService.rb +0 -316
  80. data/lib/adwords4r/v4/AdGroupServiceDriver.rb +0 -97
  81. data/lib/adwords4r/v4/CampaignService.rb +0 -527
  82. data/lib/adwords4r/v4/CampaignServiceDriver.rb +0 -111
  83. data/lib/adwords4r/v4/CreativeService.rb +0 -368
  84. data/lib/adwords4r/v4/CreativeServiceDriver.rb +0 -104
  85. data/lib/adwords4r/v4/CriterionService.rb +0 -411
  86. data/lib/adwords4r/v4/CriterionServiceDriver.rb +0 -97
  87. data/lib/adwords4r/v4/InfoService.rb +0 -260
  88. data/lib/adwords4r/v4/InfoServiceDriver.rb +0 -90
  89. data/lib/adwords4r/v4/KeywordService.rb +0 -543
  90. data/lib/adwords4r/v4/KeywordServiceDriver.rb +0 -125
  91. data/lib/adwords4r/v4/KeywordToolService.rb +0 -227
  92. data/lib/adwords4r/v4/KeywordToolServiceDriver.rb +0 -55
  93. data/lib/adwords4r/v4/ReportService.rb +0 -575
  94. data/lib/adwords4r/v4/ReportServiceDriver.rb +0 -83
  95. data/lib/adwords4r/v4/TrafficEstimatorService.rb +0 -274
  96. data/lib/adwords4r/v4/TrafficEstimatorServiceDriver.rb +0 -62
  97. data/lib/adwords4r/v5/AccountService.rb +0 -853
  98. data/lib/adwords4r/v5/AccountServiceDriver.rb +0 -188
  99. data/lib/adwords4r/v5/AdGroupService.rb +0 -352
  100. data/lib/adwords4r/v5/AdGroupServiceDriver.rb +0 -97
  101. data/lib/adwords4r/v5/CampaignService.rb +0 -563
  102. data/lib/adwords4r/v5/CampaignServiceDriver.rb +0 -111
  103. data/lib/adwords4r/v5/CreativeService.rb +0 -404
  104. data/lib/adwords4r/v5/CreativeServiceDriver.rb +0 -104
  105. data/lib/adwords4r/v5/CriterionService.rb +0 -447
  106. data/lib/adwords4r/v5/CriterionServiceDriver.rb +0 -97
  107. data/lib/adwords4r/v5/InfoService.rb +0 -296
  108. data/lib/adwords4r/v5/InfoServiceDriver.rb +0 -90
  109. data/lib/adwords4r/v5/KeywordToolService.rb +0 -263
  110. data/lib/adwords4r/v5/ReportService.rb +0 -788
  111. data/lib/adwords4r/v5/ReportServiceDriver.rb +0 -83
  112. data/lib/adwords4r/v5/TrafficEstimatorService.rb +0 -310
  113. data/lib/adwords4r/v5/TrafficEstimatorServiceDriver.rb +0 -62
  114. data/lib/adwords4r/v6/AccountService.rb +0 -853
  115. data/lib/adwords4r/v6/AccountServiceDriver.rb +0 -188
  116. data/lib/adwords4r/v6/AdGroupService.rb +0 -352
  117. data/lib/adwords4r/v6/AdGroupServiceDriver.rb +0 -97
  118. data/lib/adwords4r/v6/CampaignService.rb +0 -563
  119. data/lib/adwords4r/v6/CampaignServiceDriver.rb +0 -111
  120. data/lib/adwords4r/v6/CreativeService.rb +0 -472
  121. data/lib/adwords4r/v6/CreativeServiceDriver.rb +0 -111
  122. data/lib/adwords4r/v6/CriterionService.rb +0 -447
  123. data/lib/adwords4r/v6/CriterionServiceDriver.rb +0 -97
  124. data/lib/adwords4r/v6/InfoService.rb +0 -343
  125. data/lib/adwords4r/v6/InfoServiceDriver.rb +0 -97
  126. data/lib/adwords4r/v6/KeywordToolService.rb +0 -263
  127. data/lib/adwords4r/v6/ReportServiceDriver.rb +0 -83
  128. data/lib/adwords4r/v6/TrafficEstimatorService.rb +0 -310
  129. data/lib/adwords4r/v6/TrafficEstimatorServiceDriver.rb +0 -62
@@ -0,0 +1,760 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdWords; module AdService
4
+
5
+
6
+ # {https://adwords.google.com/api/adwords/v11}Ad
7
+ # abstract
8
+ # adGroupId - SOAP::SOAPInt
9
+ # adType - AdWords::AdService::AdType
10
+ # destinationUrl - SOAP::SOAPString
11
+ # disapproved - SOAP::SOAPBoolean
12
+ # displayUrl - SOAP::SOAPString
13
+ # exemptionRequest - SOAP::SOAPString
14
+ # id - SOAP::SOAPLong
15
+ # status - AdWords::AdService::AdStatus
16
+ class Ad
17
+ attr_accessor :adGroupId
18
+ attr_accessor :adType
19
+ attr_accessor :destinationUrl
20
+ attr_accessor :disapproved
21
+ attr_accessor :displayUrl
22
+ attr_accessor :exemptionRequest
23
+ attr_accessor :id
24
+ attr_accessor :status
25
+
26
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil)
27
+ @adGroupId = adGroupId
28
+ @adType = adType
29
+ @destinationUrl = destinationUrl
30
+ @disapproved = disapproved
31
+ @displayUrl = displayUrl
32
+ @exemptionRequest = exemptionRequest
33
+ @id = id
34
+ @status = status
35
+ end
36
+ end
37
+
38
+ # {https://adwords.google.com/api/adwords/v11}CommerceAd
39
+ # adGroupId - SOAP::SOAPInt
40
+ # adType - AdWords::AdService::AdType
41
+ # destinationUrl - SOAP::SOAPString
42
+ # disapproved - SOAP::SOAPBoolean
43
+ # displayUrl - SOAP::SOAPString
44
+ # exemptionRequest - SOAP::SOAPString
45
+ # id - SOAP::SOAPLong
46
+ # status - AdWords::AdService::AdStatus
47
+ # description1 - SOAP::SOAPString
48
+ # description2 - SOAP::SOAPString
49
+ # headline - SOAP::SOAPString
50
+ # postPriceAnnotation - SOAP::SOAPString
51
+ # prePriceAnnotation - SOAP::SOAPString
52
+ # priceString - SOAP::SOAPString
53
+ # productImage - AdWords::AdService::Image
54
+ class CommerceAd < Ad
55
+ attr_accessor :adGroupId
56
+ attr_accessor :adType
57
+ attr_accessor :destinationUrl
58
+ attr_accessor :disapproved
59
+ attr_accessor :displayUrl
60
+ attr_accessor :exemptionRequest
61
+ attr_accessor :id
62
+ attr_accessor :status
63
+ attr_accessor :description1
64
+ attr_accessor :description2
65
+ attr_accessor :headline
66
+ attr_accessor :postPriceAnnotation
67
+ attr_accessor :prePriceAnnotation
68
+ attr_accessor :priceString
69
+ attr_accessor :productImage
70
+
71
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, description1 = nil, description2 = nil, headline = nil, postPriceAnnotation = nil, prePriceAnnotation = nil, priceString = nil, productImage = nil)
72
+ @adGroupId = adGroupId
73
+ @adType = adType
74
+ @destinationUrl = destinationUrl
75
+ @disapproved = disapproved
76
+ @displayUrl = displayUrl
77
+ @exemptionRequest = exemptionRequest
78
+ @id = id
79
+ @status = status
80
+ @description1 = description1
81
+ @description2 = description2
82
+ @headline = headline
83
+ @postPriceAnnotation = postPriceAnnotation
84
+ @prePriceAnnotation = prePriceAnnotation
85
+ @priceString = priceString
86
+ @productImage = productImage
87
+ end
88
+ end
89
+
90
+ # {https://adwords.google.com/api/adwords/v11}ImageAd
91
+ # adGroupId - SOAP::SOAPInt
92
+ # adType - AdWords::AdService::AdType
93
+ # destinationUrl - SOAP::SOAPString
94
+ # disapproved - SOAP::SOAPBoolean
95
+ # displayUrl - SOAP::SOAPString
96
+ # exemptionRequest - SOAP::SOAPString
97
+ # id - SOAP::SOAPLong
98
+ # status - AdWords::AdService::AdStatus
99
+ # image - AdWords::AdService::Image
100
+ class ImageAd < Ad
101
+ attr_accessor :adGroupId
102
+ attr_accessor :adType
103
+ attr_accessor :destinationUrl
104
+ attr_accessor :disapproved
105
+ attr_accessor :displayUrl
106
+ attr_accessor :exemptionRequest
107
+ attr_accessor :id
108
+ attr_accessor :status
109
+ attr_accessor :image
110
+
111
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, image = nil)
112
+ @adGroupId = adGroupId
113
+ @adType = adType
114
+ @destinationUrl = destinationUrl
115
+ @disapproved = disapproved
116
+ @displayUrl = displayUrl
117
+ @exemptionRequest = exemptionRequest
118
+ @id = id
119
+ @status = status
120
+ @image = image
121
+ end
122
+ end
123
+
124
+ # {https://adwords.google.com/api/adwords/v11}LocalBusinessAd
125
+ # adGroupId - SOAP::SOAPInt
126
+ # adType - AdWords::AdService::AdType
127
+ # destinationUrl - SOAP::SOAPString
128
+ # disapproved - SOAP::SOAPBoolean
129
+ # displayUrl - SOAP::SOAPString
130
+ # exemptionRequest - SOAP::SOAPString
131
+ # id - SOAP::SOAPLong
132
+ # status - AdWords::AdService::AdStatus
133
+ # address - SOAP::SOAPString
134
+ # businessImage - AdWords::AdService::Image
135
+ # businessKey - SOAP::SOAPString
136
+ # businessName - SOAP::SOAPString
137
+ # city - SOAP::SOAPString
138
+ # countryCode - SOAP::SOAPString
139
+ # customIcon - AdWords::AdService::Image
140
+ # customIconId - SOAP::SOAPLong
141
+ # description1 - SOAP::SOAPString
142
+ # description2 - SOAP::SOAPString
143
+ # phoneNumber - SOAP::SOAPString
144
+ # postalCode - SOAP::SOAPString
145
+ # region - SOAP::SOAPString
146
+ # stockIcon - AdWords::AdService::StockIcon
147
+ # targetRadiusInKm - SOAP::SOAPDouble
148
+ class LocalBusinessAd < Ad
149
+ attr_accessor :adGroupId
150
+ attr_accessor :adType
151
+ attr_accessor :destinationUrl
152
+ attr_accessor :disapproved
153
+ attr_accessor :displayUrl
154
+ attr_accessor :exemptionRequest
155
+ attr_accessor :id
156
+ attr_accessor :status
157
+ attr_accessor :address
158
+ attr_accessor :businessImage
159
+ attr_accessor :businessKey
160
+ attr_accessor :businessName
161
+ attr_accessor :city
162
+ attr_accessor :countryCode
163
+ attr_accessor :customIcon
164
+ attr_accessor :customIconId
165
+ attr_accessor :description1
166
+ attr_accessor :description2
167
+ attr_accessor :phoneNumber
168
+ attr_accessor :postalCode
169
+ attr_accessor :region
170
+ attr_accessor :stockIcon
171
+ attr_accessor :targetRadiusInKm
172
+
173
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, address = nil, businessImage = nil, businessKey = nil, businessName = nil, city = nil, countryCode = nil, customIcon = nil, customIconId = nil, description1 = nil, description2 = nil, phoneNumber = nil, postalCode = nil, region = nil, stockIcon = nil, targetRadiusInKm = nil)
174
+ @adGroupId = adGroupId
175
+ @adType = adType
176
+ @destinationUrl = destinationUrl
177
+ @disapproved = disapproved
178
+ @displayUrl = displayUrl
179
+ @exemptionRequest = exemptionRequest
180
+ @id = id
181
+ @status = status
182
+ @address = address
183
+ @businessImage = businessImage
184
+ @businessKey = businessKey
185
+ @businessName = businessName
186
+ @city = city
187
+ @countryCode = countryCode
188
+ @customIcon = customIcon
189
+ @customIconId = customIconId
190
+ @description1 = description1
191
+ @description2 = description2
192
+ @phoneNumber = phoneNumber
193
+ @postalCode = postalCode
194
+ @region = region
195
+ @stockIcon = stockIcon
196
+ @targetRadiusInKm = targetRadiusInKm
197
+ end
198
+ end
199
+
200
+ # {https://adwords.google.com/api/adwords/v11}MobileAd
201
+ # adGroupId - SOAP::SOAPInt
202
+ # adType - AdWords::AdService::AdType
203
+ # destinationUrl - SOAP::SOAPString
204
+ # disapproved - SOAP::SOAPBoolean
205
+ # displayUrl - SOAP::SOAPString
206
+ # exemptionRequest - SOAP::SOAPString
207
+ # id - SOAP::SOAPLong
208
+ # status - AdWords::AdService::AdStatus
209
+ # businessName - SOAP::SOAPString
210
+ # countryCode - SOAP::SOAPString
211
+ # description - SOAP::SOAPString
212
+ # headline - SOAP::SOAPString
213
+ # markupLanguages - SOAP::SOAPString
214
+ # mobileCarriers - SOAP::SOAPString
215
+ # phoneNumber - SOAP::SOAPString
216
+ class MobileAd < Ad
217
+ attr_accessor :adGroupId
218
+ attr_accessor :adType
219
+ attr_accessor :destinationUrl
220
+ attr_accessor :disapproved
221
+ attr_accessor :displayUrl
222
+ attr_accessor :exemptionRequest
223
+ attr_accessor :id
224
+ attr_accessor :status
225
+ attr_accessor :businessName
226
+ attr_accessor :countryCode
227
+ attr_accessor :description
228
+ attr_accessor :headline
229
+ attr_accessor :markupLanguages
230
+ attr_accessor :mobileCarriers
231
+ attr_accessor :phoneNumber
232
+
233
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, businessName = nil, countryCode = nil, description = nil, headline = nil, markupLanguages = [], mobileCarriers = [], phoneNumber = nil)
234
+ @adGroupId = adGroupId
235
+ @adType = adType
236
+ @destinationUrl = destinationUrl
237
+ @disapproved = disapproved
238
+ @displayUrl = displayUrl
239
+ @exemptionRequest = exemptionRequest
240
+ @id = id
241
+ @status = status
242
+ @businessName = businessName
243
+ @countryCode = countryCode
244
+ @description = description
245
+ @headline = headline
246
+ @markupLanguages = markupLanguages
247
+ @mobileCarriers = mobileCarriers
248
+ @phoneNumber = phoneNumber
249
+ end
250
+ end
251
+
252
+ # {https://adwords.google.com/api/adwords/v11}TextAd
253
+ # adGroupId - SOAP::SOAPInt
254
+ # adType - AdWords::AdService::AdType
255
+ # destinationUrl - SOAP::SOAPString
256
+ # disapproved - SOAP::SOAPBoolean
257
+ # displayUrl - SOAP::SOAPString
258
+ # exemptionRequest - SOAP::SOAPString
259
+ # id - SOAP::SOAPLong
260
+ # status - AdWords::AdService::AdStatus
261
+ # description1 - SOAP::SOAPString
262
+ # description2 - SOAP::SOAPString
263
+ # headline - SOAP::SOAPString
264
+ class TextAd < Ad
265
+ attr_accessor :adGroupId
266
+ attr_accessor :adType
267
+ attr_accessor :destinationUrl
268
+ attr_accessor :disapproved
269
+ attr_accessor :displayUrl
270
+ attr_accessor :exemptionRequest
271
+ attr_accessor :id
272
+ attr_accessor :status
273
+ attr_accessor :description1
274
+ attr_accessor :description2
275
+ attr_accessor :headline
276
+
277
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, description1 = nil, description2 = nil, headline = nil)
278
+ @adGroupId = adGroupId
279
+ @adType = adType
280
+ @destinationUrl = destinationUrl
281
+ @disapproved = disapproved
282
+ @displayUrl = displayUrl
283
+ @exemptionRequest = exemptionRequest
284
+ @id = id
285
+ @status = status
286
+ @description1 = description1
287
+ @description2 = description2
288
+ @headline = headline
289
+ end
290
+ end
291
+
292
+ # {https://adwords.google.com/api/adwords/v11}VideoAd
293
+ # adGroupId - SOAP::SOAPInt
294
+ # adType - AdWords::AdService::AdType
295
+ # destinationUrl - SOAP::SOAPString
296
+ # disapproved - SOAP::SOAPBoolean
297
+ # displayUrl - SOAP::SOAPString
298
+ # exemptionRequest - SOAP::SOAPString
299
+ # id - SOAP::SOAPLong
300
+ # status - AdWords::AdService::AdStatus
301
+ # image - AdWords::AdService::Image
302
+ # name - SOAP::SOAPString
303
+ # video - AdWords::AdService::Video
304
+ class VideoAd < Ad
305
+ attr_accessor :adGroupId
306
+ attr_accessor :adType
307
+ attr_accessor :destinationUrl
308
+ attr_accessor :disapproved
309
+ attr_accessor :displayUrl
310
+ attr_accessor :exemptionRequest
311
+ attr_accessor :id
312
+ attr_accessor :status
313
+ attr_accessor :image
314
+ attr_accessor :name
315
+ attr_accessor :video
316
+
317
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, image = nil, name = nil, video = nil)
318
+ @adGroupId = adGroupId
319
+ @adType = adType
320
+ @destinationUrl = destinationUrl
321
+ @disapproved = disapproved
322
+ @displayUrl = displayUrl
323
+ @exemptionRequest = exemptionRequest
324
+ @id = id
325
+ @status = status
326
+ @image = image
327
+ @name = name
328
+ @video = video
329
+ end
330
+ end
331
+
332
+ # {https://adwords.google.com/api/adwords/v11}ApiError
333
+ # code - SOAP::SOAPInt
334
+ # detail - SOAP::SOAPString
335
+ # field - SOAP::SOAPString
336
+ # index - SOAP::SOAPInt
337
+ # isExemptable - SOAP::SOAPBoolean
338
+ # textIndex - SOAP::SOAPInt
339
+ # textLength - SOAP::SOAPInt
340
+ # trigger - SOAP::SOAPString
341
+ class ApiError
342
+ attr_accessor :code
343
+ attr_accessor :detail
344
+ attr_accessor :field
345
+ attr_accessor :index
346
+ attr_accessor :isExemptable
347
+ attr_accessor :textIndex
348
+ attr_accessor :textLength
349
+ attr_accessor :trigger
350
+
351
+ def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
352
+ @code = code
353
+ @detail = detail
354
+ @field = field
355
+ @index = index
356
+ @isExemptable = isExemptable
357
+ @textIndex = textIndex
358
+ @textLength = textLength
359
+ @trigger = trigger
360
+ end
361
+ end
362
+
363
+ # {https://adwords.google.com/api/adwords/v11}ApiException
364
+ # code - SOAP::SOAPInt
365
+ # errors - AdWords::AdService::ApiError
366
+ # internal - SOAP::SOAPBoolean
367
+ # message - SOAP::SOAPString
368
+ # trigger - SOAP::SOAPString
369
+ class ApiException
370
+ attr_accessor :code
371
+ attr_accessor :errors
372
+ attr_accessor :internal
373
+ attr_accessor :message
374
+ attr_accessor :trigger
375
+
376
+ def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
377
+ @code = code
378
+ @errors = errors
379
+ @internal = internal
380
+ @message = message
381
+ @trigger = trigger
382
+ end
383
+ end
384
+
385
+ # {https://adwords.google.com/api/adwords/v11}Business
386
+ # address - SOAP::SOAPString
387
+ # city - SOAP::SOAPString
388
+ # countryCode - SOAP::SOAPString
389
+ # key - SOAP::SOAPString
390
+ # latitude - SOAP::SOAPString
391
+ # longitude - SOAP::SOAPString
392
+ # name - SOAP::SOAPString
393
+ # phoneNumber - SOAP::SOAPString
394
+ # postalCode - SOAP::SOAPString
395
+ # region - SOAP::SOAPString
396
+ # timestamp - SOAP::SOAPLong
397
+ class Business
398
+ attr_accessor :address
399
+ attr_accessor :city
400
+ attr_accessor :countryCode
401
+ attr_accessor :key
402
+ attr_accessor :latitude
403
+ attr_accessor :longitude
404
+ attr_accessor :name
405
+ attr_accessor :phoneNumber
406
+ attr_accessor :postalCode
407
+ attr_accessor :region
408
+ attr_accessor :timestamp
409
+
410
+ def initialize(address = nil, city = nil, countryCode = nil, key = nil, latitude = nil, longitude = nil, name = nil, phoneNumber = nil, postalCode = nil, region = nil, timestamp = nil)
411
+ @address = address
412
+ @city = city
413
+ @countryCode = countryCode
414
+ @key = key
415
+ @latitude = latitude
416
+ @longitude = longitude
417
+ @name = name
418
+ @phoneNumber = phoneNumber
419
+ @postalCode = postalCode
420
+ @region = region
421
+ @timestamp = timestamp
422
+ end
423
+ end
424
+
425
+ # {https://adwords.google.com/api/adwords/v11}Circle
426
+ # latitudeMicroDegrees - SOAP::SOAPInt
427
+ # longitudeMicroDegrees - SOAP::SOAPInt
428
+ # radiusMeters - SOAP::SOAPInt
429
+ class Circle
430
+ attr_accessor :latitudeMicroDegrees
431
+ attr_accessor :longitudeMicroDegrees
432
+ attr_accessor :radiusMeters
433
+
434
+ def initialize(latitudeMicroDegrees = nil, longitudeMicroDegrees = nil, radiusMeters = nil)
435
+ @latitudeMicroDegrees = latitudeMicroDegrees
436
+ @longitudeMicroDegrees = longitudeMicroDegrees
437
+ @radiusMeters = radiusMeters
438
+ end
439
+ end
440
+
441
+ # {https://adwords.google.com/api/adwords/v11}CityTargets
442
+ class CityTargets < ::Array
443
+ end
444
+
445
+ # {https://adwords.google.com/api/adwords/v11}CountryTargets
446
+ class CountryTargets < ::Array
447
+ end
448
+
449
+ # {https://adwords.google.com/api/adwords/v11}GeoTarget
450
+ # cityTargets - AdWords::AdService::CityTargets
451
+ # countryTargets - AdWords::AdService::CountryTargets
452
+ # metroTargets - AdWords::AdService::MetroTargets
453
+ # proximityTargets - AdWords::AdService::ProximityTargets
454
+ # regionTargets - AdWords::AdService::RegionTargets
455
+ # targetAll - SOAP::SOAPBoolean
456
+ class GeoTarget
457
+ attr_accessor :cityTargets
458
+ attr_accessor :countryTargets
459
+ attr_accessor :metroTargets
460
+ attr_accessor :proximityTargets
461
+ attr_accessor :regionTargets
462
+ attr_accessor :targetAll
463
+
464
+ def initialize(cityTargets = nil, countryTargets = nil, metroTargets = nil, proximityTargets = nil, regionTargets = nil, targetAll = nil)
465
+ @cityTargets = cityTargets
466
+ @countryTargets = countryTargets
467
+ @metroTargets = metroTargets
468
+ @proximityTargets = proximityTargets
469
+ @regionTargets = regionTargets
470
+ @targetAll = targetAll
471
+ end
472
+ end
473
+
474
+ # {https://adwords.google.com/api/adwords/v11}Image
475
+ # data - SOAP::SOAPBase64
476
+ # height - SOAP::SOAPInt
477
+ # imageUrl - SOAP::SOAPString
478
+ # mimeType - SOAP::SOAPString
479
+ # name - SOAP::SOAPString
480
+ # shrunkenUrl - SOAP::SOAPString
481
+ # thumbnailUrl - SOAP::SOAPString
482
+ # type - AdWords::AdService::ImageType
483
+ # width - SOAP::SOAPInt
484
+ class Image
485
+ attr_accessor :data
486
+ attr_accessor :height
487
+ attr_accessor :imageUrl
488
+ attr_accessor :mimeType
489
+ attr_accessor :name
490
+ attr_accessor :shrunkenUrl
491
+ attr_accessor :thumbnailUrl
492
+ attr_accessor :type
493
+ attr_accessor :width
494
+
495
+ def initialize(data = nil, height = nil, imageUrl = nil, mimeType = nil, name = nil, shrunkenUrl = nil, thumbnailUrl = nil, type = nil, width = nil)
496
+ @data = data
497
+ @height = height
498
+ @imageUrl = imageUrl
499
+ @mimeType = mimeType
500
+ @name = name
501
+ @shrunkenUrl = shrunkenUrl
502
+ @thumbnailUrl = thumbnailUrl
503
+ @type = type
504
+ @width = width
505
+ end
506
+ end
507
+
508
+ # {https://adwords.google.com/api/adwords/v11}LanguageTarget
509
+ class LanguageTarget < ::Array
510
+ end
511
+
512
+ # {https://adwords.google.com/api/adwords/v11}MetroTargets
513
+ class MetroTargets < ::Array
514
+ end
515
+
516
+ # {https://adwords.google.com/api/adwords/v11}ProximityTargets
517
+ class ProximityTargets < ::Array
518
+ end
519
+
520
+ # {https://adwords.google.com/api/adwords/v11}RegionTargets
521
+ class RegionTargets < ::Array
522
+ end
523
+
524
+ # {https://adwords.google.com/api/adwords/v11}StatsRecord
525
+ # averagePosition - SOAP::SOAPDouble
526
+ # clicks - SOAP::SOAPLong
527
+ # conversionRate - SOAP::SOAPDouble
528
+ # conversions - SOAP::SOAPLong
529
+ # cost - SOAP::SOAPLong
530
+ # id - SOAP::SOAPLong
531
+ # impressions - SOAP::SOAPLong
532
+ class StatsRecord
533
+ attr_accessor :averagePosition
534
+ attr_accessor :clicks
535
+ attr_accessor :conversionRate
536
+ attr_accessor :conversions
537
+ attr_accessor :cost
538
+ attr_accessor :id
539
+ attr_accessor :impressions
540
+
541
+ def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
542
+ @averagePosition = averagePosition
543
+ @clicks = clicks
544
+ @conversionRate = conversionRate
545
+ @conversions = conversions
546
+ @cost = cost
547
+ @id = id
548
+ @impressions = impressions
549
+ end
550
+ end
551
+
552
+ # {https://adwords.google.com/api/adwords/v11}Video
553
+ # duration - SOAP::SOAPLong
554
+ # filename - SOAP::SOAPString
555
+ # preview - SOAP::SOAPString
556
+ # title - SOAP::SOAPString
557
+ # videoId - SOAP::SOAPLong
558
+ class Video
559
+ attr_accessor :duration
560
+ attr_accessor :filename
561
+ attr_accessor :preview
562
+ attr_accessor :title
563
+ attr_accessor :videoId
564
+
565
+ def initialize(duration = nil, filename = nil, preview = nil, title = nil, videoId = nil)
566
+ @duration = duration
567
+ @filename = filename
568
+ @preview = preview
569
+ @title = title
570
+ @videoId = videoId
571
+ end
572
+ end
573
+
574
+ # {https://adwords.google.com/api/adwords/v11}AdStatus
575
+ class AdStatus < ::String
576
+ Disabled = AdStatus.new("Disabled")
577
+ Enabled = AdStatus.new("Enabled")
578
+ Paused = AdStatus.new("Paused")
579
+ end
580
+
581
+ # {https://adwords.google.com/api/adwords/v11}AdType
582
+ class AdType < ::String
583
+ CommerceAd = AdType.new("CommerceAd")
584
+ ImageAd = AdType.new("ImageAd")
585
+ LocalBusinessAd = AdType.new("LocalBusinessAd")
586
+ MobileAd = AdType.new("MobileAd")
587
+ TextAd = AdType.new("TextAd")
588
+ VideoAd = AdType.new("VideoAd")
589
+ end
590
+
591
+ # {https://adwords.google.com/api/adwords/v11}ImageType
592
+ class ImageType < ::String
593
+ DynamicImage = ImageType.new("dynamicImage")
594
+ Flash = ImageType.new("flash")
595
+ Image = ImageType.new("image")
596
+ end
597
+
598
+ # {https://adwords.google.com/api/adwords/v11}StockIcon
599
+ class StockIcon < ::String
600
+ Standard_1 = StockIcon.new("Standard_1")
601
+ Standard_10 = StockIcon.new("Standard_10")
602
+ Standard_11 = StockIcon.new("Standard_11")
603
+ Standard_12 = StockIcon.new("Standard_12")
604
+ Standard_13 = StockIcon.new("Standard_13")
605
+ Standard_14 = StockIcon.new("Standard_14")
606
+ Standard_15 = StockIcon.new("Standard_15")
607
+ Standard_16 = StockIcon.new("Standard_16")
608
+ Standard_17 = StockIcon.new("Standard_17")
609
+ Standard_2 = StockIcon.new("Standard_2")
610
+ Standard_3 = StockIcon.new("Standard_3")
611
+ Standard_4 = StockIcon.new("Standard_4")
612
+ Standard_5 = StockIcon.new("Standard_5")
613
+ Standard_6 = StockIcon.new("Standard_6")
614
+ Standard_7 = StockIcon.new("Standard_7")
615
+ Standard_8 = StockIcon.new("Standard_8")
616
+ Standard_9 = StockIcon.new("Standard_9")
617
+ end
618
+
619
+ # {https://adwords.google.com/api/adwords/v11}addAds
620
+ class AddAds < ::Array
621
+ end
622
+
623
+ # {https://adwords.google.com/api/adwords/v11}addAdsResponse
624
+ class AddAdsResponse < ::Array
625
+ end
626
+
627
+ # {https://adwords.google.com/api/adwords/v11}checkAds
628
+ # ads - AdWords::AdService::Ad
629
+ # languageTarget - AdWords::AdService::LanguageTarget
630
+ # geoTarget - AdWords::AdService::GeoTarget
631
+ class CheckAds
632
+ attr_accessor :ads
633
+ attr_accessor :languageTarget
634
+ attr_accessor :geoTarget
635
+
636
+ def initialize(ads = [], languageTarget = nil, geoTarget = nil)
637
+ @ads = ads
638
+ @languageTarget = languageTarget
639
+ @geoTarget = geoTarget
640
+ end
641
+ end
642
+
643
+ # {https://adwords.google.com/api/adwords/v11}checkAdsResponse
644
+ class CheckAdsResponse < ::Array
645
+ end
646
+
647
+ # {https://adwords.google.com/api/adwords/v11}findBusinesses
648
+ # name - SOAP::SOAPString
649
+ # address - SOAP::SOAPString
650
+ # countryCode - SOAP::SOAPString
651
+ class FindBusinesses
652
+ attr_accessor :name
653
+ attr_accessor :address
654
+ attr_accessor :countryCode
655
+
656
+ def initialize(name = nil, address = nil, countryCode = nil)
657
+ @name = name
658
+ @address = address
659
+ @countryCode = countryCode
660
+ end
661
+ end
662
+
663
+ # {https://adwords.google.com/api/adwords/v11}findBusinessesResponse
664
+ class FindBusinessesResponse < ::Array
665
+ end
666
+
667
+ # {https://adwords.google.com/api/adwords/v11}getActiveAds
668
+ class GetActiveAds < ::Array
669
+ end
670
+
671
+ # {https://adwords.google.com/api/adwords/v11}getActiveAdsResponse
672
+ class GetActiveAdsResponse < ::Array
673
+ end
674
+
675
+ # {https://adwords.google.com/api/adwords/v11}getAd
676
+ # adGroupId - SOAP::SOAPInt
677
+ # adId - SOAP::SOAPLong
678
+ class GetAd
679
+ attr_accessor :adGroupId
680
+ attr_accessor :adId
681
+
682
+ def initialize(adGroupId = nil, adId = nil)
683
+ @adGroupId = adGroupId
684
+ @adId = adId
685
+ end
686
+ end
687
+
688
+ # {https://adwords.google.com/api/adwords/v11}getAdResponse
689
+ # getAdReturn - AdWords::AdService::Ad
690
+ class GetAdResponse
691
+ attr_accessor :getAdReturn
692
+
693
+ def initialize(getAdReturn = nil)
694
+ @getAdReturn = getAdReturn
695
+ end
696
+ end
697
+
698
+ # {https://adwords.google.com/api/adwords/v11}getAdStats
699
+ # adGroupId - SOAP::SOAPInt
700
+ # adIds - SOAP::SOAPLong
701
+ # startDay - SOAP::SOAPDate
702
+ # endDay - SOAP::SOAPDate
703
+ class GetAdStats
704
+ attr_accessor :adGroupId
705
+ attr_accessor :adIds
706
+ attr_accessor :startDay
707
+ attr_accessor :endDay
708
+
709
+ def initialize(adGroupId = nil, adIds = [], startDay = nil, endDay = nil)
710
+ @adGroupId = adGroupId
711
+ @adIds = adIds
712
+ @startDay = startDay
713
+ @endDay = endDay
714
+ end
715
+ end
716
+
717
+ # {https://adwords.google.com/api/adwords/v11}getAdStatsResponse
718
+ class GetAdStatsResponse < ::Array
719
+ end
720
+
721
+ # {https://adwords.google.com/api/adwords/v11}getAllAds
722
+ class GetAllAds < ::Array
723
+ end
724
+
725
+ # {https://adwords.google.com/api/adwords/v11}getAllAdsResponse
726
+ class GetAllAdsResponse < ::Array
727
+ end
728
+
729
+ # {https://adwords.google.com/api/adwords/v11}getMyBusinesses
730
+ class GetMyBusinesses
731
+ def initialize
732
+ end
733
+ end
734
+
735
+ # {https://adwords.google.com/api/adwords/v11}getMyBusinessesResponse
736
+ class GetMyBusinessesResponse < ::Array
737
+ end
738
+
739
+ # {https://adwords.google.com/api/adwords/v11}getMyVideos
740
+ class GetMyVideos
741
+ def initialize
742
+ end
743
+ end
744
+
745
+ # {https://adwords.google.com/api/adwords/v11}getMyVideosResponse
746
+ class GetMyVideosResponse < ::Array
747
+ end
748
+
749
+ # {https://adwords.google.com/api/adwords/v11}updateAds
750
+ class UpdateAds < ::Array
751
+ end
752
+
753
+ # {https://adwords.google.com/api/adwords/v11}updateAdsResponse
754
+ class UpdateAdsResponse
755
+ def initialize
756
+ end
757
+ end
758
+
759
+
760
+ end; end