adwords4r 0.5 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.txt +4 -0
- data/Rakefile +10 -10
- data/Readme.txt +78 -74
- data/Todo.txt +12 -0
- data/adwords.properties +2 -0
- data/examples/campaign.rb +1 -2
- data/examples/keyword_tool_demo.rb +27 -0
- data/examples/sandbox.rb +30 -0
- data/lib/adwords4r.rb +7 -1
- data/lib/adwords4r/credentials.rb +5 -3
- data/lib/adwords4r/services.rb +2 -2
- data/lib/adwords4r/v4/CreativeService.rb +0 -33
- data/lib/adwords4r/{v3 → v5}/AccountService.rb +311 -86
- data/lib/adwords4r/{v3 → v5}/AccountServiceDriver.rb +69 -34
- data/lib/adwords4r/{v3 → v5}/AdGroupService.rb +90 -58
- data/lib/adwords4r/{v3 → v5}/AdGroupServiceDriver.rb +18 -18
- data/lib/adwords4r/{v3 → v5}/CampaignService.rb +121 -89
- data/lib/adwords4r/{v3 → v5}/CampaignServiceDriver.rb +22 -22
- data/lib/adwords4r/{v3 → v5}/CreativeService.rb +84 -81
- data/lib/adwords4r/{v2 → v5}/CreativeServiceDriver.rb +20 -20
- data/lib/adwords4r/{v3 → v5}/CriterionService.rb +96 -64
- data/lib/adwords4r/{v3 → v5}/CriterionServiceDriver.rb +18 -18
- data/lib/adwords4r/{v3 → v5}/InfoService.rb +70 -34
- data/lib/adwords4r/{v2 → v5}/InfoServiceDriver.rb +16 -16
- data/lib/adwords4r/{v3 → v5}/KeywordToolService.rb +62 -26
- data/lib/adwords4r/{v3 → v5}/KeywordToolServiceDriver.rb +6 -6
- data/lib/adwords4r/v5/ReportService.rb +788 -0
- data/lib/adwords4r/{v2 → v5}/ReportServiceDriver.rb +14 -14
- data/lib/adwords4r/{v3 → v5}/TrafficEstimatorService.rb +95 -50
- data/lib/adwords4r/{v2 → v5}/TrafficEstimatorServiceDriver.rb +8 -8
- metadata +23 -46
- data/examples/report_demo.rb +0 -42
- data/lib/adwords4r/registry.rb +0 -31
- data/lib/adwords4r/v2/AccountService.rb +0 -628
- data/lib/adwords4r/v2/AccountServiceDriver.rb +0 -153
- data/lib/adwords4r/v2/AdGroupService.rb +0 -317
- data/lib/adwords4r/v2/AdGroupServiceDriver.rb +0 -97
- data/lib/adwords4r/v2/CampaignService.rb +0 -517
- data/lib/adwords4r/v2/CampaignServiceDriver.rb +0 -111
- data/lib/adwords4r/v2/CreativeService.rb +0 -401
- data/lib/adwords4r/v2/CriterionService.rb +0 -415
- data/lib/adwords4r/v2/CriterionServiceDriver.rb +0 -97
- data/lib/adwords4r/v2/InfoService.rb +0 -260
- data/lib/adwords4r/v2/KeywordService.rb +0 -543
- data/lib/adwords4r/v2/KeywordServiceDriver.rb +0 -125
- data/lib/adwords4r/v2/ReportService.rb +0 -569
- data/lib/adwords4r/v2/TrafficEstimatorService.rb +0 -251
- data/lib/adwords4r/v2/default.rb +0 -364
- data/lib/adwords4r/v2/defaultDriver.rb +0 -102
- data/lib/adwords4r/v3/CreativeServiceDriver.rb +0 -104
- data/lib/adwords4r/v3/InfoServiceDriver.rb +0 -90
- data/lib/adwords4r/v3/KeywordService.rb +0 -543
- data/lib/adwords4r/v3/KeywordServiceDriver.rb +0 -125
- data/lib/adwords4r/v3/ReportService.rb +0 -569
- data/lib/adwords4r/v3/ReportServiceDriver.rb +0 -83
- data/lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb +0 -62
- data/scripts/publish.rb +0 -16
@@ -1,10 +1,10 @@
|
|
1
1
|
module AdWords
|
2
2
|
require 'xsd/qname'
|
3
3
|
|
4
|
-
# {https://adwords.google.com/api/adwords/
|
4
|
+
# {https://adwords.google.com/api/adwords/v5}getOperationCount
|
5
5
|
class GetOperationCount
|
6
6
|
@@schema_type = "getOperationCount"
|
7
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
7
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
8
8
|
@@schema_qualified = "true"
|
9
9
|
@@schema_element = [
|
10
10
|
["startDate", "SOAP::SOAPDate"],
|
@@ -20,10 +20,10 @@ class GetOperationCount
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
# {https://adwords.google.com/api/adwords/
|
23
|
+
# {https://adwords.google.com/api/adwords/v5}getOperationCountResponse
|
24
24
|
class GetOperationCountResponse
|
25
25
|
@@schema_type = "getOperationCountResponse"
|
26
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
26
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
27
27
|
@@schema_qualified = "true"
|
28
28
|
@@schema_element = [
|
29
29
|
["getOperationCountReturn", "SOAP::SOAPLong"]
|
@@ -36,10 +36,10 @@ class GetOperationCountResponse
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
# {https://adwords.google.com/api/adwords/
|
39
|
+
# {https://adwords.google.com/api/adwords/v5}getOperationsQuotaThisMonth
|
40
40
|
class GetOperationsQuotaThisMonth
|
41
41
|
@@schema_type = "getOperationsQuotaThisMonth"
|
42
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
42
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
43
43
|
@@schema_qualified = "true"
|
44
44
|
@@schema_element = []
|
45
45
|
|
@@ -47,10 +47,10 @@ class GetOperationsQuotaThisMonth
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
# {https://adwords.google.com/api/adwords/
|
50
|
+
# {https://adwords.google.com/api/adwords/v5}getOperationsQuotaThisMonthResponse
|
51
51
|
class GetOperationsQuotaThisMonthResponse
|
52
52
|
@@schema_type = "getOperationsQuotaThisMonthResponse"
|
53
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
53
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
54
54
|
@@schema_qualified = "true"
|
55
55
|
@@schema_element = [
|
56
56
|
["getOperationsQuotaThisMonthReturn", "SOAP::SOAPLong"]
|
@@ -63,10 +63,10 @@ class GetOperationsQuotaThisMonthResponse
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
# {https://adwords.google.com/api/adwords/
|
66
|
+
# {https://adwords.google.com/api/adwords/v5}getUsageQuotaThisMonth
|
67
67
|
class GetUsageQuotaThisMonth
|
68
68
|
@@schema_type = "getUsageQuotaThisMonth"
|
69
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
69
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
70
70
|
@@schema_qualified = "true"
|
71
71
|
@@schema_element = []
|
72
72
|
|
@@ -74,10 +74,10 @@ class GetUsageQuotaThisMonth
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
# {https://adwords.google.com/api/adwords/
|
77
|
+
# {https://adwords.google.com/api/adwords/v5}getUsageQuotaThisMonthResponse
|
78
78
|
class GetUsageQuotaThisMonthResponse
|
79
79
|
@@schema_type = "getUsageQuotaThisMonthResponse"
|
80
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
80
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
81
81
|
@@schema_qualified = "true"
|
82
82
|
@@schema_element = [
|
83
83
|
["getUsageQuotaThisMonthReturn", "SOAP::SOAPLong"]
|
@@ -90,10 +90,10 @@ class GetUsageQuotaThisMonthResponse
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
-
# {https://adwords.google.com/api/adwords/
|
93
|
+
# {https://adwords.google.com/api/adwords/v5}getFreeUsageQuotaThisMonth
|
94
94
|
class GetFreeUsageQuotaThisMonth
|
95
95
|
@@schema_type = "getFreeUsageQuotaThisMonth"
|
96
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
96
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
97
97
|
@@schema_qualified = "true"
|
98
98
|
@@schema_element = []
|
99
99
|
|
@@ -101,10 +101,10 @@ class GetFreeUsageQuotaThisMonth
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
104
|
-
# {https://adwords.google.com/api/adwords/
|
104
|
+
# {https://adwords.google.com/api/adwords/v5}getFreeUsageQuotaThisMonthResponse
|
105
105
|
class GetFreeUsageQuotaThisMonthResponse
|
106
106
|
@@schema_type = "getFreeUsageQuotaThisMonthResponse"
|
107
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
107
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
108
108
|
@@schema_qualified = "true"
|
109
109
|
@@schema_element = [
|
110
110
|
["getFreeUsageQuotaThisMonthReturn", "SOAP::SOAPLong"]
|
@@ -117,10 +117,10 @@ class GetFreeUsageQuotaThisMonthResponse
|
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
-
# {https://adwords.google.com/api/adwords/
|
120
|
+
# {https://adwords.google.com/api/adwords/v5}getMethodCost
|
121
121
|
class GetMethodCost
|
122
122
|
@@schema_type = "getMethodCost"
|
123
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
123
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
124
124
|
@@schema_qualified = "true"
|
125
125
|
@@schema_element = [
|
126
126
|
["service", "SOAP::SOAPString"],
|
@@ -139,10 +139,10 @@ class GetMethodCost
|
|
139
139
|
end
|
140
140
|
end
|
141
141
|
|
142
|
-
# {https://adwords.google.com/api/adwords/
|
142
|
+
# {https://adwords.google.com/api/adwords/v5}getMethodCostResponse
|
143
143
|
class GetMethodCostResponse
|
144
144
|
@@schema_type = "getMethodCostResponse"
|
145
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
145
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
146
146
|
@@schema_qualified = "true"
|
147
147
|
@@schema_element = [
|
148
148
|
["getMethodCostReturn", "SOAP::SOAPInt"]
|
@@ -155,10 +155,10 @@ class GetMethodCostResponse
|
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
158
|
-
# {https://adwords.google.com/api/adwords/
|
158
|
+
# {https://adwords.google.com/api/adwords/v5}getUnitCount
|
159
159
|
class GetUnitCount
|
160
160
|
@@schema_type = "getUnitCount"
|
161
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
161
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
162
162
|
@@schema_qualified = "true"
|
163
163
|
@@schema_element = [
|
164
164
|
["startDate", "SOAP::SOAPDate"],
|
@@ -174,10 +174,10 @@ class GetUnitCount
|
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
177
|
-
# {https://adwords.google.com/api/adwords/
|
177
|
+
# {https://adwords.google.com/api/adwords/v5}getUnitCountResponse
|
178
178
|
class GetUnitCountResponse
|
179
179
|
@@schema_type = "getUnitCountResponse"
|
180
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
180
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
181
181
|
@@schema_qualified = "true"
|
182
182
|
@@schema_element = [
|
183
183
|
["getUnitCountReturn", "SOAP::SOAPLong"]
|
@@ -190,10 +190,10 @@ class GetUnitCountResponse
|
|
190
190
|
end
|
191
191
|
end
|
192
192
|
|
193
|
-
# {https://adwords.google.com/api/adwords/
|
193
|
+
# {https://adwords.google.com/api/adwords/v5}getUnitCountForMethod
|
194
194
|
class GetUnitCountForMethod
|
195
195
|
@@schema_type = "getUnitCountForMethod"
|
196
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
196
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
197
197
|
@@schema_qualified = "true"
|
198
198
|
@@schema_element = [
|
199
199
|
["service", "SOAP::SOAPString"],
|
@@ -215,10 +215,10 @@ class GetUnitCountForMethod
|
|
215
215
|
end
|
216
216
|
end
|
217
217
|
|
218
|
-
# {https://adwords.google.com/api/adwords/
|
218
|
+
# {https://adwords.google.com/api/adwords/v5}getUnitCountForMethodResponse
|
219
219
|
class GetUnitCountForMethodResponse
|
220
220
|
@@schema_type = "getUnitCountForMethodResponse"
|
221
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
221
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
222
222
|
@@schema_qualified = "true"
|
223
223
|
@@schema_element = [
|
224
224
|
["getUnitCountForMethodReturn", "SOAP::SOAPLong"]
|
@@ -231,30 +231,66 @@ class GetUnitCountForMethodResponse
|
|
231
231
|
end
|
232
232
|
end
|
233
233
|
|
234
|
-
# {https://adwords.google.com/api/adwords/
|
234
|
+
# {https://adwords.google.com/api/adwords/v5}ApiException
|
235
235
|
class ApiException
|
236
236
|
@@schema_type = "ApiException"
|
237
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
237
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
238
238
|
@@schema_element = [
|
239
239
|
["code", "SOAP::SOAPInt"],
|
240
240
|
["internal", "SOAP::SOAPBoolean"],
|
241
241
|
["message", "SOAP::SOAPString"],
|
242
242
|
["trigger", "SOAP::SOAPString"],
|
243
|
-
["
|
243
|
+
["errors", "ApiError[]"]
|
244
244
|
]
|
245
245
|
|
246
246
|
attr_accessor :code
|
247
247
|
attr_accessor :internal
|
248
248
|
attr_accessor :message
|
249
249
|
attr_accessor :trigger
|
250
|
-
attr_accessor :
|
250
|
+
attr_accessor :errors
|
251
251
|
|
252
|
-
def initialize(code = nil, internal = nil, message = nil, trigger = nil,
|
252
|
+
def initialize(code = nil, internal = nil, message = nil, trigger = nil, errors = [])
|
253
253
|
@code = code
|
254
254
|
@internal = internal
|
255
255
|
@message = message
|
256
256
|
@trigger = trigger
|
257
|
-
@
|
257
|
+
@errors = errors
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# {https://adwords.google.com/api/adwords/v5}ApiError
|
262
|
+
class ApiError
|
263
|
+
@@schema_type = "ApiError"
|
264
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
265
|
+
@@schema_element = [
|
266
|
+
["index", "SOAP::SOAPInt"],
|
267
|
+
["field", "SOAP::SOAPString"],
|
268
|
+
["textIndex", "SOAP::SOAPInt"],
|
269
|
+
["textLength", "SOAP::SOAPInt"],
|
270
|
+
["trigger", "SOAP::SOAPString"],
|
271
|
+
["code", "SOAP::SOAPInt"],
|
272
|
+
["isExemptable", "SOAP::SOAPBoolean"],
|
273
|
+
["detail", "SOAP::SOAPString"]
|
274
|
+
]
|
275
|
+
|
276
|
+
attr_accessor :index
|
277
|
+
attr_accessor :field
|
278
|
+
attr_accessor :textIndex
|
279
|
+
attr_accessor :textLength
|
280
|
+
attr_accessor :trigger
|
281
|
+
attr_accessor :code
|
282
|
+
attr_accessor :isExemptable
|
283
|
+
attr_accessor :detail
|
284
|
+
|
285
|
+
def initialize(index = nil, field = nil, textIndex = nil, textLength = nil, trigger = nil, code = nil, isExemptable = nil, detail = nil)
|
286
|
+
@index = index
|
287
|
+
@field = field
|
288
|
+
@textIndex = textIndex
|
289
|
+
@textLength = textLength
|
290
|
+
@trigger = trigger
|
291
|
+
@code = code
|
292
|
+
@isExemptable = isExemptable
|
293
|
+
@detail = detail
|
258
294
|
end
|
259
295
|
end
|
260
296
|
end
|
@@ -1,59 +1,59 @@
|
|
1
1
|
module AdWords
|
2
|
-
require 'adwords4r/
|
2
|
+
require 'adwords4r/v5/InfoService'
|
3
3
|
|
4
4
|
require 'soap/rpc/driver'
|
5
5
|
|
6
6
|
class InfoServiceInterface < ::SOAP::RPC::Driver
|
7
|
-
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/
|
7
|
+
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v5/InfoService"
|
8
8
|
MappingRegistry = ::SOAP::Mapping::Registry.new
|
9
9
|
|
10
10
|
Methods = [
|
11
11
|
[ "",
|
12
12
|
"getOperationCount",
|
13
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
14
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
13
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getOperationCount"], true],
|
14
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getOperationCountResponse"], true] ],
|
15
15
|
{ :request_style => :document, :request_use => :literal,
|
16
16
|
:response_style => :document, :response_use => :literal }
|
17
17
|
],
|
18
18
|
[ "",
|
19
19
|
"getOperationsQuotaThisMonth",
|
20
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
21
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
20
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getOperationsQuotaThisMonth"], true],
|
21
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getOperationsQuotaThisMonthResponse"], true] ],
|
22
22
|
{ :request_style => :document, :request_use => :literal,
|
23
23
|
:response_style => :document, :response_use => :literal }
|
24
24
|
],
|
25
25
|
[ "",
|
26
26
|
"getUsageQuotaThisMonth",
|
27
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
28
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
27
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getUsageQuotaThisMonth"], true],
|
28
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getUsageQuotaThisMonthResponse"], true] ],
|
29
29
|
{ :request_style => :document, :request_use => :literal,
|
30
30
|
:response_style => :document, :response_use => :literal }
|
31
31
|
],
|
32
32
|
[ "",
|
33
33
|
"getFreeUsageQuotaThisMonth",
|
34
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
35
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
34
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getFreeUsageQuotaThisMonth"], true],
|
35
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getFreeUsageQuotaThisMonthResponse"], true] ],
|
36
36
|
{ :request_style => :document, :request_use => :literal,
|
37
37
|
:response_style => :document, :response_use => :literal }
|
38
38
|
],
|
39
39
|
[ "",
|
40
40
|
"getMethodCost",
|
41
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
42
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
41
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getMethodCost"], true],
|
42
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getMethodCostResponse"], true] ],
|
43
43
|
{ :request_style => :document, :request_use => :literal,
|
44
44
|
:response_style => :document, :response_use => :literal }
|
45
45
|
],
|
46
46
|
[ "",
|
47
47
|
"getUnitCount",
|
48
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
49
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
48
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getUnitCount"], true],
|
49
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getUnitCountResponse"], true] ],
|
50
50
|
{ :request_style => :document, :request_use => :literal,
|
51
51
|
:response_style => :document, :response_use => :literal }
|
52
52
|
],
|
53
53
|
[ "",
|
54
54
|
"getUnitCountForMethod",
|
55
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
56
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
55
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getUnitCountForMethod"], true],
|
56
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getUnitCountForMethodResponse"], true] ],
|
57
57
|
{ :request_style => :document, :request_use => :literal,
|
58
58
|
:response_style => :document, :response_use => :literal }
|
59
59
|
]
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module AdWords
|
2
2
|
require 'xsd/qname'
|
3
3
|
|
4
|
-
# {https://adwords.google.com/api/adwords/
|
4
|
+
# {https://adwords.google.com/api/adwords/v5}getKeywordVariations
|
5
5
|
class GetKeywordVariations
|
6
6
|
@@schema_type = "getKeywordVariations"
|
7
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
7
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
8
8
|
@@schema_qualified = "true"
|
9
9
|
@@schema_element = [
|
10
10
|
["seedKeywords", "SeedKeyword[]"],
|
@@ -26,10 +26,10 @@ class GetKeywordVariations
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
# {https://adwords.google.com/api/adwords/
|
29
|
+
# {https://adwords.google.com/api/adwords/v5}getKeywordVariationsResponse
|
30
30
|
class GetKeywordVariationsResponse
|
31
31
|
@@schema_type = "getKeywordVariationsResponse"
|
32
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
32
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
33
33
|
@@schema_qualified = "true"
|
34
34
|
@@schema_element = [
|
35
35
|
["getKeywordVariationsReturn", "KeywordVariations"]
|
@@ -42,10 +42,10 @@ class GetKeywordVariationsResponse
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
# {https://adwords.google.com/api/adwords/
|
45
|
+
# {https://adwords.google.com/api/adwords/v5}getKeywordsFromSite
|
46
46
|
class GetKeywordsFromSite
|
47
47
|
@@schema_type = "getKeywordsFromSite"
|
48
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
48
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
49
49
|
@@schema_qualified = "true"
|
50
50
|
@@schema_element = [
|
51
51
|
["url", "SOAP::SOAPString"],
|
@@ -67,10 +67,10 @@ class GetKeywordsFromSite
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
# {https://adwords.google.com/api/adwords/
|
70
|
+
# {https://adwords.google.com/api/adwords/v5}getKeywordsFromSiteResponse
|
71
71
|
class GetKeywordsFromSiteResponse
|
72
72
|
@@schema_type = "getKeywordsFromSiteResponse"
|
73
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
73
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
74
74
|
@@schema_qualified = "true"
|
75
75
|
@@schema_element = [
|
76
76
|
["getKeywordsFromSiteReturn", "SiteKeywordGroups"]
|
@@ -83,37 +83,73 @@ class GetKeywordsFromSiteResponse
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
# {https://adwords.google.com/api/adwords/
|
86
|
+
# {https://adwords.google.com/api/adwords/v5}ApiException
|
87
87
|
class ApiException
|
88
88
|
@@schema_type = "ApiException"
|
89
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
89
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
90
90
|
@@schema_element = [
|
91
91
|
["code", "SOAP::SOAPInt"],
|
92
92
|
["internal", "SOAP::SOAPBoolean"],
|
93
93
|
["message", "SOAP::SOAPString"],
|
94
94
|
["trigger", "SOAP::SOAPString"],
|
95
|
-
["
|
95
|
+
["errors", "ApiError[]"]
|
96
96
|
]
|
97
97
|
|
98
98
|
attr_accessor :code
|
99
99
|
attr_accessor :internal
|
100
100
|
attr_accessor :message
|
101
101
|
attr_accessor :trigger
|
102
|
-
attr_accessor :
|
102
|
+
attr_accessor :errors
|
103
103
|
|
104
|
-
def initialize(code = nil, internal = nil, message = nil, trigger = nil,
|
104
|
+
def initialize(code = nil, internal = nil, message = nil, trigger = nil, errors = [])
|
105
105
|
@code = code
|
106
106
|
@internal = internal
|
107
107
|
@message = message
|
108
108
|
@trigger = trigger
|
109
|
-
@
|
109
|
+
@errors = errors
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
# {https://adwords.google.com/api/adwords/
|
113
|
+
# {https://adwords.google.com/api/adwords/v5}ApiError
|
114
|
+
class ApiError
|
115
|
+
@@schema_type = "ApiError"
|
116
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
117
|
+
@@schema_element = [
|
118
|
+
["index", "SOAP::SOAPInt"],
|
119
|
+
["field", "SOAP::SOAPString"],
|
120
|
+
["textIndex", "SOAP::SOAPInt"],
|
121
|
+
["textLength", "SOAP::SOAPInt"],
|
122
|
+
["trigger", "SOAP::SOAPString"],
|
123
|
+
["code", "SOAP::SOAPInt"],
|
124
|
+
["isExemptable", "SOAP::SOAPBoolean"],
|
125
|
+
["detail", "SOAP::SOAPString"]
|
126
|
+
]
|
127
|
+
|
128
|
+
attr_accessor :index
|
129
|
+
attr_accessor :field
|
130
|
+
attr_accessor :textIndex
|
131
|
+
attr_accessor :textLength
|
132
|
+
attr_accessor :trigger
|
133
|
+
attr_accessor :code
|
134
|
+
attr_accessor :isExemptable
|
135
|
+
attr_accessor :detail
|
136
|
+
|
137
|
+
def initialize(index = nil, field = nil, textIndex = nil, textLength = nil, trigger = nil, code = nil, isExemptable = nil, detail = nil)
|
138
|
+
@index = index
|
139
|
+
@field = field
|
140
|
+
@textIndex = textIndex
|
141
|
+
@textLength = textLength
|
142
|
+
@trigger = trigger
|
143
|
+
@code = code
|
144
|
+
@isExemptable = isExemptable
|
145
|
+
@detail = detail
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# {https://adwords.google.com/api/adwords/v5}SeedKeyword
|
114
150
|
class SeedKeyword
|
115
151
|
@@schema_type = "SeedKeyword"
|
116
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
152
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
117
153
|
@@schema_element = [
|
118
154
|
["negative", "SOAP::SOAPBoolean"],
|
119
155
|
["text", "SOAP::SOAPString"],
|
@@ -131,10 +167,10 @@ class SeedKeyword
|
|
131
167
|
end
|
132
168
|
end
|
133
169
|
|
134
|
-
# {https://adwords.google.com/api/adwords/
|
170
|
+
# {https://adwords.google.com/api/adwords/v5}KeywordVariations
|
135
171
|
class KeywordVariations
|
136
172
|
@@schema_type = "KeywordVariations"
|
137
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
173
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
138
174
|
@@schema_element = [
|
139
175
|
["additionalToConsider", "KeywordVariation[]"],
|
140
176
|
["moreSpecific", "KeywordVariation[]"]
|
@@ -149,10 +185,10 @@ class KeywordVariations
|
|
149
185
|
end
|
150
186
|
end
|
151
187
|
|
152
|
-
# {https://adwords.google.com/api/adwords/
|
188
|
+
# {https://adwords.google.com/api/adwords/v5}KeywordVariation
|
153
189
|
class KeywordVariation
|
154
190
|
@@schema_type = "KeywordVariation"
|
155
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
191
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
156
192
|
@@schema_element = [
|
157
193
|
["advertiserCompetitionScale", "SOAP::SOAPInt"],
|
158
194
|
["language", "SOAP::SOAPString"],
|
@@ -173,10 +209,10 @@ class KeywordVariation
|
|
173
209
|
end
|
174
210
|
end
|
175
211
|
|
176
|
-
# {https://adwords.google.com/api/adwords/
|
212
|
+
# {https://adwords.google.com/api/adwords/v5}SiteKeywordGroups
|
177
213
|
class SiteKeywordGroups
|
178
214
|
@@schema_type = "SiteKeywordGroups"
|
179
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
215
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
180
216
|
@@schema_element = [
|
181
217
|
["groups", "SOAP::SOAPString[]"],
|
182
218
|
["keywords", "SiteKeyword[]"]
|
@@ -191,10 +227,10 @@ class SiteKeywordGroups
|
|
191
227
|
end
|
192
228
|
end
|
193
229
|
|
194
|
-
# {https://adwords.google.com/api/adwords/
|
230
|
+
# {https://adwords.google.com/api/adwords/v5}SiteKeyword
|
195
231
|
class SiteKeyword
|
196
232
|
@@schema_type = "SiteKeyword"
|
197
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
233
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
198
234
|
@@schema_element = [
|
199
235
|
["advertiserCompetitionScale", "SOAP::SOAPInt"],
|
200
236
|
["groupId", "SOAP::SOAPInt"],
|
@@ -215,10 +251,10 @@ class SiteKeyword
|
|
215
251
|
end
|
216
252
|
end
|
217
253
|
|
218
|
-
# {https://adwords.google.com/api/adwords/
|
254
|
+
# {https://adwords.google.com/api/adwords/v5}KeywordType
|
219
255
|
class KeywordType < ::String
|
220
256
|
@@schema_type = "KeywordType"
|
221
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
257
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
222
258
|
|
223
259
|
Broad = KeywordType.new("Broad")
|
224
260
|
Exact = KeywordType.new("Exact")
|