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,260 +0,0 @@
1
- module AdWords
2
- require 'xsd/qname'
3
-
4
- # {https://adwords.google.com/api/adwords/v2}getOperationCount
5
- class GetOperationCount
6
- @@schema_type = "getOperationCount"
7
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
8
- @@schema_qualified = "true"
9
- @@schema_element = [
10
- ["startDate", "SOAP::SOAPDate"],
11
- ["endDate", "SOAP::SOAPDate"]
12
- ]
13
-
14
- attr_accessor :startDate
15
- attr_accessor :endDate
16
-
17
- def initialize(startDate = nil, endDate = nil)
18
- @startDate = startDate
19
- @endDate = endDate
20
- end
21
- end
22
-
23
- # {https://adwords.google.com/api/adwords/v2}getOperationCountResponse
24
- class GetOperationCountResponse
25
- @@schema_type = "getOperationCountResponse"
26
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
27
- @@schema_qualified = "true"
28
- @@schema_element = [
29
- ["getOperationCountReturn", "SOAP::SOAPLong"]
30
- ]
31
-
32
- attr_accessor :getOperationCountReturn
33
-
34
- def initialize(getOperationCountReturn = nil)
35
- @getOperationCountReturn = getOperationCountReturn
36
- end
37
- end
38
-
39
- # {https://adwords.google.com/api/adwords/v2}getOperationsQuotaThisMonth
40
- class GetOperationsQuotaThisMonth
41
- @@schema_type = "getOperationsQuotaThisMonth"
42
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
43
- @@schema_qualified = "true"
44
- @@schema_element = []
45
-
46
- def initialize
47
- end
48
- end
49
-
50
- # {https://adwords.google.com/api/adwords/v2}getOperationsQuotaThisMonthResponse
51
- class GetOperationsQuotaThisMonthResponse
52
- @@schema_type = "getOperationsQuotaThisMonthResponse"
53
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
54
- @@schema_qualified = "true"
55
- @@schema_element = [
56
- ["getOperationsQuotaThisMonthReturn", "SOAP::SOAPLong"]
57
- ]
58
-
59
- attr_accessor :getOperationsQuotaThisMonthReturn
60
-
61
- def initialize(getOperationsQuotaThisMonthReturn = nil)
62
- @getOperationsQuotaThisMonthReturn = getOperationsQuotaThisMonthReturn
63
- end
64
- end
65
-
66
- # {https://adwords.google.com/api/adwords/v2}getUsageQuotaThisMonth
67
- class GetUsageQuotaThisMonth
68
- @@schema_type = "getUsageQuotaThisMonth"
69
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
70
- @@schema_qualified = "true"
71
- @@schema_element = []
72
-
73
- def initialize
74
- end
75
- end
76
-
77
- # {https://adwords.google.com/api/adwords/v2}getUsageQuotaThisMonthResponse
78
- class GetUsageQuotaThisMonthResponse
79
- @@schema_type = "getUsageQuotaThisMonthResponse"
80
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
81
- @@schema_qualified = "true"
82
- @@schema_element = [
83
- ["getUsageQuotaThisMonthReturn", "SOAP::SOAPLong"]
84
- ]
85
-
86
- attr_accessor :getUsageQuotaThisMonthReturn
87
-
88
- def initialize(getUsageQuotaThisMonthReturn = nil)
89
- @getUsageQuotaThisMonthReturn = getUsageQuotaThisMonthReturn
90
- end
91
- end
92
-
93
- # {https://adwords.google.com/api/adwords/v2}getFreeUsageQuotaThisMonth
94
- class GetFreeUsageQuotaThisMonth
95
- @@schema_type = "getFreeUsageQuotaThisMonth"
96
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
97
- @@schema_qualified = "true"
98
- @@schema_element = []
99
-
100
- def initialize
101
- end
102
- end
103
-
104
- # {https://adwords.google.com/api/adwords/v2}getFreeUsageQuotaThisMonthResponse
105
- class GetFreeUsageQuotaThisMonthResponse
106
- @@schema_type = "getFreeUsageQuotaThisMonthResponse"
107
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
108
- @@schema_qualified = "true"
109
- @@schema_element = [
110
- ["getFreeUsageQuotaThisMonthReturn", "SOAP::SOAPLong"]
111
- ]
112
-
113
- attr_accessor :getFreeUsageQuotaThisMonthReturn
114
-
115
- def initialize(getFreeUsageQuotaThisMonthReturn = nil)
116
- @getFreeUsageQuotaThisMonthReturn = getFreeUsageQuotaThisMonthReturn
117
- end
118
- end
119
-
120
- # {https://adwords.google.com/api/adwords/v2}getMethodCost
121
- class GetMethodCost
122
- @@schema_type = "getMethodCost"
123
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
124
- @@schema_qualified = "true"
125
- @@schema_element = [
126
- ["service", "SOAP::SOAPString"],
127
- ["method", "SOAP::SOAPString"],
128
- ["date", "SOAP::SOAPDate"]
129
- ]
130
-
131
- attr_accessor :service
132
- attr_accessor :method
133
- attr_accessor :date
134
-
135
- def initialize(service = nil, method = nil, date = nil)
136
- @service = service
137
- @method = method
138
- @date = date
139
- end
140
- end
141
-
142
- # {https://adwords.google.com/api/adwords/v2}getMethodCostResponse
143
- class GetMethodCostResponse
144
- @@schema_type = "getMethodCostResponse"
145
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
146
- @@schema_qualified = "true"
147
- @@schema_element = [
148
- ["getMethodCostReturn", "SOAP::SOAPInt"]
149
- ]
150
-
151
- attr_accessor :getMethodCostReturn
152
-
153
- def initialize(getMethodCostReturn = nil)
154
- @getMethodCostReturn = getMethodCostReturn
155
- end
156
- end
157
-
158
- # {https://adwords.google.com/api/adwords/v2}getUnitCount
159
- class GetUnitCount
160
- @@schema_type = "getUnitCount"
161
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
162
- @@schema_qualified = "true"
163
- @@schema_element = [
164
- ["startDate", "SOAP::SOAPDate"],
165
- ["endDate", "SOAP::SOAPDate"]
166
- ]
167
-
168
- attr_accessor :startDate
169
- attr_accessor :endDate
170
-
171
- def initialize(startDate = nil, endDate = nil)
172
- @startDate = startDate
173
- @endDate = endDate
174
- end
175
- end
176
-
177
- # {https://adwords.google.com/api/adwords/v2}getUnitCountResponse
178
- class GetUnitCountResponse
179
- @@schema_type = "getUnitCountResponse"
180
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
181
- @@schema_qualified = "true"
182
- @@schema_element = [
183
- ["getUnitCountReturn", "SOAP::SOAPLong"]
184
- ]
185
-
186
- attr_accessor :getUnitCountReturn
187
-
188
- def initialize(getUnitCountReturn = nil)
189
- @getUnitCountReturn = getUnitCountReturn
190
- end
191
- end
192
-
193
- # {https://adwords.google.com/api/adwords/v2}getUnitCountForMethod
194
- class GetUnitCountForMethod
195
- @@schema_type = "getUnitCountForMethod"
196
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
197
- @@schema_qualified = "true"
198
- @@schema_element = [
199
- ["service", "SOAP::SOAPString"],
200
- ["method", "SOAP::SOAPString"],
201
- ["startDate", "SOAP::SOAPDate"],
202
- ["endDate", "SOAP::SOAPDate"]
203
- ]
204
-
205
- attr_accessor :service
206
- attr_accessor :method
207
- attr_accessor :startDate
208
- attr_accessor :endDate
209
-
210
- def initialize(service = nil, method = nil, startDate = nil, endDate = nil)
211
- @service = service
212
- @method = method
213
- @startDate = startDate
214
- @endDate = endDate
215
- end
216
- end
217
-
218
- # {https://adwords.google.com/api/adwords/v2}getUnitCountForMethodResponse
219
- class GetUnitCountForMethodResponse
220
- @@schema_type = "getUnitCountForMethodResponse"
221
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
222
- @@schema_qualified = "true"
223
- @@schema_element = [
224
- ["getUnitCountForMethodReturn", "SOAP::SOAPLong"]
225
- ]
226
-
227
- attr_accessor :getUnitCountForMethodReturn
228
-
229
- def initialize(getUnitCountForMethodReturn = nil)
230
- @getUnitCountForMethodReturn = getUnitCountForMethodReturn
231
- end
232
- end
233
-
234
- # {https://adwords.google.com/api/adwords/v2}ApiException
235
- class ApiException
236
- @@schema_type = "ApiException"
237
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
238
- @@schema_element = [
239
- ["code", "SOAP::SOAPInt"],
240
- ["internal", "SOAP::SOAPBoolean"],
241
- ["message", "SOAP::SOAPString"],
242
- ["trigger", "SOAP::SOAPString"],
243
- ["violations", "SOAP::SOAPString"]
244
- ]
245
-
246
- attr_accessor :code
247
- attr_accessor :internal
248
- attr_accessor :message
249
- attr_accessor :trigger
250
- attr_accessor :violations
251
-
252
- def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
253
- @code = code
254
- @internal = internal
255
- @message = message
256
- @trigger = trigger
257
- @violations = violations
258
- end
259
- end
260
- end
@@ -1,543 +0,0 @@
1
- module AdWords
2
- require 'xsd/qname'
3
-
4
- # {https://adwords.google.com/api/adwords/v2}getAllKeywords
5
- class GetAllKeywords
6
- @@schema_type = "getAllKeywords"
7
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
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/v2}getAllKeywordsResponse
21
- class GetAllKeywordsResponse < ::Array
22
- @@schema_element = [
23
- ["getAllKeywordsReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "getAllKeywordsReturn")]]
24
- ]
25
- end
26
-
27
- # {https://adwords.google.com/api/adwords/v2}getKeywordList
28
- class GetKeywordList
29
- @@schema_type = "getKeywordList"
30
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
31
- @@schema_qualified = "true"
32
- @@schema_element = [
33
- ["adGroupId", "SOAP::SOAPInt"],
34
- ["keywordIds", "SOAP::SOAPLong[]"]
35
- ]
36
-
37
- attr_accessor :adGroupId
38
- attr_accessor :keywordIds
39
-
40
- def initialize(adGroupId = nil, keywordIds = [])
41
- @adGroupId = adGroupId
42
- @keywordIds = keywordIds
43
- end
44
- end
45
-
46
- # {https://adwords.google.com/api/adwords/v2}getKeywordListResponse
47
- class GetKeywordListResponse < ::Array
48
- @@schema_element = [
49
- ["getKeywordListReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "getKeywordListReturn")]]
50
- ]
51
- end
52
-
53
- # {https://adwords.google.com/api/adwords/v2}getActiveKeywords
54
- class GetActiveKeywords
55
- @@schema_type = "getActiveKeywords"
56
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
57
- @@schema_qualified = "true"
58
- @@schema_element = [
59
- ["adGroupId", "SOAP::SOAPInt"]
60
- ]
61
-
62
- attr_accessor :adGroupId
63
-
64
- def initialize(adGroupId = nil)
65
- @adGroupId = adGroupId
66
- end
67
- end
68
-
69
- # {https://adwords.google.com/api/adwords/v2}getActiveKeywordsResponse
70
- class GetActiveKeywordsResponse < ::Array
71
- @@schema_element = [
72
- ["getActiveKeywordsReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "getActiveKeywordsReturn")]]
73
- ]
74
- end
75
-
76
- # {https://adwords.google.com/api/adwords/v2}setKeywordListMaxCpc
77
- class SetKeywordListMaxCpc
78
- @@schema_type = "setKeywordListMaxCpc"
79
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
80
- @@schema_qualified = "true"
81
- @@schema_element = [
82
- ["adGroupId", "SOAP::SOAPInt"],
83
- ["keywordIds", "SOAP::SOAPLong[]"],
84
- ["maxCpcs", "SOAP::SOAPLong[]"]
85
- ]
86
-
87
- attr_accessor :adGroupId
88
- attr_accessor :keywordIds
89
- attr_accessor :maxCpcs
90
-
91
- def initialize(adGroupId = nil, keywordIds = [], maxCpcs = [])
92
- @adGroupId = adGroupId
93
- @keywordIds = keywordIds
94
- @maxCpcs = maxCpcs
95
- end
96
- end
97
-
98
- # {https://adwords.google.com/api/adwords/v2}setKeywordListMaxCpcResponse
99
- class SetKeywordListMaxCpcResponse
100
- @@schema_type = "setKeywordListMaxCpcResponse"
101
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
102
- @@schema_qualified = "true"
103
- @@schema_element = []
104
-
105
- def initialize
106
- end
107
- end
108
-
109
- # {https://adwords.google.com/api/adwords/v2}setKeywordListSingleMaxCpc
110
- class SetKeywordListSingleMaxCpc
111
- @@schema_type = "setKeywordListSingleMaxCpc"
112
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
113
- @@schema_qualified = "true"
114
- @@schema_element = [
115
- ["adGroupId", "SOAP::SOAPInt"],
116
- ["keywordIds", "SOAP::SOAPLong[]"],
117
- ["maxCpc", "SOAP::SOAPLong"]
118
- ]
119
-
120
- attr_accessor :adGroupId
121
- attr_accessor :keywordIds
122
- attr_accessor :maxCpc
123
-
124
- def initialize(adGroupId = nil, keywordIds = [], maxCpc = nil)
125
- @adGroupId = adGroupId
126
- @keywordIds = keywordIds
127
- @maxCpc = maxCpc
128
- end
129
- end
130
-
131
- # {https://adwords.google.com/api/adwords/v2}setKeywordListSingleMaxCpcResponse
132
- class SetKeywordListSingleMaxCpcResponse
133
- @@schema_type = "setKeywordListSingleMaxCpcResponse"
134
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
135
- @@schema_qualified = "true"
136
- @@schema_element = []
137
-
138
- def initialize
139
- end
140
- end
141
-
142
- # {https://adwords.google.com/api/adwords/v2}updateKeyword
143
- class UpdateKeyword
144
- @@schema_type = "updateKeyword"
145
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
146
- @@schema_qualified = "true"
147
- @@schema_element = [
148
- ["keyword", "Keyword"]
149
- ]
150
-
151
- attr_accessor :keyword
152
-
153
- def initialize(keyword = nil)
154
- @keyword = keyword
155
- end
156
- end
157
-
158
- # {https://adwords.google.com/api/adwords/v2}updateKeywordResponse
159
- class UpdateKeywordResponse
160
- @@schema_type = "updateKeywordResponse"
161
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
162
- @@schema_qualified = "true"
163
- @@schema_element = []
164
-
165
- def initialize
166
- end
167
- end
168
-
169
- # {https://adwords.google.com/api/adwords/v2}updateKeywordList
170
- class UpdateKeywordList < ::Array
171
- @@schema_element = [
172
- ["keywords", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "keywords")]]
173
- ]
174
- end
175
-
176
- # {https://adwords.google.com/api/adwords/v2}updateKeywordListResponse
177
- class UpdateKeywordListResponse
178
- @@schema_type = "updateKeywordListResponse"
179
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
180
- @@schema_qualified = "true"
181
- @@schema_element = []
182
-
183
- def initialize
184
- end
185
- end
186
-
187
- # {https://adwords.google.com/api/adwords/v2}addKeyword
188
- class AddKeyword
189
- @@schema_type = "addKeyword"
190
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
191
- @@schema_qualified = "true"
192
- @@schema_element = [
193
- ["newKeyword", "Keyword"]
194
- ]
195
-
196
- attr_accessor :newKeyword
197
-
198
- def initialize(newKeyword = nil)
199
- @newKeyword = newKeyword
200
- end
201
- end
202
-
203
- # {https://adwords.google.com/api/adwords/v2}addKeywordResponse
204
- class AddKeywordResponse
205
- @@schema_type = "addKeywordResponse"
206
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
207
- @@schema_qualified = "true"
208
- @@schema_element = [
209
- ["addKeywordReturn", "Keyword"]
210
- ]
211
-
212
- attr_accessor :addKeywordReturn
213
-
214
- def initialize(addKeywordReturn = nil)
215
- @addKeywordReturn = addKeywordReturn
216
- end
217
- end
218
-
219
- # {https://adwords.google.com/api/adwords/v2}addKeywordList
220
- class AddKeywordList
221
- @@schema_type = "addKeywordList"
222
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
223
- @@schema_qualified = "true"
224
- @@schema_element = [
225
- ["adGroupId", "SOAP::SOAPInt"],
226
- ["newKeywords", "Keyword[]"]
227
- ]
228
-
229
- attr_accessor :adGroupId
230
- attr_accessor :newKeywords
231
-
232
- def initialize(adGroupId = nil, newKeywords = [])
233
- @adGroupId = adGroupId
234
- @newKeywords = newKeywords
235
- end
236
- end
237
-
238
- # {https://adwords.google.com/api/adwords/v2}addKeywordListResponse
239
- class AddKeywordListResponse < ::Array
240
- @@schema_element = [
241
- ["addKeywordListReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "addKeywordListReturn")]]
242
- ]
243
- end
244
-
245
- # {https://adwords.google.com/api/adwords/v2}removeKeywordList
246
- class RemoveKeywordList
247
- @@schema_type = "removeKeywordList"
248
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
249
- @@schema_qualified = "true"
250
- @@schema_element = [
251
- ["adGroupId", "SOAP::SOAPInt"],
252
- ["keywordIds", "SOAP::SOAPLong[]"]
253
- ]
254
-
255
- attr_accessor :adGroupId
256
- attr_accessor :keywordIds
257
-
258
- def initialize(adGroupId = nil, keywordIds = [])
259
- @adGroupId = adGroupId
260
- @keywordIds = keywordIds
261
- end
262
- end
263
-
264
- # {https://adwords.google.com/api/adwords/v2}removeKeywordListResponse
265
- class RemoveKeywordListResponse
266
- @@schema_type = "removeKeywordListResponse"
267
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
268
- @@schema_qualified = "true"
269
- @@schema_element = []
270
-
271
- def initialize
272
- end
273
- end
274
-
275
- # {https://adwords.google.com/api/adwords/v2}removeKeyword
276
- class RemoveKeyword
277
- @@schema_type = "removeKeyword"
278
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
279
- @@schema_qualified = "true"
280
- @@schema_element = [
281
- ["adGroupId", "SOAP::SOAPInt"],
282
- ["keywordId", "SOAP::SOAPLong"]
283
- ]
284
-
285
- attr_accessor :adGroupId
286
- attr_accessor :keywordId
287
-
288
- def initialize(adGroupId = nil, keywordId = nil)
289
- @adGroupId = adGroupId
290
- @keywordId = keywordId
291
- end
292
- end
293
-
294
- # {https://adwords.google.com/api/adwords/v2}removeKeywordResponse
295
- class RemoveKeywordResponse
296
- @@schema_type = "removeKeywordResponse"
297
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
298
- @@schema_qualified = "true"
299
- @@schema_element = []
300
-
301
- def initialize
302
- end
303
- end
304
-
305
- # {https://adwords.google.com/api/adwords/v2}getKeywordStats
306
- class GetKeywordStats
307
- @@schema_type = "getKeywordStats"
308
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
309
- @@schema_qualified = "true"
310
- @@schema_element = [
311
- ["adGroupId", "SOAP::SOAPInt"],
312
- ["keywordIds", "SOAP::SOAPLong[]"],
313
- ["start", "SOAP::SOAPDateTime"],
314
- ["v_end", ["SOAP::SOAPDateTime", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "end")]]
315
- ]
316
-
317
- attr_accessor :adGroupId
318
- attr_accessor :keywordIds
319
- attr_accessor :start
320
-
321
- def end
322
- @v_end
323
- end
324
-
325
- def end=(value)
326
- @v_end = value
327
- end
328
-
329
- def initialize(adGroupId = nil, keywordIds = [], start = nil, v_end = nil)
330
- @adGroupId = adGroupId
331
- @keywordIds = keywordIds
332
- @start = start
333
- @v_end = v_end
334
- end
335
- end
336
-
337
- # {https://adwords.google.com/api/adwords/v2}getKeywordStatsResponse
338
- class GetKeywordStatsResponse < ::Array
339
- @@schema_element = [
340
- ["getKeywordStatsReturn", ["StatsRecord[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "getKeywordStatsReturn")]]
341
- ]
342
- end
343
-
344
- # {https://adwords.google.com/api/adwords/v2}Criterion
345
- class Criterion
346
- @@schema_type = "Criterion"
347
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
348
- @@schema_element = [
349
- ["id", "SOAP::SOAPLong"],
350
- ["adGroupId", "SOAP::SOAPInt"],
351
- ["exemptionRequest", "SOAP::SOAPString"],
352
- ["criterionType", "SOAP::SOAPString"],
353
- ["language", "SOAP::SOAPString"],
354
- ["status", "SOAP::SOAPString"],
355
- ["negative", "SOAP::SOAPBoolean"],
356
- ["destinationUrl", "SOAP::SOAPString"]
357
- ]
358
-
359
- attr_accessor :id
360
- attr_accessor :adGroupId
361
- attr_accessor :exemptionRequest
362
- attr_accessor :criterionType
363
- attr_accessor :language
364
- attr_accessor :status
365
- attr_accessor :negative
366
- attr_accessor :destinationUrl
367
-
368
- def initialize(id = nil, adGroupId = nil, exemptionRequest = nil, criterionType = nil, language = nil, status = nil, negative = nil, destinationUrl = nil)
369
- @id = id
370
- @adGroupId = adGroupId
371
- @exemptionRequest = exemptionRequest
372
- @criterionType = criterionType
373
- @language = language
374
- @status = status
375
- @negative = negative
376
- @destinationUrl = destinationUrl
377
- end
378
- end
379
-
380
- # {https://adwords.google.com/api/adwords/v2}Keyword
381
- class Keyword
382
- @@schema_type = "Keyword"
383
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
384
- @@schema_element = [
385
- ["id", "SOAP::SOAPLong"],
386
- ["adGroupId", "SOAP::SOAPInt"],
387
- ["exemptionRequest", "SOAP::SOAPString"],
388
- ["criterionType", "SOAP::SOAPString"],
389
- ["language", "SOAP::SOAPString"],
390
- ["status", "SOAP::SOAPString"],
391
- ["negative", "SOAP::SOAPBoolean"],
392
- ["destinationUrl", "SOAP::SOAPString"],
393
- ["type", "SOAP::SOAPString"],
394
- ["minCpc", "SOAP::SOAPLong"],
395
- ["maxCpc", "SOAP::SOAPLong"],
396
- ["text", "SOAP::SOAPString"]
397
- ]
398
-
399
- attr_accessor :id
400
- attr_accessor :adGroupId
401
- attr_accessor :exemptionRequest
402
- attr_accessor :criterionType
403
- attr_accessor :language
404
- attr_accessor :status
405
- attr_accessor :negative
406
- attr_accessor :destinationUrl
407
- attr_accessor :type
408
- attr_accessor :minCpc
409
- attr_accessor :maxCpc
410
- attr_accessor :text
411
-
412
- def initialize(id = nil, adGroupId = nil, exemptionRequest = nil, criterionType = nil, language = nil, status = nil, negative = nil, destinationUrl = nil, type = nil, minCpc = nil, maxCpc = nil, text = nil)
413
- @id = id
414
- @adGroupId = adGroupId
415
- @exemptionRequest = exemptionRequest
416
- @criterionType = criterionType
417
- @language = language
418
- @status = status
419
- @negative = negative
420
- @destinationUrl = destinationUrl
421
- @type = type
422
- @minCpc = minCpc
423
- @maxCpc = maxCpc
424
- @text = text
425
- end
426
- end
427
-
428
- # {https://adwords.google.com/api/adwords/v2}ApiException
429
- class ApiException
430
- @@schema_type = "ApiException"
431
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
432
- @@schema_element = [
433
- ["code", "SOAP::SOAPInt"],
434
- ["internal", "SOAP::SOAPBoolean"],
435
- ["message", "SOAP::SOAPString"],
436
- ["trigger", "SOAP::SOAPString"],
437
- ["violations", "SOAP::SOAPString"]
438
- ]
439
-
440
- attr_accessor :code
441
- attr_accessor :internal
442
- attr_accessor :message
443
- attr_accessor :trigger
444
- attr_accessor :violations
445
-
446
- def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
447
- @code = code
448
- @internal = internal
449
- @message = message
450
- @trigger = trigger
451
- @violations = violations
452
- end
453
- end
454
-
455
- # {https://adwords.google.com/api/adwords/v2}AdPolicyViolation
456
- class AdPolicyViolation
457
- @@schema_type = "AdPolicyViolation"
458
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
459
- @@schema_element = [
460
- ["index", "SOAP::SOAPInt"],
461
- ["line", "SOAP::SOAPInt"],
462
- ["textIndex", "SOAP::SOAPInt"],
463
- ["textLength", "SOAP::SOAPInt"],
464
- ["trigger", "SOAP::SOAPString"],
465
- ["detail", "SOAP::SOAPString"],
466
- ["isExemptable", "SOAP::SOAPBoolean"]
467
- ]
468
-
469
- attr_accessor :index
470
- attr_accessor :line
471
- attr_accessor :textIndex
472
- attr_accessor :textLength
473
- attr_accessor :trigger
474
- attr_accessor :detail
475
- attr_accessor :isExemptable
476
-
477
- def initialize(index = nil, line = nil, textIndex = nil, textLength = nil, trigger = nil, detail = nil, isExemptable = nil)
478
- @index = index
479
- @line = line
480
- @textIndex = textIndex
481
- @textLength = textLength
482
- @trigger = trigger
483
- @detail = detail
484
- @isExemptable = isExemptable
485
- end
486
- end
487
-
488
- # {https://adwords.google.com/api/adwords/v2}StatsRecord
489
- class StatsRecord
490
- @@schema_type = "StatsRecord"
491
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
492
- @@schema_element = [
493
- ["averagePosition", "SOAP::SOAPDouble"],
494
- ["clicks", "SOAP::SOAPLong"],
495
- ["conversionRate", "SOAP::SOAPDouble"],
496
- ["conversions", "SOAP::SOAPLong"],
497
- ["cost", "SOAP::SOAPLong"],
498
- ["id", "SOAP::SOAPLong"],
499
- ["impressions", "SOAP::SOAPLong"]
500
- ]
501
-
502
- attr_accessor :averagePosition
503
- attr_accessor :clicks
504
- attr_accessor :conversionRate
505
- attr_accessor :conversions
506
- attr_accessor :cost
507
- attr_accessor :id
508
- attr_accessor :impressions
509
-
510
- def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
511
- @averagePosition = averagePosition
512
- @clicks = clicks
513
- @conversionRate = conversionRate
514
- @conversions = conversions
515
- @cost = cost
516
- @id = id
517
- @impressions = impressions
518
- end
519
- end
520
-
521
- # {https://adwords.google.com/api/adwords/v2}CriterionStatus
522
- class CriterionStatus < ::String
523
- @@schema_type = "CriterionStatus"
524
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
525
-
526
- Deleted = CriterionStatus.new("Deleted")
527
- Disabled = CriterionStatus.new("Disabled")
528
- Disapproved = CriterionStatus.new("Disapproved")
529
- InTrial = CriterionStatus.new("InTrial")
530
- Normal = CriterionStatus.new("Normal")
531
- OnHold = CriterionStatus.new("OnHold")
532
- end
533
-
534
- # {https://adwords.google.com/api/adwords/v2}KeywordType
535
- class KeywordType < ::String
536
- @@schema_type = "KeywordType"
537
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
538
-
539
- Broad = KeywordType.new("Broad")
540
- Exact = KeywordType.new("Exact")
541
- Phrase = KeywordType.new("Phrase")
542
- end
543
- end