adwords4r 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. data/ChangeLog.txt +4 -0
  2. data/Rakefile +10 -10
  3. data/Readme.txt +78 -74
  4. data/Todo.txt +12 -0
  5. data/adwords.properties +2 -0
  6. data/examples/campaign.rb +1 -2
  7. data/examples/keyword_tool_demo.rb +27 -0
  8. data/examples/sandbox.rb +30 -0
  9. data/lib/adwords4r.rb +7 -1
  10. data/lib/adwords4r/credentials.rb +5 -3
  11. data/lib/adwords4r/services.rb +2 -2
  12. data/lib/adwords4r/v4/CreativeService.rb +0 -33
  13. data/lib/adwords4r/{v3 → v5}/AccountService.rb +311 -86
  14. data/lib/adwords4r/{v3 → v5}/AccountServiceDriver.rb +69 -34
  15. data/lib/adwords4r/{v3 → v5}/AdGroupService.rb +90 -58
  16. data/lib/adwords4r/{v3 → v5}/AdGroupServiceDriver.rb +18 -18
  17. data/lib/adwords4r/{v3 → v5}/CampaignService.rb +121 -89
  18. data/lib/adwords4r/{v3 → v5}/CampaignServiceDriver.rb +22 -22
  19. data/lib/adwords4r/{v3 → v5}/CreativeService.rb +84 -81
  20. data/lib/adwords4r/{v2 → v5}/CreativeServiceDriver.rb +20 -20
  21. data/lib/adwords4r/{v3 → v5}/CriterionService.rb +96 -64
  22. data/lib/adwords4r/{v3 → v5}/CriterionServiceDriver.rb +18 -18
  23. data/lib/adwords4r/{v3 → v5}/InfoService.rb +70 -34
  24. data/lib/adwords4r/{v2 → v5}/InfoServiceDriver.rb +16 -16
  25. data/lib/adwords4r/{v3 → v5}/KeywordToolService.rb +62 -26
  26. data/lib/adwords4r/{v3 → v5}/KeywordToolServiceDriver.rb +6 -6
  27. data/lib/adwords4r/v5/ReportService.rb +788 -0
  28. data/lib/adwords4r/{v2 → v5}/ReportServiceDriver.rb +14 -14
  29. data/lib/adwords4r/{v3 → v5}/TrafficEstimatorService.rb +95 -50
  30. data/lib/adwords4r/{v2 → v5}/TrafficEstimatorServiceDriver.rb +8 -8
  31. metadata +23 -46
  32. data/examples/report_demo.rb +0 -42
  33. data/lib/adwords4r/registry.rb +0 -31
  34. data/lib/adwords4r/v2/AccountService.rb +0 -628
  35. data/lib/adwords4r/v2/AccountServiceDriver.rb +0 -153
  36. data/lib/adwords4r/v2/AdGroupService.rb +0 -317
  37. data/lib/adwords4r/v2/AdGroupServiceDriver.rb +0 -97
  38. data/lib/adwords4r/v2/CampaignService.rb +0 -517
  39. data/lib/adwords4r/v2/CampaignServiceDriver.rb +0 -111
  40. data/lib/adwords4r/v2/CreativeService.rb +0 -401
  41. data/lib/adwords4r/v2/CriterionService.rb +0 -415
  42. data/lib/adwords4r/v2/CriterionServiceDriver.rb +0 -97
  43. data/lib/adwords4r/v2/InfoService.rb +0 -260
  44. data/lib/adwords4r/v2/KeywordService.rb +0 -543
  45. data/lib/adwords4r/v2/KeywordServiceDriver.rb +0 -125
  46. data/lib/adwords4r/v2/ReportService.rb +0 -569
  47. data/lib/adwords4r/v2/TrafficEstimatorService.rb +0 -251
  48. data/lib/adwords4r/v2/default.rb +0 -364
  49. data/lib/adwords4r/v2/defaultDriver.rb +0 -102
  50. data/lib/adwords4r/v3/CreativeServiceDriver.rb +0 -104
  51. data/lib/adwords4r/v3/InfoServiceDriver.rb +0 -90
  52. data/lib/adwords4r/v3/KeywordService.rb +0 -543
  53. data/lib/adwords4r/v3/KeywordServiceDriver.rb +0 -125
  54. data/lib/adwords4r/v3/ReportService.rb +0 -569
  55. data/lib/adwords4r/v3/ReportServiceDriver.rb +0 -83
  56. data/lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb +0 -62
  57. data/scripts/publish.rb +0 -16
@@ -1,42 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'adwords4r'
4
- require 'open-uri'
5
-
6
- service = AdWords::API.new
7
-
8
- job = AdWords::KeywordReportJob.new
9
- job.aggregationType = AdWords::AggregationType::Summary
10
- job.startDay = Date.new(2006,1,1)
11
- job.endDay = Date.today
12
- job.name = "Report1"
13
-
14
- begin
15
- myJobId = service.scheduleReportJob(job)
16
-
17
- status = service.getReportJobStatus(myJobId);
18
-
19
- while (status != "Completed" && status != "Failed")
20
- sleep 15
21
- status = service.getReportJobStatus(myJobId)
22
- puts "Report job status is " + status
23
- end
24
-
25
- if(status == "Failed")
26
- puts("Job failed!")
27
- else
28
- # report is ready; download it
29
- puts "The report is ready!"
30
- url = service.getReportDownloadUrl(myJobId)
31
- puts "Report Url: " + url
32
- for line in open(url)
33
- puts line
34
- end
35
- end
36
- rescue AdWords::Error::UnknownAPICall => e
37
- puts e
38
- rescue AdWords::Error::ApiError => e
39
- puts e.code
40
- puts e.message
41
- end
42
-
@@ -1,31 +0,0 @@
1
- require 'soap/rpc/driver'
2
- require 'soap/rpc/mapping'
3
-
4
- module SOAP
5
- module Mapping
6
-
7
- # alias_method :old_class_from_name, :class_from_name
8
- # def Mapping.class_from_name(*args)
9
- # puts 'in new_class'
10
- # result = Mapping.old_class_from_name(*args)
11
- # return result
12
- # end
13
-
14
- class AdWords4rRegistry < ::SOAP::Mapping::WSDLLiteralRegistry
15
- def any2obj(node, obj_class = nil)
16
- puts 'adwords4r any2obj'
17
- unless obj_class
18
- #puts 'adwords4r any2obj node ' + node.elemname.name
19
- typestr = XSD::CodeGen::GenSupport.safeconstname(node.elename.name)
20
- puts 'typestr'
21
- obj_class = Mapping.class_from_name('AdWords::' + typestr)
22
- puts 'in literal any2obj obj_class =' + obj_class.to_s + typestr
23
- require 'pp'
24
- pp obj_class
25
- end
26
- super(node, obj_class)
27
- end
28
- end
29
-
30
- end
31
- end
@@ -1,628 +0,0 @@
1
- module AdWords
2
- require 'xsd/qname'
3
-
4
- # {https://adwords.google.com/api/adwords/v2}createAdWordsAccount
5
- class CreateAdWordsAccount
6
- @@schema_type = "createAdWordsAccount"
7
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
8
- @@schema_qualified = "true"
9
- @@schema_element = [
10
- ["loginEmail", "SOAP::SOAPString"],
11
- ["password", "SOAP::SOAPString"],
12
- ["languagePreference", "SOAP::SOAPString"],
13
- ["emailPrefs", "EmailPromotionsPreferences"],
14
- ["currencyCode", "SOAP::SOAPString"],
15
- ["cardInfo", "CreditCard"],
16
- ["contactInfo", "Address"],
17
- ["defaultAdsCoverage", "CoverageType"]
18
- ]
19
-
20
- attr_accessor :loginEmail
21
- attr_accessor :password
22
- attr_accessor :languagePreference
23
- attr_accessor :emailPrefs
24
- attr_accessor :currencyCode
25
- attr_accessor :cardInfo
26
- attr_accessor :contactInfo
27
- attr_accessor :defaultAdsCoverage
28
-
29
- def initialize(loginEmail = nil, password = nil, languagePreference = nil, emailPrefs = nil, currencyCode = nil, cardInfo = nil, contactInfo = nil, defaultAdsCoverage = nil)
30
- @loginEmail = loginEmail
31
- @password = password
32
- @languagePreference = languagePreference
33
- @emailPrefs = emailPrefs
34
- @currencyCode = currencyCode
35
- @cardInfo = cardInfo
36
- @contactInfo = contactInfo
37
- @defaultAdsCoverage = defaultAdsCoverage
38
- end
39
- end
40
-
41
- # {https://adwords.google.com/api/adwords/v2}createAdWordsAccountResponse
42
- class CreateAdWordsAccountResponse
43
- @@schema_type = "createAdWordsAccountResponse"
44
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
45
- @@schema_qualified = "true"
46
- @@schema_element = []
47
-
48
- def initialize
49
- end
50
- end
51
-
52
- # {https://adwords.google.com/api/adwords/v2}setLoginInfo
53
- class SetLoginInfo
54
- @@schema_type = "setLoginInfo"
55
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
56
- @@schema_qualified = "true"
57
- @@schema_element = [
58
- ["login", "SOAP::SOAPString"],
59
- ["newPassword", "SOAP::SOAPString"]
60
- ]
61
-
62
- attr_accessor :login
63
- attr_accessor :newPassword
64
-
65
- def initialize(login = nil, newPassword = nil)
66
- @login = login
67
- @newPassword = newPassword
68
- end
69
- end
70
-
71
- # {https://adwords.google.com/api/adwords/v2}setLoginInfoResponse
72
- class SetLoginInfoResponse
73
- @@schema_type = "setLoginInfoResponse"
74
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
75
- @@schema_qualified = "true"
76
- @@schema_element = []
77
-
78
- def initialize
79
- end
80
- end
81
-
82
- # {https://adwords.google.com/api/adwords/v2}getAccountCurrency
83
- class GetAccountCurrency
84
- @@schema_type = "getAccountCurrency"
85
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
86
- @@schema_qualified = "true"
87
- @@schema_element = []
88
-
89
- def initialize
90
- end
91
- end
92
-
93
- # {https://adwords.google.com/api/adwords/v2}getAccountCurrencyResponse
94
- class GetAccountCurrencyResponse
95
- @@schema_type = "getAccountCurrencyResponse"
96
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
97
- @@schema_qualified = "true"
98
- @@schema_element = [
99
- ["getAccountCurrencyReturn", "SOAP::SOAPString"]
100
- ]
101
-
102
- attr_accessor :getAccountCurrencyReturn
103
-
104
- def initialize(getAccountCurrencyReturn = nil)
105
- @getAccountCurrencyReturn = getAccountCurrencyReturn
106
- end
107
- end
108
-
109
- # {https://adwords.google.com/api/adwords/v2}getCreditCard
110
- class GetCreditCard
111
- @@schema_type = "getCreditCard"
112
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
113
- @@schema_qualified = "true"
114
- @@schema_element = []
115
-
116
- def initialize
117
- end
118
- end
119
-
120
- # {https://adwords.google.com/api/adwords/v2}getCreditCardResponse
121
- class GetCreditCardResponse
122
- @@schema_type = "getCreditCardResponse"
123
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
124
- @@schema_qualified = "true"
125
- @@schema_element = [
126
- ["getCreditCardReturn", "CreditCard"]
127
- ]
128
-
129
- attr_accessor :getCreditCardReturn
130
-
131
- def initialize(getCreditCardReturn = nil)
132
- @getCreditCardReturn = getCreditCardReturn
133
- end
134
- end
135
-
136
- # {https://adwords.google.com/api/adwords/v2}getBillingAddress
137
- class GetBillingAddress
138
- @@schema_type = "getBillingAddress"
139
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
140
- @@schema_qualified = "true"
141
- @@schema_element = []
142
-
143
- def initialize
144
- end
145
- end
146
-
147
- # {https://adwords.google.com/api/adwords/v2}getBillingAddressResponse
148
- class GetBillingAddressResponse
149
- @@schema_type = "getBillingAddressResponse"
150
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
151
- @@schema_qualified = "true"
152
- @@schema_element = [
153
- ["getBillingAddressReturn", "Address"]
154
- ]
155
-
156
- attr_accessor :getBillingAddressReturn
157
-
158
- def initialize(getBillingAddressReturn = nil)
159
- @getBillingAddressReturn = getBillingAddressReturn
160
- end
161
- end
162
-
163
- # {https://adwords.google.com/api/adwords/v2}setCreditCard
164
- class SetCreditCard
165
- @@schema_type = "setCreditCard"
166
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
167
- @@schema_qualified = "true"
168
- @@schema_element = [
169
- ["cardInfo", "CreditCard"],
170
- ["contactInfo", "Address"]
171
- ]
172
-
173
- attr_accessor :cardInfo
174
- attr_accessor :contactInfo
175
-
176
- def initialize(cardInfo = nil, contactInfo = nil)
177
- @cardInfo = cardInfo
178
- @contactInfo = contactInfo
179
- end
180
- end
181
-
182
- # {https://adwords.google.com/api/adwords/v2}setCreditCardResponse
183
- class SetCreditCardResponse
184
- @@schema_type = "setCreditCardResponse"
185
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
186
- @@schema_qualified = "true"
187
- @@schema_element = []
188
-
189
- def initialize
190
- end
191
- end
192
-
193
- # {https://adwords.google.com/api/adwords/v2}getDefaultAdsCoverage
194
- class GetDefaultAdsCoverage
195
- @@schema_type = "getDefaultAdsCoverage"
196
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
197
- @@schema_qualified = "true"
198
- @@schema_element = []
199
-
200
- def initialize
201
- end
202
- end
203
-
204
- # {https://adwords.google.com/api/adwords/v2}getDefaultAdsCoverageResponse
205
- class GetDefaultAdsCoverageResponse
206
- @@schema_type = "getDefaultAdsCoverageResponse"
207
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
208
- @@schema_qualified = "true"
209
- @@schema_element = [
210
- ["getDefaultAdsCoverageReturn", "CoverageType"]
211
- ]
212
-
213
- attr_accessor :getDefaultAdsCoverageReturn
214
-
215
- def initialize(getDefaultAdsCoverageReturn = nil)
216
- @getDefaultAdsCoverageReturn = getDefaultAdsCoverageReturn
217
- end
218
- end
219
-
220
- # {https://adwords.google.com/api/adwords/v2}setDefaultAdsCoverage
221
- class SetDefaultAdsCoverage
222
- @@schema_type = "setDefaultAdsCoverage"
223
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
224
- @@schema_qualified = "true"
225
- @@schema_element = [
226
- ["coverage", "CoverageType"]
227
- ]
228
-
229
- attr_accessor :coverage
230
-
231
- def initialize(coverage = nil)
232
- @coverage = coverage
233
- end
234
- end
235
-
236
- # {https://adwords.google.com/api/adwords/v2}setDefaultAdsCoverageResponse
237
- class SetDefaultAdsCoverageResponse
238
- @@schema_type = "setDefaultAdsCoverageResponse"
239
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
240
- @@schema_qualified = "true"
241
- @@schema_element = []
242
-
243
- def initialize
244
- end
245
- end
246
-
247
- # {https://adwords.google.com/api/adwords/v2}getLanguagePreference
248
- class GetLanguagePreference
249
- @@schema_type = "getLanguagePreference"
250
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
251
- @@schema_qualified = "true"
252
- @@schema_element = []
253
-
254
- def initialize
255
- end
256
- end
257
-
258
- # {https://adwords.google.com/api/adwords/v2}getLanguagePreferenceResponse
259
- class GetLanguagePreferenceResponse
260
- @@schema_type = "getLanguagePreferenceResponse"
261
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
262
- @@schema_qualified = "true"
263
- @@schema_element = [
264
- ["getLanguagePreferenceReturn", "SOAP::SOAPString"]
265
- ]
266
-
267
- attr_accessor :getLanguagePreferenceReturn
268
-
269
- def initialize(getLanguagePreferenceReturn = nil)
270
- @getLanguagePreferenceReturn = getLanguagePreferenceReturn
271
- end
272
- end
273
-
274
- # {https://adwords.google.com/api/adwords/v2}setLanguagePreference
275
- class SetLanguagePreference
276
- @@schema_type = "setLanguagePreference"
277
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
278
- @@schema_qualified = "true"
279
- @@schema_element = [
280
- ["languagePref", "SOAP::SOAPString"]
281
- ]
282
-
283
- attr_accessor :languagePref
284
-
285
- def initialize(languagePref = nil)
286
- @languagePref = languagePref
287
- end
288
- end
289
-
290
- # {https://adwords.google.com/api/adwords/v2}setLanguagePreferenceResponse
291
- class SetLanguagePreferenceResponse
292
- @@schema_type = "setLanguagePreferenceResponse"
293
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
294
- @@schema_qualified = "true"
295
- @@schema_element = []
296
-
297
- def initialize
298
- end
299
- end
300
-
301
- # {https://adwords.google.com/api/adwords/v2}getEmailPromotionsPreferences
302
- class GetEmailPromotionsPreferences
303
- @@schema_type = "getEmailPromotionsPreferences"
304
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
305
- @@schema_qualified = "true"
306
- @@schema_element = []
307
-
308
- def initialize
309
- end
310
- end
311
-
312
- # {https://adwords.google.com/api/adwords/v2}getEmailPromotionsPreferencesResponse
313
- class GetEmailPromotionsPreferencesResponse
314
- @@schema_type = "getEmailPromotionsPreferencesResponse"
315
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
316
- @@schema_qualified = "true"
317
- @@schema_element = [
318
- ["getEmailPromotionsPreferencesReturn", "EmailPromotionsPreferences"]
319
- ]
320
-
321
- attr_accessor :getEmailPromotionsPreferencesReturn
322
-
323
- def initialize(getEmailPromotionsPreferencesReturn = nil)
324
- @getEmailPromotionsPreferencesReturn = getEmailPromotionsPreferencesReturn
325
- end
326
- end
327
-
328
- # {https://adwords.google.com/api/adwords/v2}setEmailPromotionsPreferences
329
- class SetEmailPromotionsPreferences
330
- @@schema_type = "setEmailPromotionsPreferences"
331
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
332
- @@schema_qualified = "true"
333
- @@schema_element = [
334
- ["prefs", "EmailPromotionsPreferences"]
335
- ]
336
-
337
- attr_accessor :prefs
338
-
339
- def initialize(prefs = nil)
340
- @prefs = prefs
341
- end
342
- end
343
-
344
- # {https://adwords.google.com/api/adwords/v2}setEmailPromotionsPreferencesResponse
345
- class SetEmailPromotionsPreferencesResponse
346
- @@schema_type = "setEmailPromotionsPreferencesResponse"
347
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
348
- @@schema_qualified = "true"
349
- @@schema_element = []
350
-
351
- def initialize
352
- end
353
- end
354
-
355
- # {https://adwords.google.com/api/adwords/v2}getPrimaryBusinessCategory
356
- class GetPrimaryBusinessCategory
357
- @@schema_type = "getPrimaryBusinessCategory"
358
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
359
- @@schema_qualified = "true"
360
- @@schema_element = []
361
-
362
- def initialize
363
- end
364
- end
365
-
366
- # {https://adwords.google.com/api/adwords/v2}getPrimaryBusinessCategoryResponse
367
- class GetPrimaryBusinessCategoryResponse
368
- @@schema_type = "getPrimaryBusinessCategoryResponse"
369
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
370
- @@schema_qualified = "true"
371
- @@schema_element = [
372
- ["getPrimaryBusinessCategoryReturn", "SOAP::SOAPString"]
373
- ]
374
-
375
- attr_accessor :getPrimaryBusinessCategoryReturn
376
-
377
- def initialize(getPrimaryBusinessCategoryReturn = nil)
378
- @getPrimaryBusinessCategoryReturn = getPrimaryBusinessCategoryReturn
379
- end
380
- end
381
-
382
- # {https://adwords.google.com/api/adwords/v2}setPrimaryBusinessCategory
383
- class SetPrimaryBusinessCategory
384
- @@schema_type = "setPrimaryBusinessCategory"
385
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
386
- @@schema_qualified = "true"
387
- @@schema_element = [
388
- ["bizType", "SOAP::SOAPString"]
389
- ]
390
-
391
- attr_accessor :bizType
392
-
393
- def initialize(bizType = nil)
394
- @bizType = bizType
395
- end
396
- end
397
-
398
- # {https://adwords.google.com/api/adwords/v2}setPrimaryBusinessCategoryResponse
399
- class SetPrimaryBusinessCategoryResponse
400
- @@schema_type = "setPrimaryBusinessCategoryResponse"
401
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
402
- @@schema_qualified = "true"
403
- @@schema_element = []
404
-
405
- def initialize
406
- end
407
- end
408
-
409
- # {https://adwords.google.com/api/adwords/v2}getTermsAndConditions
410
- class GetTermsAndConditions
411
- @@schema_type = "getTermsAndConditions"
412
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
413
- @@schema_qualified = "true"
414
- @@schema_element = []
415
-
416
- def initialize
417
- end
418
- end
419
-
420
- # {https://adwords.google.com/api/adwords/v2}getTermsAndConditionsResponse
421
- class GetTermsAndConditionsResponse
422
- @@schema_type = "getTermsAndConditionsResponse"
423
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
424
- @@schema_qualified = "true"
425
- @@schema_element = [
426
- ["getTermsAndConditionsReturn", "SOAP::SOAPString"]
427
- ]
428
-
429
- attr_accessor :getTermsAndConditionsReturn
430
-
431
- def initialize(getTermsAndConditionsReturn = nil)
432
- @getTermsAndConditionsReturn = getTermsAndConditionsReturn
433
- end
434
- end
435
-
436
- # {https://adwords.google.com/api/adwords/v2}getClientAccounts
437
- class GetClientAccounts
438
- @@schema_type = "getClientAccounts"
439
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
440
- @@schema_qualified = "true"
441
- @@schema_element = []
442
-
443
- def initialize
444
- end
445
- end
446
-
447
- # {https://adwords.google.com/api/adwords/v2}getClientAccountsResponse
448
- class GetClientAccountsResponse < ::Array
449
- @@schema_element = [
450
- ["getClientAccountsReturn", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "getClientAccountsReturn")]]
451
- ]
452
- end
453
-
454
- # {https://adwords.google.com/api/adwords/v2}EmailPromotionsPreferences
455
- class EmailPromotionsPreferences
456
- @@schema_type = "EmailPromotionsPreferences"
457
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
458
- @@schema_element = [
459
- ["marketResearchEnabled", "SOAP::SOAPBoolean"],
460
- ["newsletterEnabled", "SOAP::SOAPBoolean"],
461
- ["promotionsEnabled", "SOAP::SOAPBoolean"]
462
- ]
463
-
464
- attr_accessor :marketResearchEnabled
465
- attr_accessor :newsletterEnabled
466
- attr_accessor :promotionsEnabled
467
-
468
- def initialize(marketResearchEnabled = nil, newsletterEnabled = nil, promotionsEnabled = nil)
469
- @marketResearchEnabled = marketResearchEnabled
470
- @newsletterEnabled = newsletterEnabled
471
- @promotionsEnabled = promotionsEnabled
472
- end
473
- end
474
-
475
- # {https://adwords.google.com/api/adwords/v2}CreditCard
476
- class CreditCard
477
- @@schema_type = "CreditCard"
478
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
479
- @@schema_element = [
480
- ["cardType", "SOAP::SOAPString"],
481
- ["cardNumber", "SOAP::SOAPString"],
482
- ["expirationMonth", "SOAP::SOAPInt"],
483
- ["expirationYear", "SOAP::SOAPInt"],
484
- ["cardVerificationNumber", "SOAP::SOAPString"],
485
- ["issueNumber", "SOAP::SOAPString"],
486
- ["startMonth", "SOAP::SOAPInt"],
487
- ["startYear", "SOAP::SOAPInt"],
488
- ["status", "SOAP::SOAPString"],
489
- ["taxNumber", "SOAP::SOAPString"]
490
- ]
491
-
492
- attr_accessor :cardType
493
- attr_accessor :cardNumber
494
- attr_accessor :expirationMonth
495
- attr_accessor :expirationYear
496
- attr_accessor :cardVerificationNumber
497
- attr_accessor :issueNumber
498
- attr_accessor :startMonth
499
- attr_accessor :startYear
500
- attr_accessor :status
501
- attr_accessor :taxNumber
502
-
503
- def initialize(cardType = nil, cardNumber = nil, expirationMonth = nil, expirationYear = nil, cardVerificationNumber = nil, issueNumber = nil, startMonth = nil, startYear = nil, status = nil, taxNumber = nil)
504
- @cardType = cardType
505
- @cardNumber = cardNumber
506
- @expirationMonth = expirationMonth
507
- @expirationYear = expirationYear
508
- @cardVerificationNumber = cardVerificationNumber
509
- @issueNumber = issueNumber
510
- @startMonth = startMonth
511
- @startYear = startYear
512
- @status = status
513
- @taxNumber = taxNumber
514
- end
515
- end
516
-
517
- # {https://adwords.google.com/api/adwords/v2}Address
518
- class Address
519
- @@schema_type = "Address"
520
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
521
- @@schema_element = [
522
- ["name", "SOAP::SOAPString"],
523
- ["companyName", "SOAP::SOAPString"],
524
- ["addressLine1", "SOAP::SOAPString"],
525
- ["addressLine2", "SOAP::SOAPString"],
526
- ["city", "SOAP::SOAPString"],
527
- ["state", "SOAP::SOAPString"],
528
- ["postalCode", "SOAP::SOAPString"],
529
- ["countryCode", "SOAP::SOAPString"],
530
- ["phoneNumber", "SOAP::SOAPString"],
531
- ["faxNumber", "SOAP::SOAPString"]
532
- ]
533
-
534
- attr_accessor :name
535
- attr_accessor :companyName
536
- attr_accessor :addressLine1
537
- attr_accessor :addressLine2
538
- attr_accessor :city
539
- attr_accessor :state
540
- attr_accessor :postalCode
541
- attr_accessor :countryCode
542
- attr_accessor :phoneNumber
543
- attr_accessor :faxNumber
544
-
545
- def initialize(name = nil, companyName = nil, addressLine1 = nil, addressLine2 = nil, city = nil, state = nil, postalCode = nil, countryCode = nil, phoneNumber = nil, faxNumber = nil)
546
- @name = name
547
- @companyName = companyName
548
- @addressLine1 = addressLine1
549
- @addressLine2 = addressLine2
550
- @city = city
551
- @state = state
552
- @postalCode = postalCode
553
- @countryCode = countryCode
554
- @phoneNumber = phoneNumber
555
- @faxNumber = faxNumber
556
- end
557
- end
558
-
559
- # {https://adwords.google.com/api/adwords/v2}CoverageType
560
- class CoverageType
561
- @@schema_type = "CoverageType"
562
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
563
- @@schema_element = [
564
- ["optInContentNetwork", "SOAP::SOAPBoolean"],
565
- ["optInSearchNetwork", "SOAP::SOAPBoolean"]
566
- ]
567
-
568
- attr_accessor :optInContentNetwork
569
- attr_accessor :optInSearchNetwork
570
-
571
- def initialize(optInContentNetwork = nil, optInSearchNetwork = nil)
572
- @optInContentNetwork = optInContentNetwork
573
- @optInSearchNetwork = optInSearchNetwork
574
- end
575
- end
576
-
577
- # {https://adwords.google.com/api/adwords/v2}ApiException
578
- class ApiException
579
- @@schema_type = "ApiException"
580
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
581
- @@schema_element = [
582
- ["code", "SOAP::SOAPInt"],
583
- ["internal", "SOAP::SOAPBoolean"],
584
- ["message", "SOAP::SOAPString"],
585
- ["trigger", "SOAP::SOAPString"],
586
- ["violations", "SOAP::SOAPString"]
587
- ]
588
-
589
- attr_accessor :code
590
- attr_accessor :internal
591
- attr_accessor :message
592
- attr_accessor :trigger
593
- attr_accessor :violations
594
-
595
- def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
596
- @code = code
597
- @internal = internal
598
- @message = message
599
- @trigger = trigger
600
- @violations = violations
601
- end
602
- end
603
-
604
- # {https://adwords.google.com/api/adwords/v2}CreditCardType
605
- class CreditCardType < ::String
606
- @@schema_type = "CreditCardType"
607
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
608
-
609
- AmericanExpress = CreditCardType.new("AmericanExpress")
610
- JCB = CreditCardType.new("JCB")
611
- MasterCard = CreditCardType.new("MasterCard")
612
- SOLO = CreditCardType.new("SOLO")
613
- Switch = CreditCardType.new("Switch")
614
- VISA = CreditCardType.new("VISA")
615
- end
616
-
617
- # {https://adwords.google.com/api/adwords/v2}TaxStatus
618
- class TaxStatus < ::String
619
- @@schema_type = "TaxStatus"
620
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
621
-
622
- Charity = TaxStatus.new("Charity")
623
- ExtraTerritorial = TaxStatus.new("ExtraTerritorial")
624
- Other = TaxStatus.new("Other")
625
- SubjectToTax = TaxStatus.new("SubjectToTax")
626
- ZeroRated = TaxStatus.new("ZeroRated")
627
- end
628
- end