adwords4r 0.6 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.txt +14 -11
- data/Rakefile +2 -1
- data/Readme.txt +5 -0
- data/adwords.properties +3 -3
- data/lib/adwords4r/services.rb +2 -2
- data/lib/adwords4r/v6/AccountService.rb +853 -0
- data/lib/adwords4r/v6/AccountServiceDriver.rb +188 -0
- data/lib/adwords4r/v6/AdGroupService.rb +352 -0
- data/lib/adwords4r/v6/AdGroupServiceDriver.rb +97 -0
- data/lib/adwords4r/v6/CampaignService.rb +563 -0
- data/lib/adwords4r/v6/CampaignServiceDriver.rb +111 -0
- data/lib/adwords4r/v6/CreativeService.rb +472 -0
- data/lib/adwords4r/v6/CreativeServiceDriver.rb +111 -0
- data/lib/adwords4r/v6/CriterionService.rb +447 -0
- data/lib/adwords4r/v6/CriterionServiceDriver.rb +97 -0
- data/lib/adwords4r/v6/InfoService.rb +343 -0
- data/lib/adwords4r/v6/InfoServiceDriver.rb +97 -0
- data/lib/adwords4r/v6/KeywordToolService.rb +263 -0
- data/lib/adwords4r/v6/KeywordToolServiceDriver.rb +55 -0
- data/lib/adwords4r/v6/ReportService.rb +789 -0
- data/lib/adwords4r/v6/ReportServiceDriver.rb +83 -0
- data/lib/adwords4r/v6/TrafficEstimatorService.rb +310 -0
- data/lib/adwords4r/v6/TrafficEstimatorServiceDriver.rb +62 -0
- metadata +21 -4
- data/examples/sandbox.rb +0 -30
@@ -0,0 +1,97 @@
|
|
1
|
+
module AdWords
|
2
|
+
require 'adwords4r/v6/AdGroupService'
|
3
|
+
|
4
|
+
require 'soap/rpc/driver'
|
5
|
+
|
6
|
+
class AdGroupService < ::SOAP::RPC::Driver
|
7
|
+
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v6/AdGroupService"
|
8
|
+
MappingRegistry = ::SOAP::Mapping::Registry.new
|
9
|
+
|
10
|
+
Methods = [
|
11
|
+
[ "",
|
12
|
+
"getAdGroupList",
|
13
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getAdGroupList"], true],
|
14
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getAdGroupListResponse"], true] ],
|
15
|
+
{ :request_style => :document, :request_use => :literal,
|
16
|
+
:response_style => :document, :response_use => :literal }
|
17
|
+
],
|
18
|
+
[ "",
|
19
|
+
"getAllAdGroups",
|
20
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getAllAdGroups"], true],
|
21
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getAllAdGroupsResponse"], true] ],
|
22
|
+
{ :request_style => :document, :request_use => :literal,
|
23
|
+
:response_style => :document, :response_use => :literal }
|
24
|
+
],
|
25
|
+
[ "",
|
26
|
+
"getAdGroup",
|
27
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getAdGroup"], true],
|
28
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getAdGroupResponse"], true] ],
|
29
|
+
{ :request_style => :document, :request_use => :literal,
|
30
|
+
:response_style => :document, :response_use => :literal }
|
31
|
+
],
|
32
|
+
[ "",
|
33
|
+
"addAdGroup",
|
34
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "addAdGroup"], true],
|
35
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "addAdGroupResponse"], true] ],
|
36
|
+
{ :request_style => :document, :request_use => :literal,
|
37
|
+
:response_style => :document, :response_use => :literal }
|
38
|
+
],
|
39
|
+
[ "",
|
40
|
+
"addAdGroupList",
|
41
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "addAdGroupList"], true],
|
42
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "addAdGroupListResponse"], true] ],
|
43
|
+
{ :request_style => :document, :request_use => :literal,
|
44
|
+
:response_style => :document, :response_use => :literal }
|
45
|
+
],
|
46
|
+
[ "",
|
47
|
+
"updateAdGroup",
|
48
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "updateAdGroup"], true],
|
49
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "updateAdGroupResponse"], true] ],
|
50
|
+
{ :request_style => :document, :request_use => :literal,
|
51
|
+
:response_style => :document, :response_use => :literal }
|
52
|
+
],
|
53
|
+
[ "",
|
54
|
+
"updateAdGroupList",
|
55
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "updateAdGroupList"], true],
|
56
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "updateAdGroupListResponse"], true] ],
|
57
|
+
{ :request_style => :document, :request_use => :literal,
|
58
|
+
:response_style => :document, :response_use => :literal }
|
59
|
+
],
|
60
|
+
[ "",
|
61
|
+
"getAdGroupStats",
|
62
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getAdGroupStats"], true],
|
63
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v6", "getAdGroupStatsResponse"], 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,563 @@
|
|
1
|
+
module AdWords
|
2
|
+
require 'xsd/qname'
|
3
|
+
|
4
|
+
# {https://adwords.google.com/api/adwords/v6}getCampaign
|
5
|
+
class GetCampaign
|
6
|
+
@@schema_type = "getCampaign"
|
7
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
8
|
+
@@schema_qualified = "true"
|
9
|
+
@@schema_element = [
|
10
|
+
["id", "SOAP::SOAPInt"]
|
11
|
+
]
|
12
|
+
|
13
|
+
attr_accessor :id
|
14
|
+
|
15
|
+
def initialize(id = nil)
|
16
|
+
@id = id
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
# {https://adwords.google.com/api/adwords/v6}getCampaignResponse
|
21
|
+
class GetCampaignResponse
|
22
|
+
@@schema_type = "getCampaignResponse"
|
23
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
24
|
+
@@schema_qualified = "true"
|
25
|
+
@@schema_element = [
|
26
|
+
["getCampaignReturn", "Campaign"]
|
27
|
+
]
|
28
|
+
|
29
|
+
attr_accessor :getCampaignReturn
|
30
|
+
|
31
|
+
def initialize(getCampaignReturn = nil)
|
32
|
+
@getCampaignReturn = getCampaignReturn
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# {https://adwords.google.com/api/adwords/v6}getCampaignList
|
37
|
+
class GetCampaignList < ::Array
|
38
|
+
@@schema_element = [
|
39
|
+
["ids", ["SOAP::SOAPInt[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "ids")]]
|
40
|
+
]
|
41
|
+
end
|
42
|
+
|
43
|
+
# {https://adwords.google.com/api/adwords/v6}getCampaignListResponse
|
44
|
+
class GetCampaignListResponse < ::Array
|
45
|
+
@@schema_element = [
|
46
|
+
["getCampaignListReturn", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "getCampaignListReturn")]]
|
47
|
+
]
|
48
|
+
end
|
49
|
+
|
50
|
+
# {https://adwords.google.com/api/adwords/v6}getAllAdWordsCampaigns
|
51
|
+
class GetAllAdWordsCampaigns
|
52
|
+
@@schema_type = "getAllAdWordsCampaigns"
|
53
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
54
|
+
@@schema_qualified = "true"
|
55
|
+
@@schema_element = [
|
56
|
+
["dummy", "SOAP::SOAPInt"]
|
57
|
+
]
|
58
|
+
|
59
|
+
attr_accessor :dummy
|
60
|
+
|
61
|
+
def initialize(dummy = nil)
|
62
|
+
@dummy = dummy
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# {https://adwords.google.com/api/adwords/v6}getAllAdWordsCampaignsResponse
|
67
|
+
class GetAllAdWordsCampaignsResponse < ::Array
|
68
|
+
@@schema_element = [
|
69
|
+
["getAllAdWordsCampaignsReturn", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "getAllAdWordsCampaignsReturn")]]
|
70
|
+
]
|
71
|
+
end
|
72
|
+
|
73
|
+
# {https://adwords.google.com/api/adwords/v6}addCampaign
|
74
|
+
class AddCampaign
|
75
|
+
@@schema_type = "addCampaign"
|
76
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
77
|
+
@@schema_qualified = "true"
|
78
|
+
@@schema_element = [
|
79
|
+
["campaign", "Campaign"]
|
80
|
+
]
|
81
|
+
|
82
|
+
attr_accessor :campaign
|
83
|
+
|
84
|
+
def initialize(campaign = nil)
|
85
|
+
@campaign = campaign
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# {https://adwords.google.com/api/adwords/v6}addCampaignResponse
|
90
|
+
class AddCampaignResponse
|
91
|
+
@@schema_type = "addCampaignResponse"
|
92
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
93
|
+
@@schema_qualified = "true"
|
94
|
+
@@schema_element = [
|
95
|
+
["addCampaignReturn", "Campaign"]
|
96
|
+
]
|
97
|
+
|
98
|
+
attr_accessor :addCampaignReturn
|
99
|
+
|
100
|
+
def initialize(addCampaignReturn = nil)
|
101
|
+
@addCampaignReturn = addCampaignReturn
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# {https://adwords.google.com/api/adwords/v6}addCampaignList
|
106
|
+
class AddCampaignList < ::Array
|
107
|
+
@@schema_element = [
|
108
|
+
["campaigns", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "campaigns")]]
|
109
|
+
]
|
110
|
+
end
|
111
|
+
|
112
|
+
# {https://adwords.google.com/api/adwords/v6}addCampaignListResponse
|
113
|
+
class AddCampaignListResponse < ::Array
|
114
|
+
@@schema_element = [
|
115
|
+
["addCampaignListReturn", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "addCampaignListReturn")]]
|
116
|
+
]
|
117
|
+
end
|
118
|
+
|
119
|
+
# {https://adwords.google.com/api/adwords/v6}updateCampaign
|
120
|
+
class UpdateCampaign
|
121
|
+
@@schema_type = "updateCampaign"
|
122
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
123
|
+
@@schema_qualified = "true"
|
124
|
+
@@schema_element = [
|
125
|
+
["campaign", "Campaign"]
|
126
|
+
]
|
127
|
+
|
128
|
+
attr_accessor :campaign
|
129
|
+
|
130
|
+
def initialize(campaign = nil)
|
131
|
+
@campaign = campaign
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# {https://adwords.google.com/api/adwords/v6}updateCampaignResponse
|
136
|
+
class UpdateCampaignResponse
|
137
|
+
@@schema_type = "updateCampaignResponse"
|
138
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
139
|
+
@@schema_qualified = "true"
|
140
|
+
@@schema_element = []
|
141
|
+
|
142
|
+
def initialize
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# {https://adwords.google.com/api/adwords/v6}updateCampaignList
|
147
|
+
class UpdateCampaignList < ::Array
|
148
|
+
@@schema_element = [
|
149
|
+
["campaigns", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "campaigns")]]
|
150
|
+
]
|
151
|
+
end
|
152
|
+
|
153
|
+
# {https://adwords.google.com/api/adwords/v6}updateCampaignListResponse
|
154
|
+
class UpdateCampaignListResponse
|
155
|
+
@@schema_type = "updateCampaignListResponse"
|
156
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
157
|
+
@@schema_qualified = "true"
|
158
|
+
@@schema_element = []
|
159
|
+
|
160
|
+
def initialize
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# {https://adwords.google.com/api/adwords/v6}getOptimizeAdServing
|
165
|
+
class GetOptimizeAdServing
|
166
|
+
@@schema_type = "getOptimizeAdServing"
|
167
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
168
|
+
@@schema_qualified = "true"
|
169
|
+
@@schema_element = [
|
170
|
+
["campaignId", "SOAP::SOAPInt"]
|
171
|
+
]
|
172
|
+
|
173
|
+
attr_accessor :campaignId
|
174
|
+
|
175
|
+
def initialize(campaignId = nil)
|
176
|
+
@campaignId = campaignId
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# {https://adwords.google.com/api/adwords/v6}getOptimizeAdServingResponse
|
181
|
+
class GetOptimizeAdServingResponse
|
182
|
+
@@schema_type = "getOptimizeAdServingResponse"
|
183
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
184
|
+
@@schema_qualified = "true"
|
185
|
+
@@schema_element = [
|
186
|
+
["getOptimizeAdServingReturn", "SOAP::SOAPBoolean"]
|
187
|
+
]
|
188
|
+
|
189
|
+
attr_accessor :getOptimizeAdServingReturn
|
190
|
+
|
191
|
+
def initialize(getOptimizeAdServingReturn = nil)
|
192
|
+
@getOptimizeAdServingReturn = getOptimizeAdServingReturn
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# {https://adwords.google.com/api/adwords/v6}setOptimizeAdServing
|
197
|
+
class SetOptimizeAdServing
|
198
|
+
@@schema_type = "setOptimizeAdServing"
|
199
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
200
|
+
@@schema_qualified = "true"
|
201
|
+
@@schema_element = [
|
202
|
+
["campaignId", "SOAP::SOAPInt"],
|
203
|
+
["enable", "SOAP::SOAPBoolean"]
|
204
|
+
]
|
205
|
+
|
206
|
+
attr_accessor :campaignId
|
207
|
+
attr_accessor :enable
|
208
|
+
|
209
|
+
def initialize(campaignId = nil, enable = nil)
|
210
|
+
@campaignId = campaignId
|
211
|
+
@enable = enable
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
# {https://adwords.google.com/api/adwords/v6}setOptimizeAdServingResponse
|
216
|
+
class SetOptimizeAdServingResponse
|
217
|
+
@@schema_type = "setOptimizeAdServingResponse"
|
218
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
219
|
+
@@schema_qualified = "true"
|
220
|
+
@@schema_element = []
|
221
|
+
|
222
|
+
def initialize
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
# {https://adwords.google.com/api/adwords/v6}getCampaignStats
|
227
|
+
class GetCampaignStats
|
228
|
+
@@schema_type = "getCampaignStats"
|
229
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
230
|
+
@@schema_qualified = "true"
|
231
|
+
@@schema_element = [
|
232
|
+
["campaignIds", "SOAP::SOAPInt[]"],
|
233
|
+
["startDay", "SOAP::SOAPDate"],
|
234
|
+
["endDay", "SOAP::SOAPDate"],
|
235
|
+
["inPST", "SOAP::SOAPBoolean"]
|
236
|
+
]
|
237
|
+
|
238
|
+
attr_accessor :campaignIds
|
239
|
+
attr_accessor :startDay
|
240
|
+
attr_accessor :endDay
|
241
|
+
attr_accessor :inPST
|
242
|
+
|
243
|
+
def initialize(campaignIds = [], startDay = nil, endDay = nil, inPST = nil)
|
244
|
+
@campaignIds = campaignIds
|
245
|
+
@startDay = startDay
|
246
|
+
@endDay = endDay
|
247
|
+
@inPST = inPST
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
# {https://adwords.google.com/api/adwords/v6}getCampaignStatsResponse
|
252
|
+
class GetCampaignStatsResponse < ::Array
|
253
|
+
@@schema_element = [
|
254
|
+
["getCampaignStatsReturn", ["StatsRecord[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "getCampaignStatsReturn")]]
|
255
|
+
]
|
256
|
+
end
|
257
|
+
|
258
|
+
# {https://adwords.google.com/api/adwords/v6}Criterion
|
259
|
+
class Criterion
|
260
|
+
@@schema_type = "Criterion"
|
261
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
262
|
+
@@schema_element = [
|
263
|
+
["adGroupId", "SOAP::SOAPInt"],
|
264
|
+
["criterionType", "SOAP::SOAPString"],
|
265
|
+
["destinationUrl", "SOAP::SOAPString"],
|
266
|
+
["exemptionRequest", "SOAP::SOAPString"],
|
267
|
+
["id", "SOAP::SOAPLong"],
|
268
|
+
["language", "SOAP::SOAPString"],
|
269
|
+
["negative", "SOAP::SOAPBoolean"],
|
270
|
+
["status", "SOAP::SOAPString"]
|
271
|
+
]
|
272
|
+
|
273
|
+
attr_accessor :adGroupId
|
274
|
+
attr_accessor :criterionType
|
275
|
+
attr_accessor :destinationUrl
|
276
|
+
attr_accessor :exemptionRequest
|
277
|
+
attr_accessor :id
|
278
|
+
attr_accessor :language
|
279
|
+
attr_accessor :negative
|
280
|
+
attr_accessor :status
|
281
|
+
|
282
|
+
def initialize(adGroupId = nil, criterionType = nil, destinationUrl = nil, exemptionRequest = nil, id = nil, language = nil, negative = nil, status = nil)
|
283
|
+
@adGroupId = adGroupId
|
284
|
+
@criterionType = criterionType
|
285
|
+
@destinationUrl = destinationUrl
|
286
|
+
@exemptionRequest = exemptionRequest
|
287
|
+
@id = id
|
288
|
+
@language = language
|
289
|
+
@negative = negative
|
290
|
+
@status = status
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
# {https://adwords.google.com/api/adwords/v6}Keyword
|
295
|
+
class Keyword
|
296
|
+
@@schema_type = "Keyword"
|
297
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
298
|
+
@@schema_element = [
|
299
|
+
["adGroupId", "SOAP::SOAPInt"],
|
300
|
+
["criterionType", "SOAP::SOAPString"],
|
301
|
+
["destinationUrl", "SOAP::SOAPString"],
|
302
|
+
["exemptionRequest", "SOAP::SOAPString"],
|
303
|
+
["id", "SOAP::SOAPLong"],
|
304
|
+
["language", "SOAP::SOAPString"],
|
305
|
+
["negative", "SOAP::SOAPBoolean"],
|
306
|
+
["status", "SOAP::SOAPString"],
|
307
|
+
["maxCpc", "SOAP::SOAPLong"],
|
308
|
+
["minCpc", "SOAP::SOAPLong"],
|
309
|
+
["text", "SOAP::SOAPString"],
|
310
|
+
["type", "SOAP::SOAPString"]
|
311
|
+
]
|
312
|
+
|
313
|
+
attr_accessor :adGroupId
|
314
|
+
attr_accessor :criterionType
|
315
|
+
attr_accessor :destinationUrl
|
316
|
+
attr_accessor :exemptionRequest
|
317
|
+
attr_accessor :id
|
318
|
+
attr_accessor :language
|
319
|
+
attr_accessor :negative
|
320
|
+
attr_accessor :status
|
321
|
+
attr_accessor :maxCpc
|
322
|
+
attr_accessor :minCpc
|
323
|
+
attr_accessor :text
|
324
|
+
attr_accessor :type
|
325
|
+
|
326
|
+
def initialize(adGroupId = nil, criterionType = nil, destinationUrl = nil, exemptionRequest = nil, id = nil, language = nil, negative = nil, status = nil, maxCpc = nil, minCpc = nil, text = nil, type = nil)
|
327
|
+
@adGroupId = adGroupId
|
328
|
+
@criterionType = criterionType
|
329
|
+
@destinationUrl = destinationUrl
|
330
|
+
@exemptionRequest = exemptionRequest
|
331
|
+
@id = id
|
332
|
+
@language = language
|
333
|
+
@negative = negative
|
334
|
+
@status = status
|
335
|
+
@maxCpc = maxCpc
|
336
|
+
@minCpc = minCpc
|
337
|
+
@text = text
|
338
|
+
@type = type
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
# {https://adwords.google.com/api/adwords/v6}LanguageTarget
|
343
|
+
class LanguageTarget < ::Array
|
344
|
+
@@schema_element = [
|
345
|
+
["languages", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "languages")]]
|
346
|
+
]
|
347
|
+
end
|
348
|
+
|
349
|
+
# {https://adwords.google.com/api/adwords/v6}GeoTarget
|
350
|
+
class GeoTarget
|
351
|
+
@@schema_type = "GeoTarget"
|
352
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
353
|
+
@@schema_element = [
|
354
|
+
["cities", "SOAP::SOAPString[]"],
|
355
|
+
["countries", "SOAP::SOAPString[]"],
|
356
|
+
["metros", "SOAP::SOAPString[]"],
|
357
|
+
["regions", "SOAP::SOAPString[]"]
|
358
|
+
]
|
359
|
+
|
360
|
+
attr_accessor :cities
|
361
|
+
attr_accessor :countries
|
362
|
+
attr_accessor :metros
|
363
|
+
attr_accessor :regions
|
364
|
+
|
365
|
+
def initialize(cities = [], countries = [], metros = [], regions = [])
|
366
|
+
@cities = cities
|
367
|
+
@countries = countries
|
368
|
+
@metros = metros
|
369
|
+
@regions = regions
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
373
|
+
# {https://adwords.google.com/api/adwords/v6}NetworkTarget
|
374
|
+
class NetworkTarget < ::Array
|
375
|
+
@@schema_element = [
|
376
|
+
["networkTypes", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/v6", "networkTypes")]]
|
377
|
+
]
|
378
|
+
end
|
379
|
+
|
380
|
+
# {https://adwords.google.com/api/adwords/v6}Campaign
|
381
|
+
class Campaign
|
382
|
+
@@schema_type = "Campaign"
|
383
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
384
|
+
@@schema_element = [
|
385
|
+
["dailyBudget", "SOAP::SOAPLong"],
|
386
|
+
["enableSeparateContentBids", "SOAP::SOAPBoolean"],
|
387
|
+
["endDay", "SOAP::SOAPDate"],
|
388
|
+
["geoTargeting", "GeoTarget"],
|
389
|
+
["id", "SOAP::SOAPInt"],
|
390
|
+
["languageTargeting", "LanguageTarget"],
|
391
|
+
["name", "SOAP::SOAPString"],
|
392
|
+
["networkTargeting", "NetworkTarget"],
|
393
|
+
["startDay", "SOAP::SOAPDate"],
|
394
|
+
["status", "SOAP::SOAPString"]
|
395
|
+
]
|
396
|
+
|
397
|
+
attr_accessor :dailyBudget
|
398
|
+
attr_accessor :enableSeparateContentBids
|
399
|
+
attr_accessor :endDay
|
400
|
+
attr_accessor :geoTargeting
|
401
|
+
attr_accessor :id
|
402
|
+
attr_accessor :languageTargeting
|
403
|
+
attr_accessor :name
|
404
|
+
attr_accessor :networkTargeting
|
405
|
+
attr_accessor :startDay
|
406
|
+
attr_accessor :status
|
407
|
+
|
408
|
+
def initialize(dailyBudget = nil, enableSeparateContentBids = nil, endDay = nil, geoTargeting = nil, id = nil, languageTargeting = nil, name = nil, networkTargeting = nil, startDay = nil, status = nil)
|
409
|
+
@dailyBudget = dailyBudget
|
410
|
+
@enableSeparateContentBids = enableSeparateContentBids
|
411
|
+
@endDay = endDay
|
412
|
+
@geoTargeting = geoTargeting
|
413
|
+
@id = id
|
414
|
+
@languageTargeting = languageTargeting
|
415
|
+
@name = name
|
416
|
+
@networkTargeting = networkTargeting
|
417
|
+
@startDay = startDay
|
418
|
+
@status = status
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
# {https://adwords.google.com/api/adwords/v6}ApiException
|
423
|
+
class ApiException
|
424
|
+
@@schema_type = "ApiException"
|
425
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
426
|
+
@@schema_element = [
|
427
|
+
["code", "SOAP::SOAPInt"],
|
428
|
+
["internal", "SOAP::SOAPBoolean"],
|
429
|
+
["message", "SOAP::SOAPString"],
|
430
|
+
["trigger", "SOAP::SOAPString"],
|
431
|
+
["errors", "ApiError[]"]
|
432
|
+
]
|
433
|
+
|
434
|
+
attr_accessor :code
|
435
|
+
attr_accessor :internal
|
436
|
+
attr_accessor :message
|
437
|
+
attr_accessor :trigger
|
438
|
+
attr_accessor :errors
|
439
|
+
|
440
|
+
def initialize(code = nil, internal = nil, message = nil, trigger = nil, errors = [])
|
441
|
+
@code = code
|
442
|
+
@internal = internal
|
443
|
+
@message = message
|
444
|
+
@trigger = trigger
|
445
|
+
@errors = errors
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
# {https://adwords.google.com/api/adwords/v6}ApiError
|
450
|
+
class ApiError
|
451
|
+
@@schema_type = "ApiError"
|
452
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
453
|
+
@@schema_element = [
|
454
|
+
["index", "SOAP::SOAPInt"],
|
455
|
+
["field", "SOAP::SOAPString"],
|
456
|
+
["textIndex", "SOAP::SOAPInt"],
|
457
|
+
["textLength", "SOAP::SOAPInt"],
|
458
|
+
["trigger", "SOAP::SOAPString"],
|
459
|
+
["code", "SOAP::SOAPInt"],
|
460
|
+
["isExemptable", "SOAP::SOAPBoolean"],
|
461
|
+
["detail", "SOAP::SOAPString"]
|
462
|
+
]
|
463
|
+
|
464
|
+
attr_accessor :index
|
465
|
+
attr_accessor :field
|
466
|
+
attr_accessor :textIndex
|
467
|
+
attr_accessor :textLength
|
468
|
+
attr_accessor :trigger
|
469
|
+
attr_accessor :code
|
470
|
+
attr_accessor :isExemptable
|
471
|
+
attr_accessor :detail
|
472
|
+
|
473
|
+
def initialize(index = nil, field = nil, textIndex = nil, textLength = nil, trigger = nil, code = nil, isExemptable = nil, detail = nil)
|
474
|
+
@index = index
|
475
|
+
@field = field
|
476
|
+
@textIndex = textIndex
|
477
|
+
@textLength = textLength
|
478
|
+
@trigger = trigger
|
479
|
+
@code = code
|
480
|
+
@isExemptable = isExemptable
|
481
|
+
@detail = detail
|
482
|
+
end
|
483
|
+
end
|
484
|
+
|
485
|
+
# {https://adwords.google.com/api/adwords/v6}StatsRecord
|
486
|
+
class StatsRecord
|
487
|
+
@@schema_type = "StatsRecord"
|
488
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
489
|
+
@@schema_element = [
|
490
|
+
["averagePosition", "SOAP::SOAPDouble"],
|
491
|
+
["clicks", "SOAP::SOAPLong"],
|
492
|
+
["conversionRate", "SOAP::SOAPDouble"],
|
493
|
+
["conversions", "SOAP::SOAPLong"],
|
494
|
+
["cost", "SOAP::SOAPLong"],
|
495
|
+
["id", "SOAP::SOAPLong"],
|
496
|
+
["impressions", "SOAP::SOAPLong"]
|
497
|
+
]
|
498
|
+
|
499
|
+
attr_accessor :averagePosition
|
500
|
+
attr_accessor :clicks
|
501
|
+
attr_accessor :conversionRate
|
502
|
+
attr_accessor :conversions
|
503
|
+
attr_accessor :cost
|
504
|
+
attr_accessor :id
|
505
|
+
attr_accessor :impressions
|
506
|
+
|
507
|
+
def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
|
508
|
+
@averagePosition = averagePosition
|
509
|
+
@clicks = clicks
|
510
|
+
@conversionRate = conversionRate
|
511
|
+
@conversions = conversions
|
512
|
+
@cost = cost
|
513
|
+
@id = id
|
514
|
+
@impressions = impressions
|
515
|
+
end
|
516
|
+
end
|
517
|
+
|
518
|
+
# {https://adwords.google.com/api/adwords/v6}CriterionStatus
|
519
|
+
class CriterionStatus < ::String
|
520
|
+
@@schema_type = "CriterionStatus"
|
521
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
522
|
+
|
523
|
+
Deleted = CriterionStatus.new("Deleted")
|
524
|
+
Disabled = CriterionStatus.new("Disabled")
|
525
|
+
Disapproved = CriterionStatus.new("Disapproved")
|
526
|
+
InTrial = CriterionStatus.new("InTrial")
|
527
|
+
Normal = CriterionStatus.new("Normal")
|
528
|
+
OnHold = CriterionStatus.new("OnHold")
|
529
|
+
end
|
530
|
+
|
531
|
+
# {https://adwords.google.com/api/adwords/v6}KeywordType
|
532
|
+
class KeywordType < ::String
|
533
|
+
@@schema_type = "KeywordType"
|
534
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
535
|
+
|
536
|
+
Broad = KeywordType.new("Broad")
|
537
|
+
Exact = KeywordType.new("Exact")
|
538
|
+
Phrase = KeywordType.new("Phrase")
|
539
|
+
end
|
540
|
+
|
541
|
+
# {https://adwords.google.com/api/adwords/v6}CampaignStatus
|
542
|
+
class CampaignStatus < ::String
|
543
|
+
@@schema_type = "CampaignStatus"
|
544
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
545
|
+
|
546
|
+
Active = CampaignStatus.new("Active")
|
547
|
+
Deleted = CampaignStatus.new("Deleted")
|
548
|
+
Ended = CampaignStatus.new("Ended")
|
549
|
+
Paused = CampaignStatus.new("Paused")
|
550
|
+
Pending = CampaignStatus.new("Pending")
|
551
|
+
Suspended = CampaignStatus.new("Suspended")
|
552
|
+
end
|
553
|
+
|
554
|
+
# {https://adwords.google.com/api/adwords/v6}NetworkType
|
555
|
+
class NetworkType < ::String
|
556
|
+
@@schema_type = "NetworkType"
|
557
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v6"
|
558
|
+
|
559
|
+
ContentNetwork = NetworkType.new("ContentNetwork")
|
560
|
+
GoogleSearch = NetworkType.new("GoogleSearch")
|
561
|
+
SearchNetwork = NetworkType.new("SearchNetwork")
|
562
|
+
end
|
563
|
+
end
|