adwords4r 0.4 → 0.5
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.
- data/ChangeLog.txt +1 -0
- data/Rakefile +9 -2
- data/Readme.txt +16 -2
- data/Todo.txt +5 -1
- data/adwords.properties +5 -0
- data/examples/get_free_usage_this_month.rb +16 -0
- data/examples/report_demo.rb +42 -0
- data/examples/traffic_estimator.rb +31 -0
- data/lib/adwords4r/credentials.rb +7 -3
- data/lib/adwords4r/services.rb +4 -8
- data/lib/adwords4r/v4/AccountService.rb +709 -0
- data/lib/adwords4r/v4/AccountServiceDriver.rb +174 -0
- data/lib/adwords4r/v4/AdGroupService.rb +316 -0
- data/lib/adwords4r/v4/AdGroupServiceDriver.rb +97 -0
- data/lib/adwords4r/v4/CampaignService.rb +527 -0
- data/lib/adwords4r/v4/CampaignServiceDriver.rb +111 -0
- data/lib/adwords4r/v4/CreativeService.rb +401 -0
- data/lib/adwords4r/v4/CreativeServiceDriver.rb +104 -0
- data/lib/adwords4r/v4/CriterionService.rb +411 -0
- data/lib/adwords4r/v4/CriterionServiceDriver.rb +97 -0
- data/lib/adwords4r/v4/InfoService.rb +260 -0
- data/lib/adwords4r/v4/InfoServiceDriver.rb +90 -0
- data/lib/adwords4r/v4/KeywordService.rb +543 -0
- data/lib/adwords4r/v4/KeywordServiceDriver.rb +125 -0
- data/lib/adwords4r/v4/KeywordToolService.rb +227 -0
- data/lib/adwords4r/v4/KeywordToolServiceDriver.rb +55 -0
- data/lib/adwords4r/v4/ReportService.rb +575 -0
- data/lib/adwords4r/v4/ReportServiceDriver.rb +83 -0
- data/lib/adwords4r/v4/TrafficEstimatorService.rb +274 -0
- data/lib/adwords4r/v4/TrafficEstimatorServiceDriver.rb +62 -0
- metadata +27 -2
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
module AdWords
|
|
2
|
+
require 'adwords4r/v4/CriterionService'
|
|
3
|
+
|
|
4
|
+
require 'soap/rpc/driver'
|
|
5
|
+
|
|
6
|
+
class CriterionService < ::SOAP::RPC::Driver
|
|
7
|
+
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v4/CriterionService"
|
|
8
|
+
MappingRegistry = ::SOAP::Mapping::Registry.new
|
|
9
|
+
|
|
10
|
+
Methods = [
|
|
11
|
+
[ "",
|
|
12
|
+
"getAllCriteria",
|
|
13
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getAllCriteria"], true],
|
|
14
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getAllCriteriaResponse"], true] ],
|
|
15
|
+
{ :request_style => :document, :request_use => :literal,
|
|
16
|
+
:response_style => :document, :response_use => :literal }
|
|
17
|
+
],
|
|
18
|
+
[ "",
|
|
19
|
+
"getCriteria",
|
|
20
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getCriteria"], true],
|
|
21
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getCriteriaResponse"], true] ],
|
|
22
|
+
{ :request_style => :document, :request_use => :literal,
|
|
23
|
+
:response_style => :document, :response_use => :literal }
|
|
24
|
+
],
|
|
25
|
+
[ "",
|
|
26
|
+
"updateCriteria",
|
|
27
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "updateCriteria"], true],
|
|
28
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "updateCriteriaResponse"], true] ],
|
|
29
|
+
{ :request_style => :document, :request_use => :literal,
|
|
30
|
+
:response_style => :document, :response_use => :literal }
|
|
31
|
+
],
|
|
32
|
+
[ "",
|
|
33
|
+
"addCriteria",
|
|
34
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "addCriteria"], true],
|
|
35
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "addCriteriaResponse"], true] ],
|
|
36
|
+
{ :request_style => :document, :request_use => :literal,
|
|
37
|
+
:response_style => :document, :response_use => :literal }
|
|
38
|
+
],
|
|
39
|
+
[ "",
|
|
40
|
+
"removeCriteria",
|
|
41
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "removeCriteria"], true],
|
|
42
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "removeCriteriaResponse"], true] ],
|
|
43
|
+
{ :request_style => :document, :request_use => :literal,
|
|
44
|
+
:response_style => :document, :response_use => :literal }
|
|
45
|
+
],
|
|
46
|
+
[ "",
|
|
47
|
+
"getCriterionStats",
|
|
48
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getCriterionStats"], true],
|
|
49
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getCriterionStatsResponse"], true] ],
|
|
50
|
+
{ :request_style => :document, :request_use => :literal,
|
|
51
|
+
:response_style => :document, :response_use => :literal }
|
|
52
|
+
],
|
|
53
|
+
[ "",
|
|
54
|
+
"getCampaignNegativeCriteria",
|
|
55
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getCampaignNegativeCriteria"], true],
|
|
56
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getCampaignNegativeCriteriaResponse"], true] ],
|
|
57
|
+
{ :request_style => :document, :request_use => :literal,
|
|
58
|
+
:response_style => :document, :response_use => :literal }
|
|
59
|
+
],
|
|
60
|
+
[ "",
|
|
61
|
+
"setCampaignNegativeCriteria",
|
|
62
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "setCampaignNegativeCriteria"], true],
|
|
63
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "setCampaignNegativeCriteriaResponse"], true] ],
|
|
64
|
+
{ :request_style => :document, :request_use => :literal,
|
|
65
|
+
:response_style => :document, :response_use => :literal }
|
|
66
|
+
]
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
def initialize(endpoint_url = nil)
|
|
70
|
+
endpoint_url ||= DefaultEndpointUrl
|
|
71
|
+
super(endpoint_url, nil)
|
|
72
|
+
self.mapping_registry = MappingRegistry
|
|
73
|
+
init_methods
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
private
|
|
77
|
+
|
|
78
|
+
def init_methods
|
|
79
|
+
Methods.each do |definitions|
|
|
80
|
+
opt = definitions.last
|
|
81
|
+
if opt[:request_style] == :document
|
|
82
|
+
add_document_operation(*definitions)
|
|
83
|
+
else
|
|
84
|
+
add_rpc_operation(*definitions)
|
|
85
|
+
qname = definitions[0]
|
|
86
|
+
name = definitions[2]
|
|
87
|
+
if qname.name != name and qname.name.capitalize == name.capitalize
|
|
88
|
+
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
|
89
|
+
__send__(name, *arg)
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
end
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
module AdWords
|
|
2
|
+
require 'xsd/qname'
|
|
3
|
+
|
|
4
|
+
# {https://adwords.google.com/api/adwords/v4}getOperationCount
|
|
5
|
+
class GetOperationCount
|
|
6
|
+
@@schema_type = "getOperationCount"
|
|
7
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getOperationCountResponse
|
|
24
|
+
class GetOperationCountResponse
|
|
25
|
+
@@schema_type = "getOperationCountResponse"
|
|
26
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getOperationsQuotaThisMonth
|
|
40
|
+
class GetOperationsQuotaThisMonth
|
|
41
|
+
@@schema_type = "getOperationsQuotaThisMonth"
|
|
42
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
43
|
+
@@schema_qualified = "true"
|
|
44
|
+
@@schema_element = []
|
|
45
|
+
|
|
46
|
+
def initialize
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# {https://adwords.google.com/api/adwords/v4}getOperationsQuotaThisMonthResponse
|
|
51
|
+
class GetOperationsQuotaThisMonthResponse
|
|
52
|
+
@@schema_type = "getOperationsQuotaThisMonthResponse"
|
|
53
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getUsageQuotaThisMonth
|
|
67
|
+
class GetUsageQuotaThisMonth
|
|
68
|
+
@@schema_type = "getUsageQuotaThisMonth"
|
|
69
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
70
|
+
@@schema_qualified = "true"
|
|
71
|
+
@@schema_element = []
|
|
72
|
+
|
|
73
|
+
def initialize
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# {https://adwords.google.com/api/adwords/v4}getUsageQuotaThisMonthResponse
|
|
78
|
+
class GetUsageQuotaThisMonthResponse
|
|
79
|
+
@@schema_type = "getUsageQuotaThisMonthResponse"
|
|
80
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getFreeUsageQuotaThisMonth
|
|
94
|
+
class GetFreeUsageQuotaThisMonth
|
|
95
|
+
@@schema_type = "getFreeUsageQuotaThisMonth"
|
|
96
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
97
|
+
@@schema_qualified = "true"
|
|
98
|
+
@@schema_element = []
|
|
99
|
+
|
|
100
|
+
def initialize
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# {https://adwords.google.com/api/adwords/v4}getFreeUsageQuotaThisMonthResponse
|
|
105
|
+
class GetFreeUsageQuotaThisMonthResponse
|
|
106
|
+
@@schema_type = "getFreeUsageQuotaThisMonthResponse"
|
|
107
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getMethodCost
|
|
121
|
+
class GetMethodCost
|
|
122
|
+
@@schema_type = "getMethodCost"
|
|
123
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getMethodCostResponse
|
|
143
|
+
class GetMethodCostResponse
|
|
144
|
+
@@schema_type = "getMethodCostResponse"
|
|
145
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getUnitCount
|
|
159
|
+
class GetUnitCount
|
|
160
|
+
@@schema_type = "getUnitCount"
|
|
161
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getUnitCountResponse
|
|
178
|
+
class GetUnitCountResponse
|
|
179
|
+
@@schema_type = "getUnitCountResponse"
|
|
180
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getUnitCountForMethod
|
|
194
|
+
class GetUnitCountForMethod
|
|
195
|
+
@@schema_type = "getUnitCountForMethod"
|
|
196
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getUnitCountForMethodResponse
|
|
219
|
+
class GetUnitCountForMethodResponse
|
|
220
|
+
@@schema_type = "getUnitCountForMethodResponse"
|
|
221
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}ApiException
|
|
235
|
+
class ApiException
|
|
236
|
+
@@schema_type = "ApiException"
|
|
237
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
module AdWords
|
|
2
|
+
require 'adwords4r/v4/InfoService'
|
|
3
|
+
|
|
4
|
+
require 'soap/rpc/driver'
|
|
5
|
+
|
|
6
|
+
class InfoServiceInterface < ::SOAP::RPC::Driver
|
|
7
|
+
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v4/InfoService"
|
|
8
|
+
MappingRegistry = ::SOAP::Mapping::Registry.new
|
|
9
|
+
|
|
10
|
+
Methods = [
|
|
11
|
+
[ "",
|
|
12
|
+
"getOperationCount",
|
|
13
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getOperationCount"], true],
|
|
14
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getOperationCountResponse"], true] ],
|
|
15
|
+
{ :request_style => :document, :request_use => :literal,
|
|
16
|
+
:response_style => :document, :response_use => :literal }
|
|
17
|
+
],
|
|
18
|
+
[ "",
|
|
19
|
+
"getOperationsQuotaThisMonth",
|
|
20
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getOperationsQuotaThisMonth"], true],
|
|
21
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getOperationsQuotaThisMonthResponse"], true] ],
|
|
22
|
+
{ :request_style => :document, :request_use => :literal,
|
|
23
|
+
:response_style => :document, :response_use => :literal }
|
|
24
|
+
],
|
|
25
|
+
[ "",
|
|
26
|
+
"getUsageQuotaThisMonth",
|
|
27
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getUsageQuotaThisMonth"], true],
|
|
28
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getUsageQuotaThisMonthResponse"], true] ],
|
|
29
|
+
{ :request_style => :document, :request_use => :literal,
|
|
30
|
+
:response_style => :document, :response_use => :literal }
|
|
31
|
+
],
|
|
32
|
+
[ "",
|
|
33
|
+
"getFreeUsageQuotaThisMonth",
|
|
34
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getFreeUsageQuotaThisMonth"], true],
|
|
35
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getFreeUsageQuotaThisMonthResponse"], true] ],
|
|
36
|
+
{ :request_style => :document, :request_use => :literal,
|
|
37
|
+
:response_style => :document, :response_use => :literal }
|
|
38
|
+
],
|
|
39
|
+
[ "",
|
|
40
|
+
"getMethodCost",
|
|
41
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getMethodCost"], true],
|
|
42
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getMethodCostResponse"], true] ],
|
|
43
|
+
{ :request_style => :document, :request_use => :literal,
|
|
44
|
+
:response_style => :document, :response_use => :literal }
|
|
45
|
+
],
|
|
46
|
+
[ "",
|
|
47
|
+
"getUnitCount",
|
|
48
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getUnitCount"], true],
|
|
49
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getUnitCountResponse"], true] ],
|
|
50
|
+
{ :request_style => :document, :request_use => :literal,
|
|
51
|
+
:response_style => :document, :response_use => :literal }
|
|
52
|
+
],
|
|
53
|
+
[ "",
|
|
54
|
+
"getUnitCountForMethod",
|
|
55
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getUnitCountForMethod"], true],
|
|
56
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getUnitCountForMethodResponse"], true] ],
|
|
57
|
+
{ :request_style => :document, :request_use => :literal,
|
|
58
|
+
:response_style => :document, :response_use => :literal }
|
|
59
|
+
]
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
def initialize(endpoint_url = nil)
|
|
63
|
+
endpoint_url ||= DefaultEndpointUrl
|
|
64
|
+
super(endpoint_url, nil)
|
|
65
|
+
self.mapping_registry = MappingRegistry
|
|
66
|
+
init_methods
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
private
|
|
70
|
+
|
|
71
|
+
def init_methods
|
|
72
|
+
Methods.each do |definitions|
|
|
73
|
+
opt = definitions.last
|
|
74
|
+
if opt[:request_style] == :document
|
|
75
|
+
add_document_operation(*definitions)
|
|
76
|
+
else
|
|
77
|
+
add_rpc_operation(*definitions)
|
|
78
|
+
qname = definitions[0]
|
|
79
|
+
name = definitions[2]
|
|
80
|
+
if qname.name != name and qname.name.capitalize == name.capitalize
|
|
81
|
+
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
|
82
|
+
__send__(name, *arg)
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
end
|
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
module AdWords
|
|
2
|
+
require 'xsd/qname'
|
|
3
|
+
|
|
4
|
+
# {https://adwords.google.com/api/adwords/v4}getAllKeywords
|
|
5
|
+
class GetAllKeywords
|
|
6
|
+
@@schema_type = "getAllKeywords"
|
|
7
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getAllKeywordsResponse
|
|
21
|
+
class GetAllKeywordsResponse < ::Array
|
|
22
|
+
@@schema_element = [
|
|
23
|
+
["getAllKeywordsReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v4", "getAllKeywordsReturn")]]
|
|
24
|
+
]
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# {https://adwords.google.com/api/adwords/v4}getKeywordList
|
|
28
|
+
class GetKeywordList
|
|
29
|
+
@@schema_type = "getKeywordList"
|
|
30
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getKeywordListResponse
|
|
47
|
+
class GetKeywordListResponse < ::Array
|
|
48
|
+
@@schema_element = [
|
|
49
|
+
["getKeywordListReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v4", "getKeywordListReturn")]]
|
|
50
|
+
]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# {https://adwords.google.com/api/adwords/v4}getActiveKeywords
|
|
54
|
+
class GetActiveKeywords
|
|
55
|
+
@@schema_type = "getActiveKeywords"
|
|
56
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}getActiveKeywordsResponse
|
|
70
|
+
class GetActiveKeywordsResponse < ::Array
|
|
71
|
+
@@schema_element = [
|
|
72
|
+
["getActiveKeywordsReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v4", "getActiveKeywordsReturn")]]
|
|
73
|
+
]
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# {https://adwords.google.com/api/adwords/v4}setKeywordListMaxCpc
|
|
77
|
+
class SetKeywordListMaxCpc
|
|
78
|
+
@@schema_type = "setKeywordListMaxCpc"
|
|
79
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}setKeywordListMaxCpcResponse
|
|
99
|
+
class SetKeywordListMaxCpcResponse
|
|
100
|
+
@@schema_type = "setKeywordListMaxCpcResponse"
|
|
101
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
102
|
+
@@schema_qualified = "true"
|
|
103
|
+
@@schema_element = []
|
|
104
|
+
|
|
105
|
+
def initialize
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# {https://adwords.google.com/api/adwords/v4}setKeywordListSingleMaxCpc
|
|
110
|
+
class SetKeywordListSingleMaxCpc
|
|
111
|
+
@@schema_type = "setKeywordListSingleMaxCpc"
|
|
112
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}setKeywordListSingleMaxCpcResponse
|
|
132
|
+
class SetKeywordListSingleMaxCpcResponse
|
|
133
|
+
@@schema_type = "setKeywordListSingleMaxCpcResponse"
|
|
134
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
135
|
+
@@schema_qualified = "true"
|
|
136
|
+
@@schema_element = []
|
|
137
|
+
|
|
138
|
+
def initialize
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# {https://adwords.google.com/api/adwords/v4}updateKeyword
|
|
143
|
+
class UpdateKeyword
|
|
144
|
+
@@schema_type = "updateKeyword"
|
|
145
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}updateKeywordResponse
|
|
159
|
+
class UpdateKeywordResponse
|
|
160
|
+
@@schema_type = "updateKeywordResponse"
|
|
161
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
162
|
+
@@schema_qualified = "true"
|
|
163
|
+
@@schema_element = []
|
|
164
|
+
|
|
165
|
+
def initialize
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# {https://adwords.google.com/api/adwords/v4}updateKeywordList
|
|
170
|
+
class UpdateKeywordList < ::Array
|
|
171
|
+
@@schema_element = [
|
|
172
|
+
["keywords", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v4", "keywords")]]
|
|
173
|
+
]
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# {https://adwords.google.com/api/adwords/v4}updateKeywordListResponse
|
|
177
|
+
class UpdateKeywordListResponse
|
|
178
|
+
@@schema_type = "updateKeywordListResponse"
|
|
179
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
180
|
+
@@schema_qualified = "true"
|
|
181
|
+
@@schema_element = []
|
|
182
|
+
|
|
183
|
+
def initialize
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# {https://adwords.google.com/api/adwords/v4}addKeyword
|
|
188
|
+
class AddKeyword
|
|
189
|
+
@@schema_type = "addKeyword"
|
|
190
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}addKeywordResponse
|
|
204
|
+
class AddKeywordResponse
|
|
205
|
+
@@schema_type = "addKeywordResponse"
|
|
206
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}addKeywordList
|
|
220
|
+
class AddKeywordList
|
|
221
|
+
@@schema_type = "addKeywordList"
|
|
222
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}addKeywordListResponse
|
|
239
|
+
class AddKeywordListResponse < ::Array
|
|
240
|
+
@@schema_element = [
|
|
241
|
+
["addKeywordListReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v4", "addKeywordListReturn")]]
|
|
242
|
+
]
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# {https://adwords.google.com/api/adwords/v4}removeKeywordList
|
|
246
|
+
class RemoveKeywordList
|
|
247
|
+
@@schema_type = "removeKeywordList"
|
|
248
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}removeKeywordListResponse
|
|
265
|
+
class RemoveKeywordListResponse
|
|
266
|
+
@@schema_type = "removeKeywordListResponse"
|
|
267
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
268
|
+
@@schema_qualified = "true"
|
|
269
|
+
@@schema_element = []
|
|
270
|
+
|
|
271
|
+
def initialize
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# {https://adwords.google.com/api/adwords/v4}removeKeyword
|
|
276
|
+
class RemoveKeyword
|
|
277
|
+
@@schema_type = "removeKeyword"
|
|
278
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}removeKeywordResponse
|
|
295
|
+
class RemoveKeywordResponse
|
|
296
|
+
@@schema_type = "removeKeywordResponse"
|
|
297
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
298
|
+
@@schema_qualified = "true"
|
|
299
|
+
@@schema_element = []
|
|
300
|
+
|
|
301
|
+
def initialize
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# {https://adwords.google.com/api/adwords/v4}getKeywordStats
|
|
306
|
+
class GetKeywordStats
|
|
307
|
+
@@schema_type = "getKeywordStats"
|
|
308
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4", "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/v4}getKeywordStatsResponse
|
|
338
|
+
class GetKeywordStatsResponse < ::Array
|
|
339
|
+
@@schema_element = [
|
|
340
|
+
["getKeywordStatsReturn", ["StatsRecord[]", XSD::QName.new("https://adwords.google.com/api/adwords/v4", "getKeywordStatsReturn")]]
|
|
341
|
+
]
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# {https://adwords.google.com/api/adwords/v4}Criterion
|
|
345
|
+
class Criterion
|
|
346
|
+
@@schema_type = "Criterion"
|
|
347
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}Keyword
|
|
381
|
+
class Keyword
|
|
382
|
+
@@schema_type = "Keyword"
|
|
383
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}ApiException
|
|
429
|
+
class ApiException
|
|
430
|
+
@@schema_type = "ApiException"
|
|
431
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}AdPolicyViolation
|
|
456
|
+
class AdPolicyViolation
|
|
457
|
+
@@schema_type = "AdPolicyViolation"
|
|
458
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}StatsRecord
|
|
489
|
+
class StatsRecord
|
|
490
|
+
@@schema_type = "StatsRecord"
|
|
491
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}CriterionStatus
|
|
522
|
+
class CriterionStatus < ::String
|
|
523
|
+
@@schema_type = "CriterionStatus"
|
|
524
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
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/v4}KeywordType
|
|
535
|
+
class KeywordType < ::String
|
|
536
|
+
@@schema_type = "KeywordType"
|
|
537
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v4"
|
|
538
|
+
|
|
539
|
+
Broad = KeywordType.new("Broad")
|
|
540
|
+
Exact = KeywordType.new("Exact")
|
|
541
|
+
Phrase = KeywordType.new("Phrase")
|
|
542
|
+
end
|
|
543
|
+
end
|