adwords4r 0.2

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 (55) hide show
  1. data/Authors.txt +2 -0
  2. data/ChangeLog.txt +4 -0
  3. data/Copying.txt +28 -0
  4. data/Licence.txt +10 -0
  5. data/Rakefile +190 -0
  6. data/Readme.txt +61 -0
  7. data/Todo.txt +9 -0
  8. data/examples/campaign.rb +36 -0
  9. data/examples/framework.rb +6 -0
  10. data/lib/adwords4r.rb +136 -0
  11. data/lib/adwords4r/credentials.rb +37 -0
  12. data/lib/adwords4r/services.rb +41 -0
  13. data/lib/adwords4r/v2/AccountService.rb +626 -0
  14. data/lib/adwords4r/v2/AccountServiceDriver.rb +153 -0
  15. data/lib/adwords4r/v2/AdGroupService.rb +315 -0
  16. data/lib/adwords4r/v2/AdGroupServiceDriver.rb +97 -0
  17. data/lib/adwords4r/v2/CampaignService.rb +515 -0
  18. data/lib/adwords4r/v2/CampaignServiceDriver.rb +111 -0
  19. data/lib/adwords4r/v2/CreativeService.rb +399 -0
  20. data/lib/adwords4r/v2/CreativeServiceDriver.rb +104 -0
  21. data/lib/adwords4r/v2/CriterionService.rb +413 -0
  22. data/lib/adwords4r/v2/CriterionServiceDriver.rb +97 -0
  23. data/lib/adwords4r/v2/InfoService.rb +258 -0
  24. data/lib/adwords4r/v2/InfoServiceDriver.rb +90 -0
  25. data/lib/adwords4r/v2/KeywordService.rb +541 -0
  26. data/lib/adwords4r/v2/KeywordServiceDriver.rb +125 -0
  27. data/lib/adwords4r/v2/ReportService.rb +567 -0
  28. data/lib/adwords4r/v2/ReportServiceDriver.rb +83 -0
  29. data/lib/adwords4r/v2/TrafficEstimatorService.rb +249 -0
  30. data/lib/adwords4r/v2/TrafficEstimatorServiceDriver.rb +62 -0
  31. data/lib/adwords4r/v2/default.rb +364 -0
  32. data/lib/adwords4r/v2/defaultDriver.rb +102 -0
  33. data/lib/adwords4r/v3/AccountService.rb +626 -0
  34. data/lib/adwords4r/v3/AccountServiceDriver.rb +153 -0
  35. data/lib/adwords4r/v3/AdGroupService.rb +318 -0
  36. data/lib/adwords4r/v3/AdGroupServiceDriver.rb +97 -0
  37. data/lib/adwords4r/v3/CampaignService.rb +529 -0
  38. data/lib/adwords4r/v3/CampaignServiceDriver.rb +111 -0
  39. data/lib/adwords4r/v3/CreativeService.rb +399 -0
  40. data/lib/adwords4r/v3/CreativeServiceDriver.rb +104 -0
  41. data/lib/adwords4r/v3/CriterionService.rb +413 -0
  42. data/lib/adwords4r/v3/CriterionServiceDriver.rb +97 -0
  43. data/lib/adwords4r/v3/InfoService.rb +258 -0
  44. data/lib/adwords4r/v3/InfoServiceDriver.rb +90 -0
  45. data/lib/adwords4r/v3/KeywordService.rb +541 -0
  46. data/lib/adwords4r/v3/KeywordServiceDriver.rb +125 -0
  47. data/lib/adwords4r/v3/KeywordToolService.rb +225 -0
  48. data/lib/adwords4r/v3/KeywordToolServiceDriver.rb +55 -0
  49. data/lib/adwords4r/v3/ReportService.rb +567 -0
  50. data/lib/adwords4r/v3/ReportServiceDriver.rb +83 -0
  51. data/lib/adwords4r/v3/TrafficEstimatorService.rb +263 -0
  52. data/lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb +62 -0
  53. data/scripts/publish.rb +16 -0
  54. data/setup.rb +1585 -0
  55. metadata +92 -0
@@ -0,0 +1,111 @@
1
+ require 'adwords4r/v3/CampaignService'
2
+
3
+ require 'soap/rpc/driver'
4
+ module AdWordsV3
5
+
6
+ class CampaignService < ::SOAP::RPC::Driver
7
+ DefaultEndpointUrl = "https://adwords.google.com:443/api/adwords/v3/CampaignService"
8
+ MappingRegistry = ::SOAP::Mapping::Registry.new
9
+
10
+ Methods = [
11
+ [ "",
12
+ "getCampaign",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCampaign"], true],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCampaignResponse"], true] ],
15
+ { :request_style => :document, :request_use => :literal,
16
+ :response_style => :document, :response_use => :literal }
17
+ ],
18
+ [ "",
19
+ "getCampaignList",
20
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCampaignList"], true],
21
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCampaignListResponse"], true] ],
22
+ { :request_style => :document, :request_use => :literal,
23
+ :response_style => :document, :response_use => :literal }
24
+ ],
25
+ [ "",
26
+ "getAllAdWordsCampaigns",
27
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getAllAdWordsCampaigns"], true],
28
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getAllAdWordsCampaignsResponse"], true] ],
29
+ { :request_style => :document, :request_use => :literal,
30
+ :response_style => :document, :response_use => :literal }
31
+ ],
32
+ [ "",
33
+ "addCampaign",
34
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "addCampaign"], true],
35
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "addCampaignResponse"], true] ],
36
+ { :request_style => :document, :request_use => :literal,
37
+ :response_style => :document, :response_use => :literal }
38
+ ],
39
+ [ "",
40
+ "addCampaignList",
41
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "addCampaignList"], true],
42
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "addCampaignListResponse"], true] ],
43
+ { :request_style => :document, :request_use => :literal,
44
+ :response_style => :document, :response_use => :literal }
45
+ ],
46
+ [ "",
47
+ "updateCampaign",
48
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "updateCampaign"], true],
49
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "updateCampaignResponse"], true] ],
50
+ { :request_style => :document, :request_use => :literal,
51
+ :response_style => :document, :response_use => :literal }
52
+ ],
53
+ [ "",
54
+ "updateCampaignList",
55
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "updateCampaignList"], true],
56
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "updateCampaignListResponse"], true] ],
57
+ { :request_style => :document, :request_use => :literal,
58
+ :response_style => :document, :response_use => :literal }
59
+ ],
60
+ [ "",
61
+ "getOptimizeAdServing",
62
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getOptimizeAdServing"], true],
63
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getOptimizeAdServingResponse"], true] ],
64
+ { :request_style => :document, :request_use => :literal,
65
+ :response_style => :document, :response_use => :literal }
66
+ ],
67
+ [ "",
68
+ "setOptimizeAdServing",
69
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "setOptimizeAdServing"], true],
70
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "setOptimizeAdServingResponse"], true] ],
71
+ { :request_style => :document, :request_use => :literal,
72
+ :response_style => :document, :response_use => :literal }
73
+ ],
74
+ [ "",
75
+ "getCampaignStats",
76
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCampaignStats"], true],
77
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCampaignStatsResponse"], true] ],
78
+ { :request_style => :document, :request_use => :literal,
79
+ :response_style => :document, :response_use => :literal }
80
+ ]
81
+ ]
82
+
83
+ def initialize(endpoint_url = nil)
84
+ endpoint_url ||= DefaultEndpointUrl
85
+ super(endpoint_url, nil)
86
+ self.mapping_registry = MappingRegistry
87
+ init_methods
88
+ end
89
+
90
+ private
91
+
92
+ def init_methods
93
+ Methods.each do |definitions|
94
+ opt = definitions.last
95
+ if opt[:request_style] == :document
96
+ add_document_operation(*definitions)
97
+ else
98
+ add_rpc_operation(*definitions)
99
+ qname = definitions[0]
100
+ name = definitions[2]
101
+ if qname.name != name and qname.name.capitalize == name.capitalize
102
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
103
+ __send__(name, *arg)
104
+ end
105
+ end
106
+ end
107
+ end
108
+ end
109
+ end
110
+
111
+ end
@@ -0,0 +1,399 @@
1
+ require 'xsd/qname'
2
+
3
+ # {https://adwords.google.com/api/adwords/v3}getAllCreatives
4
+ class GetAllCreatives
5
+ @@schema_type = "getAllCreatives"
6
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
7
+ @@schema_qualified = "true"
8
+ @@schema_element = [
9
+ ["adGroupId", "SOAP::SOAPInt"]
10
+ ]
11
+
12
+ attr_accessor :adGroupId
13
+
14
+ def initialize(adGroupId = nil)
15
+ @adGroupId = adGroupId
16
+ end
17
+ end
18
+
19
+ # {https://adwords.google.com/api/adwords/v3}getAllCreativesResponse
20
+ class GetAllCreativesResponse < ::Array
21
+ @@schema_element = [
22
+ ["getAllCreativesReturn", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "getAllCreativesReturn")]]
23
+ ]
24
+ end
25
+
26
+ # {https://adwords.google.com/api/adwords/v3}getActiveCreatives
27
+ class GetActiveCreatives
28
+ @@schema_type = "getActiveCreatives"
29
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
30
+ @@schema_qualified = "true"
31
+ @@schema_element = [
32
+ ["adGroupId", "SOAP::SOAPInt"]
33
+ ]
34
+
35
+ attr_accessor :adGroupId
36
+
37
+ def initialize(adGroupId = nil)
38
+ @adGroupId = adGroupId
39
+ end
40
+ end
41
+
42
+ # {https://adwords.google.com/api/adwords/v3}getActiveCreativesResponse
43
+ class GetActiveCreativesResponse < ::Array
44
+ @@schema_element = [
45
+ ["getActiveCreativesReturn", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "getActiveCreativesReturn")]]
46
+ ]
47
+ end
48
+
49
+ # {https://adwords.google.com/api/adwords/v3}getCreative
50
+ class GetCreative
51
+ @@schema_type = "getCreative"
52
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
53
+ @@schema_qualified = "true"
54
+ @@schema_element = [
55
+ ["adGroupId", "SOAP::SOAPInt"],
56
+ ["creativeId", "SOAP::SOAPInt"]
57
+ ]
58
+
59
+ attr_accessor :adGroupId
60
+ attr_accessor :creativeId
61
+
62
+ def initialize(adGroupId = nil, creativeId = nil)
63
+ @adGroupId = adGroupId
64
+ @creativeId = creativeId
65
+ end
66
+ end
67
+
68
+ # {https://adwords.google.com/api/adwords/v3}getCreativeResponse
69
+ class GetCreativeResponse
70
+ @@schema_type = "getCreativeResponse"
71
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
72
+ @@schema_qualified = "true"
73
+ @@schema_element = [
74
+ ["getCreativeReturn", "Creative"]
75
+ ]
76
+
77
+ attr_accessor :getCreativeReturn
78
+
79
+ def initialize(getCreativeReturn = nil)
80
+ @getCreativeReturn = getCreativeReturn
81
+ end
82
+ end
83
+
84
+ # {https://adwords.google.com/api/adwords/v3}addCreative
85
+ class AddCreative
86
+ @@schema_type = "addCreative"
87
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
88
+ @@schema_qualified = "true"
89
+ @@schema_element = [
90
+ ["creative", "Creative"]
91
+ ]
92
+
93
+ attr_accessor :creative
94
+
95
+ def initialize(creative = nil)
96
+ @creative = creative
97
+ end
98
+ end
99
+
100
+ # {https://adwords.google.com/api/adwords/v3}addCreativeResponse
101
+ class AddCreativeResponse
102
+ @@schema_type = "addCreativeResponse"
103
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
104
+ @@schema_qualified = "true"
105
+ @@schema_element = [
106
+ ["addCreativeReturn", "Creative"]
107
+ ]
108
+
109
+ attr_accessor :addCreativeReturn
110
+
111
+ def initialize(addCreativeReturn = nil)
112
+ @addCreativeReturn = addCreativeReturn
113
+ end
114
+ end
115
+
116
+ # {https://adwords.google.com/api/adwords/v3}addCreativeList
117
+ class AddCreativeList < ::Array
118
+ @@schema_element = [
119
+ ["creatives", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "creatives")]]
120
+ ]
121
+ end
122
+
123
+ # {https://adwords.google.com/api/adwords/v3}addCreativeListResponse
124
+ class AddCreativeListResponse < ::Array
125
+ @@schema_element = [
126
+ ["addCreativeListReturn", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "addCreativeListReturn")]]
127
+ ]
128
+ end
129
+
130
+ # {https://adwords.google.com/api/adwords/v3}deleteCreative
131
+ class DeleteCreative
132
+ @@schema_type = "deleteCreative"
133
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
134
+ @@schema_qualified = "true"
135
+ @@schema_element = [
136
+ ["adGroupId", "SOAP::SOAPInt"],
137
+ ["creativeId", "SOAP::SOAPInt"]
138
+ ]
139
+
140
+ attr_accessor :adGroupId
141
+ attr_accessor :creativeId
142
+
143
+ def initialize(adGroupId = nil, creativeId = nil)
144
+ @adGroupId = adGroupId
145
+ @creativeId = creativeId
146
+ end
147
+ end
148
+
149
+ # {https://adwords.google.com/api/adwords/v3}deleteCreativeResponse
150
+ class DeleteCreativeResponse
151
+ @@schema_type = "deleteCreativeResponse"
152
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
153
+ @@schema_qualified = "true"
154
+ @@schema_element = []
155
+
156
+ def initialize
157
+ end
158
+ end
159
+
160
+ # {https://adwords.google.com/api/adwords/v3}deleteCreativeList
161
+ class DeleteCreativeList
162
+ @@schema_type = "deleteCreativeList"
163
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
164
+ @@schema_qualified = "true"
165
+ @@schema_element = [
166
+ ["adGroupIds", "SOAP::SOAPInt[]"],
167
+ ["creativeIds", "SOAP::SOAPInt[]"]
168
+ ]
169
+
170
+ attr_accessor :adGroupIds
171
+ attr_accessor :creativeIds
172
+
173
+ def initialize(adGroupIds = [], creativeIds = [])
174
+ @adGroupIds = adGroupIds
175
+ @creativeIds = creativeIds
176
+ end
177
+ end
178
+
179
+ # {https://adwords.google.com/api/adwords/v3}deleteCreativeListResponse
180
+ class DeleteCreativeListResponse
181
+ @@schema_type = "deleteCreativeListResponse"
182
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
183
+ @@schema_qualified = "true"
184
+ @@schema_element = []
185
+
186
+ def initialize
187
+ end
188
+ end
189
+
190
+ # {https://adwords.google.com/api/adwords/v3}activateCreative
191
+ class ActivateCreative
192
+ @@schema_type = "activateCreative"
193
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
194
+ @@schema_qualified = "true"
195
+ @@schema_element = [
196
+ ["adGroupId", "SOAP::SOAPInt"],
197
+ ["creativeId", "SOAP::SOAPInt"]
198
+ ]
199
+
200
+ attr_accessor :adGroupId
201
+ attr_accessor :creativeId
202
+
203
+ def initialize(adGroupId = nil, creativeId = nil)
204
+ @adGroupId = adGroupId
205
+ @creativeId = creativeId
206
+ end
207
+ end
208
+
209
+ # {https://adwords.google.com/api/adwords/v3}activateCreativeResponse
210
+ class ActivateCreativeResponse
211
+ @@schema_type = "activateCreativeResponse"
212
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
213
+ @@schema_qualified = "true"
214
+ @@schema_element = []
215
+
216
+ def initialize
217
+ end
218
+ end
219
+
220
+ # {https://adwords.google.com/api/adwords/v3}activateCreativeList
221
+ class ActivateCreativeList
222
+ @@schema_type = "activateCreativeList"
223
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
224
+ @@schema_qualified = "true"
225
+ @@schema_element = [
226
+ ["adGroupIds", "SOAP::SOAPInt[]"],
227
+ ["creativeIds", "SOAP::SOAPInt[]"]
228
+ ]
229
+
230
+ attr_accessor :adGroupIds
231
+ attr_accessor :creativeIds
232
+
233
+ def initialize(adGroupIds = [], creativeIds = [])
234
+ @adGroupIds = adGroupIds
235
+ @creativeIds = creativeIds
236
+ end
237
+ end
238
+
239
+ # {https://adwords.google.com/api/adwords/v3}activateCreativeListResponse
240
+ class ActivateCreativeListResponse
241
+ @@schema_type = "activateCreativeListResponse"
242
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
243
+ @@schema_qualified = "true"
244
+ @@schema_element = []
245
+
246
+ def initialize
247
+ end
248
+ end
249
+
250
+ # {https://adwords.google.com/api/adwords/v3}Image
251
+ class Image
252
+ @@schema_type = "Image"
253
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
254
+ @@schema_element = [
255
+ ["data", "SOAP::SOAPBase64"],
256
+ ["height", "SOAP::SOAPInt"],
257
+ ["imageUrl", "SOAP::SOAPString"],
258
+ ["mimeType", "SOAP::SOAPString"],
259
+ ["name", "SOAP::SOAPString"],
260
+ ["thumbnailUrl", "SOAP::SOAPString"],
261
+ ["type", "ImageType"],
262
+ ["width", "SOAP::SOAPInt"]
263
+ ]
264
+
265
+ attr_accessor :data
266
+ attr_accessor :height
267
+ attr_accessor :imageUrl
268
+ attr_accessor :mimeType
269
+ attr_accessor :name
270
+ attr_accessor :thumbnailUrl
271
+ attr_accessor :type
272
+ attr_accessor :width
273
+
274
+ def initialize(data = nil, height = nil, imageUrl = nil, mimeType = nil, name = nil, thumbnailUrl = nil, type = nil, width = nil)
275
+ @data = data
276
+ @height = height
277
+ @imageUrl = imageUrl
278
+ @mimeType = mimeType
279
+ @name = name
280
+ @thumbnailUrl = thumbnailUrl
281
+ @type = type
282
+ @width = width
283
+ end
284
+ end
285
+
286
+ # {https://adwords.google.com/api/adwords/v3}Creative
287
+ class Creative
288
+ @@schema_type = "Creative"
289
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
290
+ @@schema_element = [
291
+ ["adGroupId", "SOAP::SOAPInt"],
292
+ ["deleted", "SOAP::SOAPBoolean"],
293
+ ["description1", "SOAP::SOAPString"],
294
+ ["description2", "SOAP::SOAPString"],
295
+ ["destinationUrl", "SOAP::SOAPString"],
296
+ ["disapproved", "SOAP::SOAPBoolean"],
297
+ ["displayUrl", "SOAP::SOAPString"],
298
+ ["exemptionRequest", "SOAP::SOAPString"],
299
+ ["headline", "SOAP::SOAPString"],
300
+ ["id", "SOAP::SOAPInt"],
301
+ ["image", "Image"]
302
+ ]
303
+
304
+ attr_accessor :adGroupId
305
+ attr_accessor :deleted
306
+ attr_accessor :description1
307
+ attr_accessor :description2
308
+ attr_accessor :destinationUrl
309
+ attr_accessor :disapproved
310
+ attr_accessor :displayUrl
311
+ attr_accessor :exemptionRequest
312
+ attr_accessor :headline
313
+ attr_accessor :id
314
+ attr_accessor :image
315
+
316
+ def initialize(adGroupId = nil, deleted = nil, description1 = nil, description2 = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, headline = nil, id = nil, image = nil)
317
+ @adGroupId = adGroupId
318
+ @deleted = deleted
319
+ @description1 = description1
320
+ @description2 = description2
321
+ @destinationUrl = destinationUrl
322
+ @disapproved = disapproved
323
+ @displayUrl = displayUrl
324
+ @exemptionRequest = exemptionRequest
325
+ @headline = headline
326
+ @id = id
327
+ @image = image
328
+ end
329
+ end
330
+
331
+ # {https://adwords.google.com/api/adwords/v3}AdPolicyViolation
332
+ class AdPolicyViolation
333
+ @@schema_type = "AdPolicyViolation"
334
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
335
+ @@schema_element = [
336
+ ["detail", "SOAP::SOAPString"],
337
+ ["index", "SOAP::SOAPInt"],
338
+ ["isExemptable", "SOAP::SOAPBoolean"],
339
+ ["line", "SOAP::SOAPInt"],
340
+ ["textIndex", "SOAP::SOAPInt"],
341
+ ["textLength", "SOAP::SOAPInt"],
342
+ ["trigger", "SOAP::SOAPString"]
343
+ ]
344
+
345
+ attr_accessor :detail
346
+ attr_accessor :index
347
+ attr_accessor :isExemptable
348
+ attr_accessor :line
349
+ attr_accessor :textIndex
350
+ attr_accessor :textLength
351
+ attr_accessor :trigger
352
+
353
+ def initialize(detail = nil, index = nil, isExemptable = nil, line = nil, textIndex = nil, textLength = nil, trigger = nil)
354
+ @detail = detail
355
+ @index = index
356
+ @isExemptable = isExemptable
357
+ @line = line
358
+ @textIndex = textIndex
359
+ @textLength = textLength
360
+ @trigger = trigger
361
+ end
362
+ end
363
+
364
+ # {https://adwords.google.com/api/adwords/v3}ApiException
365
+ class ApiException
366
+ @@schema_type = "ApiException"
367
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
368
+ @@schema_element = [
369
+ ["code", "SOAP::SOAPInt"],
370
+ ["internal", "SOAP::SOAPBoolean"],
371
+ ["message", "SOAP::SOAPString"],
372
+ ["trigger", "SOAP::SOAPString"],
373
+ ["violations", "SOAP::SOAPString"]
374
+ ]
375
+
376
+ attr_accessor :code
377
+ attr_accessor :internal
378
+ attr_accessor :message
379
+ attr_accessor :trigger
380
+ attr_accessor :violations
381
+
382
+ def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
383
+ @code = code
384
+ @internal = internal
385
+ @message = message
386
+ @trigger = trigger
387
+ @violations = violations
388
+ end
389
+ end
390
+
391
+ # {https://adwords.google.com/api/adwords/v3}ImageType
392
+ class ImageType < ::String
393
+ @@schema_type = "ImageType"
394
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
395
+
396
+ DynamicImage = ImageType.new("dynamicImage")
397
+ Flash = ImageType.new("flash")
398
+ Image = ImageType.new("image")
399
+ end