adwords4r 0.5 → 0.6

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 (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,125 +0,0 @@
1
- module AdWords
2
- require 'adwords4r/v2/KeywordService'
3
-
4
- require 'soap/rpc/driver'
5
-
6
- class KeywordService < ::SOAP::RPC::Driver
7
- DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v2/KeywordService"
8
- MappingRegistry = ::SOAP::Mapping::Registry.new
9
-
10
- Methods = [
11
- [ "",
12
- "getAllKeywords",
13
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getAllKeywords"], true],
14
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getAllKeywordsResponse"], true] ],
15
- { :request_style => :document, :request_use => :literal,
16
- :response_style => :document, :response_use => :literal }
17
- ],
18
- [ "",
19
- "getKeywordList",
20
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getKeywordList"], true],
21
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getKeywordListResponse"], true] ],
22
- { :request_style => :document, :request_use => :literal,
23
- :response_style => :document, :response_use => :literal }
24
- ],
25
- [ "",
26
- "getActiveKeywords",
27
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getActiveKeywords"], true],
28
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getActiveKeywordsResponse"], true] ],
29
- { :request_style => :document, :request_use => :literal,
30
- :response_style => :document, :response_use => :literal }
31
- ],
32
- [ "",
33
- "setKeywordListMaxCpc",
34
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "setKeywordListMaxCpc"], true],
35
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "setKeywordListMaxCpcResponse"], true] ],
36
- { :request_style => :document, :request_use => :literal,
37
- :response_style => :document, :response_use => :literal }
38
- ],
39
- [ "",
40
- "setKeywordListSingleMaxCpc",
41
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "setKeywordListSingleMaxCpc"], true],
42
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "setKeywordListSingleMaxCpcResponse"], true] ],
43
- { :request_style => :document, :request_use => :literal,
44
- :response_style => :document, :response_use => :literal }
45
- ],
46
- [ "",
47
- "updateKeyword",
48
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "updateKeyword"], true],
49
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "updateKeywordResponse"], true] ],
50
- { :request_style => :document, :request_use => :literal,
51
- :response_style => :document, :response_use => :literal }
52
- ],
53
- [ "",
54
- "updateKeywordList",
55
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "updateKeywordList"], true],
56
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "updateKeywordListResponse"], true] ],
57
- { :request_style => :document, :request_use => :literal,
58
- :response_style => :document, :response_use => :literal }
59
- ],
60
- [ "",
61
- "addKeyword",
62
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "addKeyword"], true],
63
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "addKeywordResponse"], true] ],
64
- { :request_style => :document, :request_use => :literal,
65
- :response_style => :document, :response_use => :literal }
66
- ],
67
- [ "",
68
- "addKeywordList",
69
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "addKeywordList"], true],
70
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "addKeywordListResponse"], true] ],
71
- { :request_style => :document, :request_use => :literal,
72
- :response_style => :document, :response_use => :literal }
73
- ],
74
- [ "",
75
- "removeKeywordList",
76
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "removeKeywordList"], true],
77
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "removeKeywordListResponse"], true] ],
78
- { :request_style => :document, :request_use => :literal,
79
- :response_style => :document, :response_use => :literal }
80
- ],
81
- [ "",
82
- "removeKeyword",
83
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "removeKeyword"], true],
84
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "removeKeywordResponse"], true] ],
85
- { :request_style => :document, :request_use => :literal,
86
- :response_style => :document, :response_use => :literal }
87
- ],
88
- [ "",
89
- "getKeywordStats",
90
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getKeywordStats"], true],
91
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getKeywordStatsResponse"], true] ],
92
- { :request_style => :document, :request_use => :literal,
93
- :response_style => :document, :response_use => :literal }
94
- ]
95
- ]
96
-
97
- def initialize(endpoint_url = nil)
98
- endpoint_url ||= DefaultEndpointUrl
99
- super(endpoint_url, nil)
100
- self.mapping_registry = MappingRegistry
101
- init_methods
102
- end
103
-
104
- private
105
-
106
- def init_methods
107
- Methods.each do |definitions|
108
- opt = definitions.last
109
- if opt[:request_style] == :document
110
- add_document_operation(*definitions)
111
- else
112
- add_rpc_operation(*definitions)
113
- qname = definitions[0]
114
- name = definitions[2]
115
- if qname.name != name and qname.name.capitalize == name.capitalize
116
- ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
117
- __send__(name, *arg)
118
- end
119
- end
120
- end
121
- end
122
- end
123
- end
124
-
125
- end
@@ -1,569 +0,0 @@
1
- module AdWords
2
- require 'xsd/qname'
3
-
4
- # {https://adwords.google.com/api/adwords/v2}scheduleReportJob
5
- class ScheduleReportJob
6
- @@schema_type = "scheduleReportJob"
7
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
8
- @@schema_qualified = "true"
9
- @@schema_element = [
10
- ["job", "ReportJob"]
11
- ]
12
-
13
- attr_accessor :job
14
-
15
- def initialize(job = nil)
16
- @job = job
17
- end
18
- end
19
-
20
- # {https://adwords.google.com/api/adwords/v2}scheduleReportJobResponse
21
- class ScheduleReportJobResponse
22
- @@schema_type = "scheduleReportJobResponse"
23
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
24
- @@schema_qualified = "true"
25
- @@schema_element = [
26
- ["scheduleReportJobReturn", "SOAP::SOAPLong"]
27
- ]
28
-
29
- attr_accessor :scheduleReportJobReturn
30
-
31
- def initialize(scheduleReportJobReturn = nil)
32
- @scheduleReportJobReturn = scheduleReportJobReturn
33
- end
34
- end
35
-
36
- # {https://adwords.google.com/api/adwords/v2}getReportJobStatus
37
- class GetReportJobStatus
38
- @@schema_type = "getReportJobStatus"
39
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
40
- @@schema_qualified = "true"
41
- @@schema_element = [
42
- ["reportJobId", "SOAP::SOAPLong"]
43
- ]
44
-
45
- attr_accessor :reportJobId
46
-
47
- def initialize(reportJobId = nil)
48
- @reportJobId = reportJobId
49
- end
50
- end
51
-
52
- # {https://adwords.google.com/api/adwords/v2}getReportJobStatusResponse
53
- class GetReportJobStatusResponse
54
- @@schema_type = "getReportJobStatusResponse"
55
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
56
- @@schema_qualified = "true"
57
- @@schema_element = [
58
- ["getReportJobStatusReturn", "SOAP::SOAPString"]
59
- ]
60
-
61
- attr_accessor :getReportJobStatusReturn
62
-
63
- def initialize(getReportJobStatusReturn = nil)
64
- @getReportJobStatusReturn = getReportJobStatusReturn
65
- end
66
- end
67
-
68
- # {https://adwords.google.com/api/adwords/v2}getReportDownloadUrl
69
- class GetReportDownloadUrl
70
- @@schema_type = "getReportDownloadUrl"
71
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
72
- @@schema_qualified = "true"
73
- @@schema_element = [
74
- ["reportJobId", "SOAP::SOAPLong"]
75
- ]
76
-
77
- attr_accessor :reportJobId
78
-
79
- def initialize(reportJobId = nil)
80
- @reportJobId = reportJobId
81
- end
82
- end
83
-
84
- # {https://adwords.google.com/api/adwords/v2}getReportDownloadUrlResponse
85
- class GetReportDownloadUrlResponse
86
- @@schema_type = "getReportDownloadUrlResponse"
87
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
88
- @@schema_qualified = "true"
89
- @@schema_element = [
90
- ["getReportDownloadUrlReturn", "SOAP::SOAPString"]
91
- ]
92
-
93
- attr_accessor :getReportDownloadUrlReturn
94
-
95
- def initialize(getReportDownloadUrlReturn = nil)
96
- @getReportDownloadUrlReturn = getReportDownloadUrlReturn
97
- end
98
- end
99
-
100
- # {https://adwords.google.com/api/adwords/v2}getGzipReportDownloadUrl
101
- class GetGzipReportDownloadUrl
102
- @@schema_type = "getGzipReportDownloadUrl"
103
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
104
- @@schema_qualified = "true"
105
- @@schema_element = [
106
- ["reportJobId", "SOAP::SOAPLong"]
107
- ]
108
-
109
- attr_accessor :reportJobId
110
-
111
- def initialize(reportJobId = nil)
112
- @reportJobId = reportJobId
113
- end
114
- end
115
-
116
- # {https://adwords.google.com/api/adwords/v2}getGzipReportDownloadUrlResponse
117
- class GetGzipReportDownloadUrlResponse
118
- @@schema_type = "getGzipReportDownloadUrlResponse"
119
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
120
- @@schema_qualified = "true"
121
- @@schema_element = [
122
- ["getGzipReportDownloadUrlReturn", "SOAP::SOAPString"]
123
- ]
124
-
125
- attr_accessor :getGzipReportDownloadUrlReturn
126
-
127
- def initialize(getGzipReportDownloadUrlReturn = nil)
128
- @getGzipReportDownloadUrlReturn = getGzipReportDownloadUrlReturn
129
- end
130
- end
131
-
132
- # {https://adwords.google.com/api/adwords/v2}getAllJobs
133
- class GetAllJobs
134
- @@schema_type = "getAllJobs"
135
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
136
- @@schema_qualified = "true"
137
- @@schema_element = []
138
-
139
- def initialize
140
- end
141
- end
142
-
143
- # {https://adwords.google.com/api/adwords/v2}getAllJobsResponse
144
- class GetAllJobsResponse < ::Array
145
- @@schema_element = [
146
- ["getAllJobsReturn", ["ReportJob[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "getAllJobsReturn")]]
147
- ]
148
- end
149
-
150
- # {https://adwords.google.com/api/adwords/v2}deleteReport
151
- class DeleteReport
152
- @@schema_type = "deleteReport"
153
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
154
- @@schema_qualified = "true"
155
- @@schema_element = [
156
- ["reportJobId", "SOAP::SOAPLong"]
157
- ]
158
-
159
- attr_accessor :reportJobId
160
-
161
- def initialize(reportJobId = nil)
162
- @reportJobId = reportJobId
163
- end
164
- end
165
-
166
- # {https://adwords.google.com/api/adwords/v2}deleteReportResponse
167
- class DeleteReportResponse
168
- @@schema_type = "deleteReportResponse"
169
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
170
- @@schema_qualified = "true"
171
- @@schema_element = []
172
-
173
- def initialize
174
- end
175
- end
176
-
177
- # {https://adwords.google.com/api/adwords/v2}ApiException
178
- class ApiException
179
- @@schema_type = "ApiException"
180
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
181
- @@schema_element = [
182
- ["code", "SOAP::SOAPInt"],
183
- ["internal", "SOAP::SOAPBoolean"],
184
- ["message", "SOAP::SOAPString"],
185
- ["trigger", "SOAP::SOAPString"],
186
- ["violations", "SOAP::SOAPString"]
187
- ]
188
-
189
- attr_accessor :code
190
- attr_accessor :internal
191
- attr_accessor :message
192
- attr_accessor :trigger
193
- attr_accessor :violations
194
-
195
- def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
196
- @code = code
197
- @internal = internal
198
- @message = message
199
- @trigger = trigger
200
- @violations = violations
201
- end
202
- end
203
-
204
- # {https://adwords.google.com/api/adwords/v2}ReportJob
205
- class ReportJob
206
- @@schema_type = "ReportJob"
207
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
208
- @@schema_element = [
209
- ["id", "SOAP::SOAPLong"],
210
- ["name", "SOAP::SOAPString"],
211
- ["aggregationType", "SOAP::SOAPString"],
212
- ["startDate", "DateTime"],
213
- ["endDate", "DateTime"],
214
- ["status", "SOAP::SOAPString"],
215
- ["crossClient", "SOAP::SOAPBoolean"],
216
- ["clientAccounts", "SOAP::SOAPInt[]"]
217
- ]
218
-
219
- attr_accessor :id
220
- attr_accessor :name
221
- attr_accessor :aggregationType
222
- attr_accessor :startDate
223
- attr_accessor :endDate
224
- attr_accessor :status
225
- attr_accessor :crossClient
226
- attr_accessor :clientAccounts
227
-
228
- def initialize(id = nil, name = nil, aggregationType = nil, startDate = nil, endDate = nil, status = nil, crossClient = nil, clientAccounts = [])
229
- @id = id
230
- @name = name
231
- @aggregationType = aggregationType
232
- @startDate = startDate
233
- @endDate = endDate
234
- @status = status
235
- @crossClient = crossClient
236
- @clientAccounts = clientAccounts
237
- end
238
- end
239
-
240
- # {https://adwords.google.com/api/adwords/v2}KeywordReportJob
241
- class KeywordReportJob
242
- @@schema_type = "KeywordReportJob"
243
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
244
- @@schema_element = [
245
- ["id", "SOAP::SOAPLong"],
246
- ["name", "SOAP::SOAPString"],
247
- ["aggregationType", "SOAP::SOAPString"],
248
- ["startDate", "DateTime"],
249
- ["endDate", "DateTime"],
250
- ["status", "SOAP::SOAPString"],
251
- ["crossClient", "SOAP::SOAPBoolean"],
252
- ["clientAccounts", "SOAP::SOAPInt[]"],
253
- ["adWordsType", "SOAP::SOAPString"],
254
- ["keywordStatuses", "SOAP::SOAPString[]"],
255
- ["keywordType", "SOAP::SOAPString"],
256
- ["campaigns", "SOAP::SOAPInt[]"]
257
- ]
258
-
259
- attr_accessor :id
260
- attr_accessor :name
261
- attr_accessor :aggregationType
262
- attr_accessor :startDate
263
- attr_accessor :endDate
264
- attr_accessor :status
265
- attr_accessor :crossClient
266
- attr_accessor :clientAccounts
267
- attr_accessor :adWordsType
268
- attr_accessor :keywordStatuses
269
- attr_accessor :keywordType
270
- attr_accessor :campaigns
271
-
272
- def initialize(id = nil, name = nil, aggregationType = nil, startDate = nil, endDate = nil, status = nil, crossClient = nil, clientAccounts = [], adWordsType = nil, keywordStatuses = [], keywordType = nil, campaigns = [])
273
- @id = id
274
- @name = name
275
- @aggregationType = aggregationType
276
- @startDate = startDate
277
- @endDate = endDate
278
- @status = status
279
- @crossClient = crossClient
280
- @clientAccounts = clientAccounts
281
- @adWordsType = adWordsType
282
- @keywordStatuses = keywordStatuses
283
- @keywordType = keywordType
284
- @campaigns = campaigns
285
- end
286
- end
287
-
288
- # {https://adwords.google.com/api/adwords/v2}AdTextReportJob
289
- class AdTextReportJob
290
- @@schema_type = "AdTextReportJob"
291
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
292
- @@schema_element = [
293
- ["id", "SOAP::SOAPLong"],
294
- ["name", "SOAP::SOAPString"],
295
- ["aggregationType", "SOAP::SOAPString"],
296
- ["startDate", "DateTime"],
297
- ["endDate", "DateTime"],
298
- ["status", "SOAP::SOAPString"],
299
- ["crossClient", "SOAP::SOAPBoolean"],
300
- ["clientAccounts", "SOAP::SOAPInt[]"],
301
- ["adWordsType", "SOAP::SOAPString"],
302
- ["campaigns", "SOAP::SOAPInt[]"]
303
- ]
304
-
305
- attr_accessor :id
306
- attr_accessor :name
307
- attr_accessor :aggregationType
308
- attr_accessor :startDate
309
- attr_accessor :endDate
310
- attr_accessor :status
311
- attr_accessor :crossClient
312
- attr_accessor :clientAccounts
313
- attr_accessor :adWordsType
314
- attr_accessor :campaigns
315
-
316
- def initialize(id = nil, name = nil, aggregationType = nil, startDate = nil, endDate = nil, status = nil, crossClient = nil, clientAccounts = [], adWordsType = nil, campaigns = [])
317
- @id = id
318
- @name = name
319
- @aggregationType = aggregationType
320
- @startDate = startDate
321
- @endDate = endDate
322
- @status = status
323
- @crossClient = crossClient
324
- @clientAccounts = clientAccounts
325
- @adWordsType = adWordsType
326
- @campaigns = campaigns
327
- end
328
- end
329
-
330
- # {https://adwords.google.com/api/adwords/v2}UrlReportJob
331
- class UrlReportJob
332
- @@schema_type = "UrlReportJob"
333
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
334
- @@schema_element = [
335
- ["id", "SOAP::SOAPLong"],
336
- ["name", "SOAP::SOAPString"],
337
- ["aggregationType", "SOAP::SOAPString"],
338
- ["startDate", "DateTime"],
339
- ["endDate", "DateTime"],
340
- ["status", "SOAP::SOAPString"],
341
- ["crossClient", "SOAP::SOAPBoolean"],
342
- ["clientAccounts", "SOAP::SOAPInt[]"],
343
- ["adWordsType", "SOAP::SOAPString"],
344
- ["campaigns", "SOAP::SOAPInt[]"]
345
- ]
346
-
347
- attr_accessor :id
348
- attr_accessor :name
349
- attr_accessor :aggregationType
350
- attr_accessor :startDate
351
- attr_accessor :endDate
352
- attr_accessor :status
353
- attr_accessor :crossClient
354
- attr_accessor :clientAccounts
355
- attr_accessor :adWordsType
356
- attr_accessor :campaigns
357
-
358
- def initialize(id = nil, name = nil, aggregationType = nil, startDate = nil, endDate = nil, status = nil, crossClient = nil, clientAccounts = [], adWordsType = nil, campaigns = [])
359
- @id = id
360
- @name = name
361
- @aggregationType = aggregationType
362
- @startDate = startDate
363
- @endDate = endDate
364
- @status = status
365
- @crossClient = crossClient
366
- @clientAccounts = clientAccounts
367
- @adWordsType = adWordsType
368
- @campaigns = campaigns
369
- end
370
- end
371
-
372
- # {https://adwords.google.com/api/adwords/v2}CustomReportJob
373
- class CustomReportJob
374
- @@schema_type = "CustomReportJob"
375
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
376
- @@schema_element = [
377
- ["id", "SOAP::SOAPLong"],
378
- ["name", "SOAP::SOAPString"],
379
- ["aggregationType", "SOAP::SOAPString"],
380
- ["startDate", "DateTime"],
381
- ["endDate", "DateTime"],
382
- ["status", "SOAP::SOAPString"],
383
- ["crossClient", "SOAP::SOAPBoolean"],
384
- ["clientAccounts", "SOAP::SOAPInt[]"],
385
- ["keywords", "SOAP::SOAPString[]"],
386
- ["keywordStatuses", "SOAP::SOAPString[]"],
387
- ["keywordType", "SOAP::SOAPString"],
388
- ["campaignStatuses", "SOAP::SOAPString[]"],
389
- ["campaigns", "SOAP::SOAPInt[]"],
390
- ["adGroupStatuses", "SOAP::SOAPString[]"],
391
- ["adGroups", "SOAP::SOAPInt[]"],
392
- ["adWordsType", "SOAP::SOAPString"],
393
- ["customOptions", "SOAP::SOAPString[]"]
394
- ]
395
-
396
- attr_accessor :id
397
- attr_accessor :name
398
- attr_accessor :aggregationType
399
- attr_accessor :startDate
400
- attr_accessor :endDate
401
- attr_accessor :status
402
- attr_accessor :crossClient
403
- attr_accessor :clientAccounts
404
- attr_accessor :keywords
405
- attr_accessor :keywordStatuses
406
- attr_accessor :keywordType
407
- attr_accessor :campaignStatuses
408
- attr_accessor :campaigns
409
- attr_accessor :adGroupStatuses
410
- attr_accessor :adGroups
411
- attr_accessor :adWordsType
412
- attr_accessor :customOptions
413
-
414
- def initialize(id = nil, name = nil, aggregationType = nil, startDate = nil, endDate = nil, status = nil, crossClient = nil, clientAccounts = [], keywords = [], keywordStatuses = [], keywordType = nil, campaignStatuses = [], campaigns = [], adGroupStatuses = [], adGroups = [], adWordsType = nil, customOptions = [])
415
- @id = id
416
- @name = name
417
- @aggregationType = aggregationType
418
- @startDate = startDate
419
- @endDate = endDate
420
- @status = status
421
- @crossClient = crossClient
422
- @clientAccounts = clientAccounts
423
- @keywords = keywords
424
- @keywordStatuses = keywordStatuses
425
- @keywordType = keywordType
426
- @campaignStatuses = campaignStatuses
427
- @campaigns = campaigns
428
- @adGroupStatuses = adGroupStatuses
429
- @adGroups = adGroups
430
- @adWordsType = adWordsType
431
- @customOptions = customOptions
432
- end
433
- end
434
-
435
- # {https://adwords.google.com/api/adwords/v2}ReportJobStatus
436
- class ReportJobStatus < ::String
437
- @@schema_type = "ReportJobStatus"
438
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
439
-
440
- Completed = ReportJobStatus.new("Completed")
441
- Failed = ReportJobStatus.new("Failed")
442
- InProgress = ReportJobStatus.new("InProgress")
443
- Pending = ReportJobStatus.new("Pending")
444
- end
445
-
446
- # {https://adwords.google.com/api/adwords/v2}AggregationType
447
- class AggregationType < ::String
448
- @@schema_type = "AggregationType"
449
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
450
-
451
- Daily = AggregationType.new("Daily")
452
- Monthly = AggregationType.new("Monthly")
453
- Quarterly = AggregationType.new("Quarterly")
454
- Summary = AggregationType.new("Summary")
455
- Yearly = AggregationType.new("Yearly")
456
- end
457
-
458
- # {https://adwords.google.com/api/adwords/v2}AdWordsType
459
- class AdWordsType < ::String
460
- @@schema_type = "AdWordsType"
461
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
462
-
463
- ContentOnly = AdWordsType.new("ContentOnly")
464
- SearchOnly = AdWordsType.new("SearchOnly")
465
- end
466
-
467
- # {https://adwords.google.com/api/adwords/v2}KeywordStatus
468
- class KeywordStatus < ::String
469
- @@schema_type = "KeywordStatus"
470
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
471
-
472
- Deleted = KeywordStatus.new("Deleted")
473
- Disabled = KeywordStatus.new("Disabled")
474
- Disapproved = KeywordStatus.new("Disapproved")
475
- InTrial = KeywordStatus.new("InTrial")
476
- Normal = KeywordStatus.new("Normal")
477
- OnHold = KeywordStatus.new("OnHold")
478
- end
479
-
480
- # {https://adwords.google.com/api/adwords/v2}KeywordType
481
- class KeywordType < ::String
482
- @@schema_type = "KeywordType"
483
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
484
-
485
- Broad = KeywordType.new("Broad")
486
- Exact = KeywordType.new("Exact")
487
- Phrase = KeywordType.new("Phrase")
488
- end
489
-
490
- # {https://adwords.google.com/api/adwords/v2}CampaignStatus
491
- class CampaignStatus < ::String
492
- @@schema_type = "CampaignStatus"
493
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
494
-
495
- Active = CampaignStatus.new("Active")
496
- Deleted = CampaignStatus.new("Deleted")
497
- Ended = CampaignStatus.new("Ended")
498
- Paused = CampaignStatus.new("Paused")
499
- Pending = CampaignStatus.new("Pending")
500
- Suspended = CampaignStatus.new("Suspended")
501
- end
502
-
503
- # {https://adwords.google.com/api/adwords/v2}CustomReportOption
504
- class CustomReportOption < ::String
505
- @@schema_type = "CustomReportOption"
506
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
507
-
508
- AccountName = CustomReportOption.new("AccountName")
509
- AdGroup = CustomReportOption.new("AdGroup")
510
- AdGroupId = CustomReportOption.new("AdGroupId")
511
- AdGroupStatus = CustomReportOption.new("AdGroupStatus")
512
- AdWordsType = CustomReportOption.new("AdWordsType")
513
- AverageConversionValue = CustomReportOption.new("AverageConversionValue")
514
- AveragePosition = CustomReportOption.new("AveragePosition")
515
- Campaign = CustomReportOption.new("Campaign")
516
- CampaignEndDate = CustomReportOption.new("CampaignEndDate")
517
- CampaignId = CustomReportOption.new("CampaignId")
518
- CampaignStatus = CustomReportOption.new("CampaignStatus")
519
- Clicks = CustomReportOption.new("Clicks")
520
- ConversionRate = CustomReportOption.new("ConversionRate")
521
- ConversionValuePerClick = CustomReportOption.new("ConversionValuePerClick")
522
- ConversionValuePerCost = CustomReportOption.new("ConversionValuePerCost")
523
- Conversions = CustomReportOption.new("Conversions")
524
- Cost = CustomReportOption.new("Cost")
525
- CostPerConversion = CustomReportOption.new("CostPerConversion")
526
- CostPerTransaction = CustomReportOption.new("CostPerTransaction")
527
- Cpc = CustomReportOption.new("Cpc")
528
- CreativeDestinationUrl = CustomReportOption.new("CreativeDestinationUrl")
529
- CreativeId = CustomReportOption.new("CreativeId")
530
- CreativeStatus = CustomReportOption.new("CreativeStatus")
531
- Ctr = CustomReportOption.new("Ctr")
532
- DailyBudget = CustomReportOption.new("DailyBudget")
533
- DefaultConversionCount = CustomReportOption.new("DefaultConversionCount")
534
- DefaultConversionValue = CustomReportOption.new("DefaultConversionValue")
535
- DescriptionLine1 = CustomReportOption.new("DescriptionLine1")
536
- DescriptionLine2 = CustomReportOption.new("DescriptionLine2")
537
- DescriptionLine3 = CustomReportOption.new("DescriptionLine3")
538
- DestinationUrl = CustomReportOption.new("DestinationUrl")
539
- Impressions = CustomReportOption.new("Impressions")
540
- Keyword = CustomReportOption.new("Keyword")
541
- KeywordDestinationUrl = CustomReportOption.new("KeywordDestinationUrl")
542
- KeywordId = CustomReportOption.new("KeywordId")
543
- KeywordStatus = CustomReportOption.new("KeywordStatus")
544
- KeywordType = CustomReportOption.new("KeywordType")
545
- LeadCount = CustomReportOption.new("LeadCount")
546
- LeadValue = CustomReportOption.new("LeadValue")
547
- MaximumCpc = CustomReportOption.new("MaximumCpc")
548
- MinimumCpc = CustomReportOption.new("MinimumCpc")
549
- PageViewCount = CustomReportOption.new("PageViewCount")
550
- PageViewValue = CustomReportOption.new("PageViewValue")
551
- SaleCount = CustomReportOption.new("SaleCount")
552
- SaleValue = CustomReportOption.new("SaleValue")
553
- SignupCount = CustomReportOption.new("SignupCount")
554
- SignupValue = CustomReportOption.new("SignupValue")
555
- TotalConversionValue = CustomReportOption.new("TotalConversionValue")
556
- Transactions = CustomReportOption.new("Transactions")
557
- VisibleUrl = CustomReportOption.new("VisibleUrl")
558
- end
559
-
560
- # {https://adwords.google.com/api/adwords/v2}AdGroupStatus
561
- class AdGroupStatus < ::String
562
- @@schema_type = "AdGroupStatus"
563
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
564
-
565
- Deleted = AdGroupStatus.new("Deleted")
566
- Enabled = AdGroupStatus.new("Enabled")
567
- Paused = AdGroupStatus.new("Paused")
568
- end
569
- end