adwords4r 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,111 @@
1
+ module AdWords
2
+ require 'adwords4r/v6/CampaignService'
3
+
4
+ require 'soap/rpc/driver'
5
+
6
+ class CampaignService < ::SOAP::RPC::Driver
7
+ DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v6/CampaignService"
8
+ MappingRegistry = ::SOAP::Mapping::Registry.new
9
+
10
+ Methods = [
11
+ [ "",
12
+ "getCampaign",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getCampaign"], true],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "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/v6", "getCampaignList"], true],
21
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "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/v6", "getAllAdWordsCampaigns"], true],
28
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "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/v6", "addCampaign"], true],
35
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "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/v6", "addCampaignList"], true],
42
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "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/v6", "updateCampaign"], true],
49
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "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/v6", "updateCampaignList"], true],
56
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "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/v6", "getOptimizeAdServing"], true],
63
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "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/v6", "setOptimizeAdServing"], true],
70
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "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/v6", "getCampaignStats"], true],
77
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "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,472 @@
1
+ module AdWords
2
+ require 'xsd/qname'
3
+
4
+ # {https://adwords.google.com/api/adwords/v6}getAllCreatives
5
+ class GetAllCreatives
6
+ @@schema_type = "getAllCreatives"
7
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
8
+ @@schema_qualified = "true"
9
+ @@schema_element = [
10
+ ["adGroupId", "SOAP::SOAPInt"]
11
+ ]
12
+
13
+ attr_accessor :adGroupId
14
+
15
+ def initialize(adGroupId = nil)
16
+ @adGroupId = adGroupId
17
+ end
18
+ end
19
+
20
+ # {https://adwords.google.com/api/adwords/v6}getAllCreativesResponse
21
+ class GetAllCreativesResponse < ::Array
22
+ @@schema_element = [
23
+ ["getAllCreativesReturn", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "getAllCreativesReturn")]]
24
+ ]
25
+ end
26
+
27
+ # {https://adwords.google.com/api/adwords/v6}getActiveCreatives
28
+ class GetActiveCreatives
29
+ @@schema_type = "getActiveCreatives"
30
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
31
+ @@schema_qualified = "true"
32
+ @@schema_element = [
33
+ ["adGroupId", "SOAP::SOAPInt"]
34
+ ]
35
+
36
+ attr_accessor :adGroupId
37
+
38
+ def initialize(adGroupId = nil)
39
+ @adGroupId = adGroupId
40
+ end
41
+ end
42
+
43
+ # {https://adwords.google.com/api/adwords/v6}getActiveCreativesResponse
44
+ class GetActiveCreativesResponse < ::Array
45
+ @@schema_element = [
46
+ ["getActiveCreativesReturn", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "getActiveCreativesReturn")]]
47
+ ]
48
+ end
49
+
50
+ # {https://adwords.google.com/api/adwords/v6}getCreative
51
+ class GetCreative
52
+ @@schema_type = "getCreative"
53
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
54
+ @@schema_qualified = "true"
55
+ @@schema_element = [
56
+ ["adGroupId", "SOAP::SOAPInt"],
57
+ ["creativeId", "SOAP::SOAPInt"]
58
+ ]
59
+
60
+ attr_accessor :adGroupId
61
+ attr_accessor :creativeId
62
+
63
+ def initialize(adGroupId = nil, creativeId = nil)
64
+ @adGroupId = adGroupId
65
+ @creativeId = creativeId
66
+ end
67
+ end
68
+
69
+ # {https://adwords.google.com/api/adwords/v6}getCreativeResponse
70
+ class GetCreativeResponse
71
+ @@schema_type = "getCreativeResponse"
72
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
73
+ @@schema_qualified = "true"
74
+ @@schema_element = [
75
+ ["getCreativeReturn", "Creative"]
76
+ ]
77
+
78
+ attr_accessor :getCreativeReturn
79
+
80
+ def initialize(getCreativeReturn = nil)
81
+ @getCreativeReturn = getCreativeReturn
82
+ end
83
+ end
84
+
85
+ # {https://adwords.google.com/api/adwords/v6}addCreative
86
+ class AddCreative
87
+ @@schema_type = "addCreative"
88
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
89
+ @@schema_qualified = "true"
90
+ @@schema_element = [
91
+ ["creative", "Creative"]
92
+ ]
93
+
94
+ attr_accessor :creative
95
+
96
+ def initialize(creative = nil)
97
+ @creative = creative
98
+ end
99
+ end
100
+
101
+ # {https://adwords.google.com/api/adwords/v6}addCreativeResponse
102
+ class AddCreativeResponse
103
+ @@schema_type = "addCreativeResponse"
104
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
105
+ @@schema_qualified = "true"
106
+ @@schema_element = [
107
+ ["addCreativeReturn", "Creative"]
108
+ ]
109
+
110
+ attr_accessor :addCreativeReturn
111
+
112
+ def initialize(addCreativeReturn = nil)
113
+ @addCreativeReturn = addCreativeReturn
114
+ end
115
+ end
116
+
117
+ # {https://adwords.google.com/api/adwords/v6}addCreativeList
118
+ class AddCreativeList < ::Array
119
+ @@schema_element = [
120
+ ["creatives", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "creatives")]]
121
+ ]
122
+ end
123
+
124
+ # {https://adwords.google.com/api/adwords/v6}addCreativeListResponse
125
+ class AddCreativeListResponse < ::Array
126
+ @@schema_element = [
127
+ ["addCreativeListReturn", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "addCreativeListReturn")]]
128
+ ]
129
+ end
130
+
131
+ # {https://adwords.google.com/api/adwords/v6}deleteCreative
132
+ class DeleteCreative
133
+ @@schema_type = "deleteCreative"
134
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
135
+ @@schema_qualified = "true"
136
+ @@schema_element = [
137
+ ["adGroupId", "SOAP::SOAPInt"],
138
+ ["creativeId", "SOAP::SOAPInt"]
139
+ ]
140
+
141
+ attr_accessor :adGroupId
142
+ attr_accessor :creativeId
143
+
144
+ def initialize(adGroupId = nil, creativeId = nil)
145
+ @adGroupId = adGroupId
146
+ @creativeId = creativeId
147
+ end
148
+ end
149
+
150
+ # {https://adwords.google.com/api/adwords/v6}deleteCreativeResponse
151
+ class DeleteCreativeResponse
152
+ @@schema_type = "deleteCreativeResponse"
153
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
154
+ @@schema_qualified = "true"
155
+ @@schema_element = []
156
+
157
+ def initialize
158
+ end
159
+ end
160
+
161
+ # {https://adwords.google.com/api/adwords/v6}deleteCreativeList
162
+ class DeleteCreativeList
163
+ @@schema_type = "deleteCreativeList"
164
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
165
+ @@schema_qualified = "true"
166
+ @@schema_element = [
167
+ ["adGroupIds", "SOAP::SOAPInt[]"],
168
+ ["creativeIds", "SOAP::SOAPInt[]"]
169
+ ]
170
+
171
+ attr_accessor :adGroupIds
172
+ attr_accessor :creativeIds
173
+
174
+ def initialize(adGroupIds = [], creativeIds = [])
175
+ @adGroupIds = adGroupIds
176
+ @creativeIds = creativeIds
177
+ end
178
+ end
179
+
180
+ # {https://adwords.google.com/api/adwords/v6}deleteCreativeListResponse
181
+ class DeleteCreativeListResponse
182
+ @@schema_type = "deleteCreativeListResponse"
183
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
184
+ @@schema_qualified = "true"
185
+ @@schema_element = []
186
+
187
+ def initialize
188
+ end
189
+ end
190
+
191
+ # {https://adwords.google.com/api/adwords/v6}activateCreative
192
+ class ActivateCreative
193
+ @@schema_type = "activateCreative"
194
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
195
+ @@schema_qualified = "true"
196
+ @@schema_element = [
197
+ ["adGroupId", "SOAP::SOAPInt"],
198
+ ["creativeId", "SOAP::SOAPInt"]
199
+ ]
200
+
201
+ attr_accessor :adGroupId
202
+ attr_accessor :creativeId
203
+
204
+ def initialize(adGroupId = nil, creativeId = nil)
205
+ @adGroupId = adGroupId
206
+ @creativeId = creativeId
207
+ end
208
+ end
209
+
210
+ # {https://adwords.google.com/api/adwords/v6}activateCreativeResponse
211
+ class ActivateCreativeResponse
212
+ @@schema_type = "activateCreativeResponse"
213
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
214
+ @@schema_qualified = "true"
215
+ @@schema_element = []
216
+
217
+ def initialize
218
+ end
219
+ end
220
+
221
+ # {https://adwords.google.com/api/adwords/v6}activateCreativeList
222
+ class ActivateCreativeList
223
+ @@schema_type = "activateCreativeList"
224
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
225
+ @@schema_qualified = "true"
226
+ @@schema_element = [
227
+ ["adGroupIds", "SOAP::SOAPInt[]"],
228
+ ["creativeIds", "SOAP::SOAPInt[]"]
229
+ ]
230
+
231
+ attr_accessor :adGroupIds
232
+ attr_accessor :creativeIds
233
+
234
+ def initialize(adGroupIds = [], creativeIds = [])
235
+ @adGroupIds = adGroupIds
236
+ @creativeIds = creativeIds
237
+ end
238
+ end
239
+
240
+ # {https://adwords.google.com/api/adwords/v6}activateCreativeListResponse
241
+ class ActivateCreativeListResponse
242
+ @@schema_type = "activateCreativeListResponse"
243
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
244
+ @@schema_qualified = "true"
245
+ @@schema_element = []
246
+
247
+ def initialize
248
+ end
249
+ end
250
+
251
+ # {https://adwords.google.com/api/adwords/v6}getCreativeStats
252
+ class GetCreativeStats
253
+ @@schema_type = "getCreativeStats"
254
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
255
+ @@schema_qualified = "true"
256
+ @@schema_element = [
257
+ ["adGroupId", "SOAP::SOAPInt"],
258
+ ["creativeIds", "SOAP::SOAPInt[]"],
259
+ ["startDay", "SOAP::SOAPDate"],
260
+ ["endDay", "SOAP::SOAPDate"],
261
+ ["inPST", "SOAP::SOAPBoolean"]
262
+ ]
263
+
264
+ attr_accessor :adGroupId
265
+ attr_accessor :creativeIds
266
+ attr_accessor :startDay
267
+ attr_accessor :endDay
268
+ attr_accessor :inPST
269
+
270
+ def initialize(adGroupId = nil, creativeIds = [], startDay = nil, endDay = nil, inPST = nil)
271
+ @adGroupId = adGroupId
272
+ @creativeIds = creativeIds
273
+ @startDay = startDay
274
+ @endDay = endDay
275
+ @inPST = inPST
276
+ end
277
+ end
278
+
279
+ # {https://adwords.google.com/api/adwords/v6}getCreativeStatsResponse
280
+ class GetCreativeStatsResponse < ::Array
281
+ @@schema_element = [
282
+ ["getCreativeStatsReturn", ["StatsRecord[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "getCreativeStatsReturn")]]
283
+ ]
284
+ end
285
+
286
+ # {https://adwords.google.com/api/adwords/v6}Image
287
+ class Image
288
+ @@schema_type = "Image"
289
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
290
+ @@schema_element = [
291
+ ["data", "SOAP::SOAPBase64"],
292
+ ["height", "SOAP::SOAPInt"],
293
+ ["imageUrl", "SOAP::SOAPString"],
294
+ ["mimeType", "SOAP::SOAPString"],
295
+ ["name", "SOAP::SOAPString"],
296
+ ["thumbnailUrl", "SOAP::SOAPString"],
297
+ ["type", "SOAP::SOAPString"],
298
+ ["width", "SOAP::SOAPInt"]
299
+ ]
300
+
301
+ attr_accessor :data
302
+ attr_accessor :height
303
+ attr_accessor :imageUrl
304
+ attr_accessor :mimeType
305
+ attr_accessor :name
306
+ attr_accessor :thumbnailUrl
307
+ attr_accessor :type
308
+ attr_accessor :width
309
+
310
+ def initialize(data = nil, height = nil, imageUrl = nil, mimeType = nil, name = nil, thumbnailUrl = nil, type = nil, width = nil)
311
+ @data = data
312
+ @height = height
313
+ @imageUrl = imageUrl
314
+ @mimeType = mimeType
315
+ @name = name
316
+ @thumbnailUrl = thumbnailUrl
317
+ @type = type
318
+ @width = width
319
+ end
320
+ end
321
+
322
+ # {https://adwords.google.com/api/adwords/v6}Creative
323
+ class Creative
324
+ @@schema_type = "Creative"
325
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
326
+ @@schema_element = [
327
+ ["adGroupId", "SOAP::SOAPInt"],
328
+ ["deleted", "SOAP::SOAPBoolean"],
329
+ ["description1", "SOAP::SOAPString"],
330
+ ["description2", "SOAP::SOAPString"],
331
+ ["destinationUrl", "SOAP::SOAPString"],
332
+ ["disapproved", "SOAP::SOAPBoolean"],
333
+ ["displayUrl", "SOAP::SOAPString"],
334
+ ["exemptionRequest", "SOAP::SOAPString"],
335
+ ["headline", "SOAP::SOAPString"],
336
+ ["id", "SOAP::SOAPInt"],
337
+ ["image", "Image"]
338
+ ]
339
+
340
+ attr_accessor :adGroupId
341
+ attr_accessor :deleted
342
+ attr_accessor :description1
343
+ attr_accessor :description2
344
+ attr_accessor :destinationUrl
345
+ attr_accessor :disapproved
346
+ attr_accessor :displayUrl
347
+ attr_accessor :exemptionRequest
348
+ attr_accessor :headline
349
+ attr_accessor :id
350
+ attr_accessor :image
351
+
352
+ def initialize(adGroupId = nil, deleted = nil, description1 = nil, description2 = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, headline = nil, id = nil, image = nil)
353
+ @adGroupId = adGroupId
354
+ @deleted = deleted
355
+ @description1 = description1
356
+ @description2 = description2
357
+ @destinationUrl = destinationUrl
358
+ @disapproved = disapproved
359
+ @displayUrl = displayUrl
360
+ @exemptionRequest = exemptionRequest
361
+ @headline = headline
362
+ @id = id
363
+ @image = image
364
+ end
365
+ end
366
+
367
+ # {https://adwords.google.com/api/adwords/v6}ApiException
368
+ class ApiException
369
+ @@schema_type = "ApiException"
370
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
371
+ @@schema_element = [
372
+ ["code", "SOAP::SOAPInt"],
373
+ ["internal", "SOAP::SOAPBoolean"],
374
+ ["message", "SOAP::SOAPString"],
375
+ ["trigger", "SOAP::SOAPString"],
376
+ ["errors", "ApiError[]"]
377
+ ]
378
+
379
+ attr_accessor :code
380
+ attr_accessor :internal
381
+ attr_accessor :message
382
+ attr_accessor :trigger
383
+ attr_accessor :errors
384
+
385
+ def initialize(code = nil, internal = nil, message = nil, trigger = nil, errors = [])
386
+ @code = code
387
+ @internal = internal
388
+ @message = message
389
+ @trigger = trigger
390
+ @errors = errors
391
+ end
392
+ end
393
+
394
+ # {https://adwords.google.com/api/adwords/v6}ApiError
395
+ class ApiError
396
+ @@schema_type = "ApiError"
397
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
398
+ @@schema_element = [
399
+ ["index", "SOAP::SOAPInt"],
400
+ ["field", "SOAP::SOAPString"],
401
+ ["textIndex", "SOAP::SOAPInt"],
402
+ ["textLength", "SOAP::SOAPInt"],
403
+ ["trigger", "SOAP::SOAPString"],
404
+ ["code", "SOAP::SOAPInt"],
405
+ ["isExemptable", "SOAP::SOAPBoolean"],
406
+ ["detail", "SOAP::SOAPString"]
407
+ ]
408
+
409
+ attr_accessor :index
410
+ attr_accessor :field
411
+ attr_accessor :textIndex
412
+ attr_accessor :textLength
413
+ attr_accessor :trigger
414
+ attr_accessor :code
415
+ attr_accessor :isExemptable
416
+ attr_accessor :detail
417
+
418
+ def initialize(index = nil, field = nil, textIndex = nil, textLength = nil, trigger = nil, code = nil, isExemptable = nil, detail = nil)
419
+ @index = index
420
+ @field = field
421
+ @textIndex = textIndex
422
+ @textLength = textLength
423
+ @trigger = trigger
424
+ @code = code
425
+ @isExemptable = isExemptable
426
+ @detail = detail
427
+ end
428
+ end
429
+
430
+ # {https://adwords.google.com/api/adwords/v6}StatsRecord
431
+ class StatsRecord
432
+ @@schema_type = "StatsRecord"
433
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
434
+ @@schema_element = [
435
+ ["averagePosition", "SOAP::SOAPDouble"],
436
+ ["clicks", "SOAP::SOAPLong"],
437
+ ["conversionRate", "SOAP::SOAPDouble"],
438
+ ["conversions", "SOAP::SOAPLong"],
439
+ ["cost", "SOAP::SOAPLong"],
440
+ ["id", "SOAP::SOAPLong"],
441
+ ["impressions", "SOAP::SOAPLong"]
442
+ ]
443
+
444
+ attr_accessor :averagePosition
445
+ attr_accessor :clicks
446
+ attr_accessor :conversionRate
447
+ attr_accessor :conversions
448
+ attr_accessor :cost
449
+ attr_accessor :id
450
+ attr_accessor :impressions
451
+
452
+ def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
453
+ @averagePosition = averagePosition
454
+ @clicks = clicks
455
+ @conversionRate = conversionRate
456
+ @conversions = conversions
457
+ @cost = cost
458
+ @id = id
459
+ @impressions = impressions
460
+ end
461
+ end
462
+
463
+ # {https://adwords.google.com/api/adwords/v6}ImageType
464
+ class ImageType < ::String
465
+ @@schema_type = "ImageType"
466
+ @@schema_ns = "https://adwords.google.com/api/adwords/v6"
467
+
468
+ DynamicImage = ImageType.new("dynamicImage")
469
+ Flash = ImageType.new("flash")
470
+ Image = ImageType.new("image")
471
+ end
472
+ end