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/v3/KeywordService'
3
-
4
- require 'soap/rpc/driver'
5
-
6
- class KeywordService < ::SOAP::RPC::Driver
7
- DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v3/KeywordService"
8
- MappingRegistry = ::SOAP::Mapping::Registry.new
9
-
10
- Methods = [
11
- [ "",
12
- "getAllKeywords",
13
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getAllKeywords"], true],
14
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "getKeywordList"], true],
21
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "getActiveKeywords"], true],
28
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "setKeywordListMaxCpc"], true],
35
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "setKeywordListSingleMaxCpc"], true],
42
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "updateKeyword"], true],
49
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "updateKeywordList"], true],
56
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "addKeyword"], true],
63
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "addKeywordList"], true],
70
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "removeKeywordList"], true],
77
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "removeKeyword"], true],
84
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3", "getKeywordStats"], true],
91
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "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/v3}scheduleReportJob
5
- class ScheduleReportJob
6
- @@schema_type = "scheduleReportJob"
7
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}scheduleReportJobResponse
21
- class ScheduleReportJobResponse
22
- @@schema_type = "scheduleReportJobResponse"
23
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}getReportJobStatus
37
- class GetReportJobStatus
38
- @@schema_type = "getReportJobStatus"
39
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}getReportJobStatusResponse
53
- class GetReportJobStatusResponse
54
- @@schema_type = "getReportJobStatusResponse"
55
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}getReportDownloadUrl
69
- class GetReportDownloadUrl
70
- @@schema_type = "getReportDownloadUrl"
71
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}getReportDownloadUrlResponse
85
- class GetReportDownloadUrlResponse
86
- @@schema_type = "getReportDownloadUrlResponse"
87
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}getGzipReportDownloadUrl
101
- class GetGzipReportDownloadUrl
102
- @@schema_type = "getGzipReportDownloadUrl"
103
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}getGzipReportDownloadUrlResponse
117
- class GetGzipReportDownloadUrlResponse
118
- @@schema_type = "getGzipReportDownloadUrlResponse"
119
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}getAllJobs
133
- class GetAllJobs
134
- @@schema_type = "getAllJobs"
135
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
136
- @@schema_qualified = "true"
137
- @@schema_element = []
138
-
139
- def initialize
140
- end
141
- end
142
-
143
- # {https://adwords.google.com/api/adwords/v3}getAllJobsResponse
144
- class GetAllJobsResponse < ::Array
145
- @@schema_element = [
146
- ["getAllJobsReturn", ["ReportJob[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "getAllJobsReturn")]]
147
- ]
148
- end
149
-
150
- # {https://adwords.google.com/api/adwords/v3}deleteReport
151
- class DeleteReport
152
- @@schema_type = "deleteReport"
153
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}deleteReportResponse
167
- class DeleteReportResponse
168
- @@schema_type = "deleteReportResponse"
169
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
170
- @@schema_qualified = "true"
171
- @@schema_element = []
172
-
173
- def initialize
174
- end
175
- end
176
-
177
- # {https://adwords.google.com/api/adwords/v3}ApiException
178
- class ApiException
179
- @@schema_type = "ApiException"
180
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}ReportJob
205
- class ReportJob
206
- @@schema_type = "ReportJob"
207
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
208
- @@schema_element = [
209
- ["aggregationType", "SOAP::SOAPString"],
210
- ["clientAccounts", "SOAP::SOAPInt[]"],
211
- ["crossClient", "SOAP::SOAPBoolean"],
212
- ["endDate", "DateTime"],
213
- ["id", "SOAP::SOAPLong"],
214
- ["name", "SOAP::SOAPString"],
215
- ["startDate", "DateTime"],
216
- ["status", "SOAP::SOAPString"]
217
- ]
218
-
219
- attr_accessor :aggregationType
220
- attr_accessor :clientAccounts
221
- attr_accessor :crossClient
222
- attr_accessor :endDate
223
- attr_accessor :id
224
- attr_accessor :name
225
- attr_accessor :startDate
226
- attr_accessor :status
227
-
228
- def initialize(aggregationType = nil, clientAccounts = [], crossClient = nil, endDate = nil, id = nil, name = nil, startDate = nil, status = nil)
229
- @aggregationType = aggregationType
230
- @clientAccounts = clientAccounts
231
- @crossClient = crossClient
232
- @endDate = endDate
233
- @id = id
234
- @name = name
235
- @startDate = startDate
236
- @status = status
237
- end
238
- end
239
-
240
- # {https://adwords.google.com/api/adwords/v3}KeywordReportJob
241
- class KeywordReportJob
242
- @@schema_type = "KeywordReportJob"
243
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
244
- @@schema_element = [
245
- ["aggregationType", "SOAP::SOAPString"],
246
- ["clientAccounts", "SOAP::SOAPInt[]"],
247
- ["crossClient", "SOAP::SOAPBoolean"],
248
- ["endDate", "DateTime"],
249
- ["id", "SOAP::SOAPLong"],
250
- ["name", "SOAP::SOAPString"],
251
- ["startDate", "DateTime"],
252
- ["status", "SOAP::SOAPString"],
253
- ["adWordsType", "SOAP::SOAPString"],
254
- ["campaigns", "SOAP::SOAPInt[]"],
255
- ["keywordStatuses", "SOAP::SOAPString[]"],
256
- ["keywordType", "SOAP::SOAPString"]
257
- ]
258
-
259
- attr_accessor :aggregationType
260
- attr_accessor :clientAccounts
261
- attr_accessor :crossClient
262
- attr_accessor :endDate
263
- attr_accessor :id
264
- attr_accessor :name
265
- attr_accessor :startDate
266
- attr_accessor :status
267
- attr_accessor :adWordsType
268
- attr_accessor :campaigns
269
- attr_accessor :keywordStatuses
270
- attr_accessor :keywordType
271
-
272
- def initialize(aggregationType = nil, clientAccounts = [], crossClient = nil, endDate = nil, id = nil, name = nil, startDate = nil, status = nil, adWordsType = nil, campaigns = [], keywordStatuses = [], keywordType = nil)
273
- @aggregationType = aggregationType
274
- @clientAccounts = clientAccounts
275
- @crossClient = crossClient
276
- @endDate = endDate
277
- @id = id
278
- @name = name
279
- @startDate = startDate
280
- @status = status
281
- @adWordsType = adWordsType
282
- @campaigns = campaigns
283
- @keywordStatuses = keywordStatuses
284
- @keywordType = keywordType
285
- end
286
- end
287
-
288
- # {https://adwords.google.com/api/adwords/v3}AdTextReportJob
289
- class AdTextReportJob
290
- @@schema_type = "AdTextReportJob"
291
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
292
- @@schema_element = [
293
- ["aggregationType", "SOAP::SOAPString"],
294
- ["clientAccounts", "SOAP::SOAPInt[]"],
295
- ["crossClient", "SOAP::SOAPBoolean"],
296
- ["endDate", "DateTime"],
297
- ["id", "SOAP::SOAPLong"],
298
- ["name", "SOAP::SOAPString"],
299
- ["startDate", "DateTime"],
300
- ["status", "SOAP::SOAPString"],
301
- ["adWordsType", "SOAP::SOAPString"],
302
- ["campaigns", "SOAP::SOAPInt[]"]
303
- ]
304
-
305
- attr_accessor :aggregationType
306
- attr_accessor :clientAccounts
307
- attr_accessor :crossClient
308
- attr_accessor :endDate
309
- attr_accessor :id
310
- attr_accessor :name
311
- attr_accessor :startDate
312
- attr_accessor :status
313
- attr_accessor :adWordsType
314
- attr_accessor :campaigns
315
-
316
- def initialize(aggregationType = nil, clientAccounts = [], crossClient = nil, endDate = nil, id = nil, name = nil, startDate = nil, status = nil, adWordsType = nil, campaigns = [])
317
- @aggregationType = aggregationType
318
- @clientAccounts = clientAccounts
319
- @crossClient = crossClient
320
- @endDate = endDate
321
- @id = id
322
- @name = name
323
- @startDate = startDate
324
- @status = status
325
- @adWordsType = adWordsType
326
- @campaigns = campaigns
327
- end
328
- end
329
-
330
- # {https://adwords.google.com/api/adwords/v3}UrlReportJob
331
- class UrlReportJob
332
- @@schema_type = "UrlReportJob"
333
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
334
- @@schema_element = [
335
- ["aggregationType", "SOAP::SOAPString"],
336
- ["clientAccounts", "SOAP::SOAPInt[]"],
337
- ["crossClient", "SOAP::SOAPBoolean"],
338
- ["endDate", "DateTime"],
339
- ["id", "SOAP::SOAPLong"],
340
- ["name", "SOAP::SOAPString"],
341
- ["startDate", "DateTime"],
342
- ["status", "SOAP::SOAPString"],
343
- ["adWordsType", "SOAP::SOAPString"],
344
- ["campaigns", "SOAP::SOAPInt[]"]
345
- ]
346
-
347
- attr_accessor :aggregationType
348
- attr_accessor :clientAccounts
349
- attr_accessor :crossClient
350
- attr_accessor :endDate
351
- attr_accessor :id
352
- attr_accessor :name
353
- attr_accessor :startDate
354
- attr_accessor :status
355
- attr_accessor :adWordsType
356
- attr_accessor :campaigns
357
-
358
- def initialize(aggregationType = nil, clientAccounts = [], crossClient = nil, endDate = nil, id = nil, name = nil, startDate = nil, status = nil, adWordsType = nil, campaigns = [])
359
- @aggregationType = aggregationType
360
- @clientAccounts = clientAccounts
361
- @crossClient = crossClient
362
- @endDate = endDate
363
- @id = id
364
- @name = name
365
- @startDate = startDate
366
- @status = status
367
- @adWordsType = adWordsType
368
- @campaigns = campaigns
369
- end
370
- end
371
-
372
- # {https://adwords.google.com/api/adwords/v3}CustomReportJob
373
- class CustomReportJob
374
- @@schema_type = "CustomReportJob"
375
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
376
- @@schema_element = [
377
- ["aggregationType", "SOAP::SOAPString"],
378
- ["clientAccounts", "SOAP::SOAPInt[]"],
379
- ["crossClient", "SOAP::SOAPBoolean"],
380
- ["endDate", "DateTime"],
381
- ["id", "SOAP::SOAPLong"],
382
- ["name", "SOAP::SOAPString"],
383
- ["startDate", "DateTime"],
384
- ["status", "SOAP::SOAPString"],
385
- ["adGroupStatuses", "SOAP::SOAPString[]"],
386
- ["adGroups", "SOAP::SOAPInt[]"],
387
- ["adWordsType", "SOAP::SOAPString"],
388
- ["campaignStatuses", "SOAP::SOAPString[]"],
389
- ["campaigns", "SOAP::SOAPInt[]"],
390
- ["customOptions", "SOAP::SOAPString[]"],
391
- ["keywordStatuses", "SOAP::SOAPString[]"],
392
- ["keywordType", "SOAP::SOAPString"],
393
- ["keywords", "SOAP::SOAPString[]"]
394
- ]
395
-
396
- attr_accessor :aggregationType
397
- attr_accessor :clientAccounts
398
- attr_accessor :crossClient
399
- attr_accessor :endDate
400
- attr_accessor :id
401
- attr_accessor :name
402
- attr_accessor :startDate
403
- attr_accessor :status
404
- attr_accessor :adGroupStatuses
405
- attr_accessor :adGroups
406
- attr_accessor :adWordsType
407
- attr_accessor :campaignStatuses
408
- attr_accessor :campaigns
409
- attr_accessor :customOptions
410
- attr_accessor :keywordStatuses
411
- attr_accessor :keywordType
412
- attr_accessor :keywords
413
-
414
- def initialize(aggregationType = nil, clientAccounts = [], crossClient = nil, endDate = nil, id = nil, name = nil, startDate = nil, status = nil, adGroupStatuses = [], adGroups = [], adWordsType = nil, campaignStatuses = [], campaigns = [], customOptions = [], keywordStatuses = [], keywordType = nil, keywords = [])
415
- @aggregationType = aggregationType
416
- @clientAccounts = clientAccounts
417
- @crossClient = crossClient
418
- @endDate = endDate
419
- @id = id
420
- @name = name
421
- @startDate = startDate
422
- @status = status
423
- @adGroupStatuses = adGroupStatuses
424
- @adGroups = adGroups
425
- @adWordsType = adWordsType
426
- @campaignStatuses = campaignStatuses
427
- @campaigns = campaigns
428
- @customOptions = customOptions
429
- @keywordStatuses = keywordStatuses
430
- @keywordType = keywordType
431
- @keywords = keywords
432
- end
433
- end
434
-
435
- # {https://adwords.google.com/api/adwords/v3}ReportJobStatus
436
- class ReportJobStatus < ::String
437
- @@schema_type = "ReportJobStatus"
438
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}AggregationType
447
- class AggregationType < ::String
448
- @@schema_type = "AggregationType"
449
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}AdWordsType
459
- class AdWordsType < ::String
460
- @@schema_type = "AdWordsType"
461
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
462
-
463
- ContentOnly = AdWordsType.new("ContentOnly")
464
- SearchOnly = AdWordsType.new("SearchOnly")
465
- end
466
-
467
- # {https://adwords.google.com/api/adwords/v3}KeywordStatus
468
- class KeywordStatus < ::String
469
- @@schema_type = "KeywordStatus"
470
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}KeywordType
481
- class KeywordType < ::String
482
- @@schema_type = "KeywordType"
483
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}CampaignStatus
491
- class CampaignStatus < ::String
492
- @@schema_type = "CampaignStatus"
493
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}CustomReportOption
504
- class CustomReportOption < ::String
505
- @@schema_type = "CustomReportOption"
506
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
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/v3}AdGroupStatus
561
- class AdGroupStatus < ::String
562
- @@schema_type = "AdGroupStatus"
563
- @@schema_ns = "https://adwords.google.com/api/adwords/v3"
564
-
565
- Deleted = AdGroupStatus.new("Deleted")
566
- Enabled = AdGroupStatus.new("Enabled")
567
- Paused = AdGroupStatus.new("Paused")
568
- end
569
- end