adwords4r 13.0.1 → 15.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Authors.txt +2 -1
- data/ChangeLog.txt +28 -0
- data/Copying.txt +1 -1
- data/{Licence.txt → License.txt} +1 -1
- data/Rakefile +49 -54
- data/Readme.txt +78 -24
- data/adwords.properties +1 -1
- data/examples/account_info.rb +20 -26
- data/examples/create_all.rb +51 -53
- data/examples/create_all_v200902.rb +204 -0
- data/examples/keyword_suggestions.rb +35 -38
- data/examples/multiple_versions.rb +167 -0
- data/examples/reports.rb +37 -75
- data/lib/adwords4r.rb +123 -123
- data/lib/adwords4r/adwordslogger.rb +56 -0
- data/lib/adwords4r/apiextensions.rb +79 -0
- data/lib/adwords4r/authtoken.rb +56 -0
- data/lib/adwords4r/credentials.rb +115 -19
- data/lib/adwords4r/services.rb +139 -14
- data/lib/adwords4r/soap4rpatches.rb +129 -0
- data/lib/adwords4r/v13/AccountService.rb +11 -11
- data/lib/adwords4r/v13/AccountServiceDriver.rb +7 -5
- data/lib/adwords4r/v13/AccountServiceMappingRegistry.rb +56 -56
- data/lib/adwords4r/v13/AdGroupService.rb +9 -9
- data/lib/adwords4r/v13/AdGroupServiceDriver.rb +11 -9
- data/lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb +47 -47
- data/lib/adwords4r/v13/AdService.rb +37 -37
- data/lib/adwords4r/v13/AdServiceDriver.rb +12 -10
- data/lib/adwords4r/v13/AdServiceMappingRegistry.rb +148 -148
- data/lib/adwords4r/v13/CampaignService.rb +46 -25
- data/lib/adwords4r/v13/CampaignServiceDriver.rb +23 -13
- data/lib/adwords4r/v13/CampaignServiceMappingRegistry.rb +169 -135
- data/lib/adwords4r/v13/CriterionService.rb +19 -19
- data/lib/adwords4r/v13/CriterionServiceDriver.rb +11 -9
- data/lib/adwords4r/v13/CriterionServiceMappingRegistry.rb +90 -90
- data/lib/adwords4r/v13/InfoService.rb +3 -3
- data/lib/adwords4r/v13/InfoServiceDriver.rb +10 -8
- data/lib/adwords4r/v13/InfoServiceMappingRegistry.rb +29 -29
- data/lib/adwords4r/v13/KeywordToolService.rb +10 -10
- data/lib/adwords4r/v13/KeywordToolServiceDriver.rb +4 -2
- data/lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb +37 -37
- data/lib/adwords4r/v13/ReportService.rb +13 -13
- data/lib/adwords4r/v13/ReportServiceDriver.rb +9 -7
- data/lib/adwords4r/v13/ReportServiceMappingRegistry.rb +54 -54
- data/lib/adwords4r/v13/SiteSuggestionService.rb +15 -15
- data/lib/adwords4r/v13/SiteSuggestionServiceDriver.rb +6 -4
- data/lib/adwords4r/v13/SiteSuggestionServiceMappingRegistry.rb +57 -57
- data/lib/adwords4r/v13/TrafficEstimatorService.rb +17 -17
- data/lib/adwords4r/v13/TrafficEstimatorServiceDriver.rb +6 -4
- data/lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb +96 -96
- data/lib/adwords4r/v200902/AdGroupAdService.rb +2021 -0
- data/lib/adwords4r/v200902/AdGroupAdServiceDriver.rb +63 -0
- data/lib/adwords4r/v200902/AdGroupAdServiceMappingRegistry.rb +2234 -0
- data/lib/adwords4r/v200902/AdGroupCriterionService.rb +1209 -0
- data/lib/adwords4r/v200902/AdGroupCriterionServiceDriver.rb +63 -0
- data/lib/adwords4r/v200902/AdGroupCriterionServiceMappingRegistry.rb +1434 -0
- data/lib/adwords4r/v200902/AdGroupService.rb +968 -0
- data/lib/adwords4r/{v12/KeywordToolServiceDriver.rb → v200902/AdGroupServiceDriver.rb} +15 -13
- data/lib/adwords4r/v200902/AdGroupServiceMappingRegistry.rb +1114 -0
- data/lib/adwords4r/v200902/CampaignCriterionService.rb +741 -0
- data/lib/adwords4r/v200902/CampaignCriterionServiceDriver.rb +63 -0
- data/lib/adwords4r/v200902/CampaignCriterionServiceMappingRegistry.rb +904 -0
- data/lib/adwords4r/v200902/CampaignService.rb +1249 -0
- data/lib/adwords4r/v200902/CampaignServiceDriver.rb +63 -0
- data/lib/adwords4r/v200902/CampaignServiceMappingRegistry.rb +1466 -0
- data/lib/adwords4r/v200902/CampaignTargetService.rb +1156 -0
- data/lib/adwords4r/v200902/CampaignTargetServiceDriver.rb +63 -0
- data/lib/adwords4r/v200902/CampaignTargetServiceMappingRegistry.rb +1304 -0
- data/setup.rb +0 -0
- metadata +57 -65
- data/lib/adwords4r/v12/AccountService.rb +0 -215
- data/lib/adwords4r/v12/AccountServiceDriver.rb +0 -69
- data/lib/adwords4r/v12/AccountServiceMappingRegistry.rb +0 -243
- data/lib/adwords4r/v12/AdGroupService.rb +0 -263
- data/lib/adwords4r/v12/AdGroupServiceDriver.rb +0 -109
- data/lib/adwords4r/v12/AdGroupServiceMappingRegistry.rb +0 -280
- data/lib/adwords4r/v12/AdService.rb +0 -769
- data/lib/adwords4r/v12/AdServiceDriver.rb +0 -125
- data/lib/adwords4r/v12/AdServiceMappingRegistry.rb +0 -813
- data/lib/adwords4r/v12/CampaignService.rb +0 -498
- data/lib/adwords4r/v12/CampaignServiceDriver.rb +0 -133
- data/lib/adwords4r/v12/CampaignServiceMappingRegistry.rb +0 -642
- data/lib/adwords4r/v12/CriterionService.rb +0 -445
- data/lib/adwords4r/v12/CriterionServiceDriver.rb +0 -117
- data/lib/adwords4r/v12/CriterionServiceMappingRegistry.rb +0 -509
- data/lib/adwords4r/v12/InfoService.rb +0 -242
- data/lib/adwords4r/v12/InfoServiceDriver.rb +0 -109
- data/lib/adwords4r/v12/InfoServiceMappingRegistry.rb +0 -228
- data/lib/adwords4r/v12/KeywordToolService.rb +0 -205
- data/lib/adwords4r/v12/KeywordToolServiceMappingRegistry.rb +0 -227
- data/lib/adwords4r/v12/ReportService.rb +0 -322
- data/lib/adwords4r/v12/ReportServiceDriver.rb +0 -101
- data/lib/adwords4r/v12/ReportServiceMappingRegistry.rb +0 -298
- data/lib/adwords4r/v12/SiteSuggestionService.rb +0 -242
- data/lib/adwords4r/v12/SiteSuggestionServiceDriver.rb +0 -77
- data/lib/adwords4r/v12/SiteSuggestionServiceMappingRegistry.rb +0 -271
- data/lib/adwords4r/v12/TrafficEstimatorService.rb +0 -312
- data/lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb +0 -77
- data/lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb +0 -483
@@ -1,445 +0,0 @@
|
|
1
|
-
require 'xsd/qname'
|
2
|
-
|
3
|
-
module AdWords; module CriterionService
|
4
|
-
|
5
|
-
|
6
|
-
# {https://adwords.google.com/api/adwords/v12}ApiError
|
7
|
-
# code - SOAP::SOAPInt
|
8
|
-
# detail - SOAP::SOAPString
|
9
|
-
# field - SOAP::SOAPString
|
10
|
-
# index - SOAP::SOAPInt
|
11
|
-
# isExemptable - SOAP::SOAPBoolean
|
12
|
-
# textIndex - SOAP::SOAPInt
|
13
|
-
# textLength - SOAP::SOAPInt
|
14
|
-
# trigger - SOAP::SOAPString
|
15
|
-
class ApiError
|
16
|
-
attr_accessor :code
|
17
|
-
attr_accessor :detail
|
18
|
-
attr_accessor :field
|
19
|
-
attr_accessor :index
|
20
|
-
attr_accessor :isExemptable
|
21
|
-
attr_accessor :textIndex
|
22
|
-
attr_accessor :textLength
|
23
|
-
attr_accessor :trigger
|
24
|
-
|
25
|
-
def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
|
26
|
-
@code = code
|
27
|
-
@detail = detail
|
28
|
-
@field = field
|
29
|
-
@index = index
|
30
|
-
@isExemptable = isExemptable
|
31
|
-
@textIndex = textIndex
|
32
|
-
@textLength = textLength
|
33
|
-
@trigger = trigger
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# {https://adwords.google.com/api/adwords/v12}ApiException
|
38
|
-
# code - SOAP::SOAPInt
|
39
|
-
# errors - AdWords::CriterionService::ApiError
|
40
|
-
# internal - SOAP::SOAPBoolean
|
41
|
-
# message - SOAP::SOAPString
|
42
|
-
# trigger - SOAP::SOAPString
|
43
|
-
class ApiException
|
44
|
-
attr_accessor :code
|
45
|
-
attr_accessor :errors
|
46
|
-
attr_accessor :internal
|
47
|
-
attr_accessor :message
|
48
|
-
attr_accessor :trigger
|
49
|
-
|
50
|
-
def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
|
51
|
-
@code = code
|
52
|
-
@errors = errors
|
53
|
-
@internal = internal
|
54
|
-
@message = message
|
55
|
-
@trigger = trigger
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# {https://adwords.google.com/api/adwords/v12}Circle
|
60
|
-
# latitudeMicroDegrees - SOAP::SOAPInt
|
61
|
-
# longitudeMicroDegrees - SOAP::SOAPInt
|
62
|
-
# radiusMeters - SOAP::SOAPInt
|
63
|
-
class Circle
|
64
|
-
attr_accessor :latitudeMicroDegrees
|
65
|
-
attr_accessor :longitudeMicroDegrees
|
66
|
-
attr_accessor :radiusMeters
|
67
|
-
|
68
|
-
def initialize(latitudeMicroDegrees = nil, longitudeMicroDegrees = nil, radiusMeters = nil)
|
69
|
-
@latitudeMicroDegrees = latitudeMicroDegrees
|
70
|
-
@longitudeMicroDegrees = longitudeMicroDegrees
|
71
|
-
@radiusMeters = radiusMeters
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
# {https://adwords.google.com/api/adwords/v12}CityTargets
|
76
|
-
class CityTargets < ::Array
|
77
|
-
end
|
78
|
-
|
79
|
-
# {https://adwords.google.com/api/adwords/v12}CountryTargets
|
80
|
-
class CountryTargets < ::Array
|
81
|
-
end
|
82
|
-
|
83
|
-
# {https://adwords.google.com/api/adwords/v12}Criterion
|
84
|
-
# abstract
|
85
|
-
# adGroupId - SOAP::SOAPLong
|
86
|
-
# criterionType - AdWords::CriterionService::CriterionType
|
87
|
-
# destinationUrl - SOAP::SOAPString
|
88
|
-
# exemptionRequest - SOAP::SOAPString
|
89
|
-
# id - SOAP::SOAPLong
|
90
|
-
# language - SOAP::SOAPString
|
91
|
-
# negative - SOAP::SOAPBoolean
|
92
|
-
# paused - SOAP::SOAPBoolean
|
93
|
-
# status - AdWords::CriterionService::CriterionStatus
|
94
|
-
class Criterion
|
95
|
-
attr_accessor :adGroupId
|
96
|
-
attr_accessor :criterionType
|
97
|
-
attr_accessor :destinationUrl
|
98
|
-
attr_accessor :exemptionRequest
|
99
|
-
attr_accessor :id
|
100
|
-
attr_accessor :language
|
101
|
-
attr_accessor :negative
|
102
|
-
attr_accessor :paused
|
103
|
-
attr_accessor :status
|
104
|
-
|
105
|
-
def initialize(adGroupId = nil, criterionType = nil, destinationUrl = nil, exemptionRequest = nil, id = nil, language = nil, negative = nil, paused = nil, status = nil)
|
106
|
-
@adGroupId = adGroupId
|
107
|
-
@criterionType = criterionType
|
108
|
-
@destinationUrl = destinationUrl
|
109
|
-
@exemptionRequest = exemptionRequest
|
110
|
-
@id = id
|
111
|
-
@language = language
|
112
|
-
@negative = negative
|
113
|
-
@paused = paused
|
114
|
-
@status = status
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
# {https://adwords.google.com/api/adwords/v12}Keyword
|
119
|
-
# adGroupId - SOAP::SOAPLong
|
120
|
-
# criterionType - AdWords::CriterionService::CriterionType
|
121
|
-
# destinationUrl - SOAP::SOAPString
|
122
|
-
# exemptionRequest - SOAP::SOAPString
|
123
|
-
# id - SOAP::SOAPLong
|
124
|
-
# language - SOAP::SOAPString
|
125
|
-
# negative - SOAP::SOAPBoolean
|
126
|
-
# paused - SOAP::SOAPBoolean
|
127
|
-
# status - AdWords::CriterionService::CriterionStatus
|
128
|
-
# maxCpc - SOAP::SOAPLong
|
129
|
-
# minCpc - SOAP::SOAPLong
|
130
|
-
# proxyMaxCpc - SOAP::SOAPLong
|
131
|
-
# text - SOAP::SOAPString
|
132
|
-
# type - AdWords::CriterionService::KeywordType
|
133
|
-
class Keyword < Criterion
|
134
|
-
attr_accessor :adGroupId
|
135
|
-
attr_accessor :criterionType
|
136
|
-
attr_accessor :destinationUrl
|
137
|
-
attr_accessor :exemptionRequest
|
138
|
-
attr_accessor :id
|
139
|
-
attr_accessor :language
|
140
|
-
attr_accessor :negative
|
141
|
-
attr_accessor :paused
|
142
|
-
attr_accessor :status
|
143
|
-
attr_accessor :maxCpc
|
144
|
-
attr_accessor :minCpc
|
145
|
-
attr_accessor :proxyMaxCpc
|
146
|
-
attr_accessor :text
|
147
|
-
attr_accessor :type
|
148
|
-
|
149
|
-
def initialize(adGroupId = nil, criterionType = nil, destinationUrl = nil, exemptionRequest = nil, id = nil, language = nil, negative = nil, paused = nil, status = nil, maxCpc = nil, minCpc = nil, proxyMaxCpc = nil, text = nil, type = nil)
|
150
|
-
@adGroupId = adGroupId
|
151
|
-
@criterionType = criterionType
|
152
|
-
@destinationUrl = destinationUrl
|
153
|
-
@exemptionRequest = exemptionRequest
|
154
|
-
@id = id
|
155
|
-
@language = language
|
156
|
-
@negative = negative
|
157
|
-
@paused = paused
|
158
|
-
@status = status
|
159
|
-
@maxCpc = maxCpc
|
160
|
-
@minCpc = minCpc
|
161
|
-
@proxyMaxCpc = proxyMaxCpc
|
162
|
-
@text = text
|
163
|
-
@type = type
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
# {https://adwords.google.com/api/adwords/v12}Website
|
168
|
-
# adGroupId - SOAP::SOAPLong
|
169
|
-
# criterionType - AdWords::CriterionService::CriterionType
|
170
|
-
# destinationUrl - SOAP::SOAPString
|
171
|
-
# exemptionRequest - SOAP::SOAPString
|
172
|
-
# id - SOAP::SOAPLong
|
173
|
-
# language - SOAP::SOAPString
|
174
|
-
# negative - SOAP::SOAPBoolean
|
175
|
-
# paused - SOAP::SOAPBoolean
|
176
|
-
# status - AdWords::CriterionService::CriterionStatus
|
177
|
-
# maxCpc - SOAP::SOAPLong
|
178
|
-
# maxCpm - SOAP::SOAPLong
|
179
|
-
# url - SOAP::SOAPString
|
180
|
-
class Website < Criterion
|
181
|
-
attr_accessor :adGroupId
|
182
|
-
attr_accessor :criterionType
|
183
|
-
attr_accessor :destinationUrl
|
184
|
-
attr_accessor :exemptionRequest
|
185
|
-
attr_accessor :id
|
186
|
-
attr_accessor :language
|
187
|
-
attr_accessor :negative
|
188
|
-
attr_accessor :paused
|
189
|
-
attr_accessor :status
|
190
|
-
attr_accessor :maxCpc
|
191
|
-
attr_accessor :maxCpm
|
192
|
-
attr_accessor :url
|
193
|
-
|
194
|
-
def initialize(adGroupId = nil, criterionType = nil, destinationUrl = nil, exemptionRequest = nil, id = nil, language = nil, negative = nil, paused = nil, status = nil, maxCpc = nil, maxCpm = nil, url = nil)
|
195
|
-
@adGroupId = adGroupId
|
196
|
-
@criterionType = criterionType
|
197
|
-
@destinationUrl = destinationUrl
|
198
|
-
@exemptionRequest = exemptionRequest
|
199
|
-
@id = id
|
200
|
-
@language = language
|
201
|
-
@negative = negative
|
202
|
-
@paused = paused
|
203
|
-
@status = status
|
204
|
-
@maxCpc = maxCpc
|
205
|
-
@maxCpm = maxCpm
|
206
|
-
@url = url
|
207
|
-
end
|
208
|
-
end
|
209
|
-
|
210
|
-
# {https://adwords.google.com/api/adwords/v12}GeoTarget
|
211
|
-
# cityTargets - AdWords::CriterionService::CityTargets
|
212
|
-
# countryTargets - AdWords::CriterionService::CountryTargets
|
213
|
-
# metroTargets - AdWords::CriterionService::MetroTargets
|
214
|
-
# proximityTargets - AdWords::CriterionService::ProximityTargets
|
215
|
-
# regionTargets - AdWords::CriterionService::RegionTargets
|
216
|
-
# targetAll - SOAP::SOAPBoolean
|
217
|
-
class GeoTarget
|
218
|
-
attr_accessor :cityTargets
|
219
|
-
attr_accessor :countryTargets
|
220
|
-
attr_accessor :metroTargets
|
221
|
-
attr_accessor :proximityTargets
|
222
|
-
attr_accessor :regionTargets
|
223
|
-
attr_accessor :targetAll
|
224
|
-
|
225
|
-
def initialize(cityTargets = nil, countryTargets = nil, metroTargets = nil, proximityTargets = nil, regionTargets = nil, targetAll = nil)
|
226
|
-
@cityTargets = cityTargets
|
227
|
-
@countryTargets = countryTargets
|
228
|
-
@metroTargets = metroTargets
|
229
|
-
@proximityTargets = proximityTargets
|
230
|
-
@regionTargets = regionTargets
|
231
|
-
@targetAll = targetAll
|
232
|
-
end
|
233
|
-
end
|
234
|
-
|
235
|
-
# {https://adwords.google.com/api/adwords/v12}LanguageTarget
|
236
|
-
class LanguageTarget < ::Array
|
237
|
-
end
|
238
|
-
|
239
|
-
# {https://adwords.google.com/api/adwords/v12}MetroTargets
|
240
|
-
class MetroTargets < ::Array
|
241
|
-
end
|
242
|
-
|
243
|
-
# {https://adwords.google.com/api/adwords/v12}ProximityTargets
|
244
|
-
class ProximityTargets < ::Array
|
245
|
-
end
|
246
|
-
|
247
|
-
# {https://adwords.google.com/api/adwords/v12}RegionTargets
|
248
|
-
class RegionTargets < ::Array
|
249
|
-
end
|
250
|
-
|
251
|
-
# {https://adwords.google.com/api/adwords/v12}StatsRecord
|
252
|
-
# averagePosition - SOAP::SOAPDouble
|
253
|
-
# clicks - SOAP::SOAPLong
|
254
|
-
# conversionRate - SOAP::SOAPDouble
|
255
|
-
# conversions - SOAP::SOAPLong
|
256
|
-
# cost - SOAP::SOAPLong
|
257
|
-
# id - SOAP::SOAPLong
|
258
|
-
# impressions - SOAP::SOAPLong
|
259
|
-
class StatsRecord
|
260
|
-
attr_accessor :averagePosition
|
261
|
-
attr_accessor :clicks
|
262
|
-
attr_accessor :conversionRate
|
263
|
-
attr_accessor :conversions
|
264
|
-
attr_accessor :cost
|
265
|
-
attr_accessor :id
|
266
|
-
attr_accessor :impressions
|
267
|
-
|
268
|
-
def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
|
269
|
-
@averagePosition = averagePosition
|
270
|
-
@clicks = clicks
|
271
|
-
@conversionRate = conversionRate
|
272
|
-
@conversions = conversions
|
273
|
-
@cost = cost
|
274
|
-
@id = id
|
275
|
-
@impressions = impressions
|
276
|
-
end
|
277
|
-
end
|
278
|
-
|
279
|
-
# {https://adwords.google.com/api/adwords/v12}CriterionStatus
|
280
|
-
class CriterionStatus < ::String
|
281
|
-
Active = CriterionStatus.new("Active")
|
282
|
-
Deleted = CriterionStatus.new("Deleted")
|
283
|
-
Disapproved = CriterionStatus.new("Disapproved")
|
284
|
-
InActive = CriterionStatus.new("InActive")
|
285
|
-
end
|
286
|
-
|
287
|
-
# {https://adwords.google.com/api/adwords/v12}CriterionType
|
288
|
-
class CriterionType < ::String
|
289
|
-
Keyword = CriterionType.new("Keyword")
|
290
|
-
Website = CriterionType.new("Website")
|
291
|
-
end
|
292
|
-
|
293
|
-
# {https://adwords.google.com/api/adwords/v12}KeywordType
|
294
|
-
class KeywordType < ::String
|
295
|
-
Broad = KeywordType.new("Broad")
|
296
|
-
Exact = KeywordType.new("Exact")
|
297
|
-
Phrase = KeywordType.new("Phrase")
|
298
|
-
end
|
299
|
-
|
300
|
-
# {https://adwords.google.com/api/adwords/v12}addCriteria
|
301
|
-
class AddCriteria < ::Array
|
302
|
-
end
|
303
|
-
|
304
|
-
# {https://adwords.google.com/api/adwords/v12}addCriteriaResponse
|
305
|
-
class AddCriteriaResponse < ::Array
|
306
|
-
end
|
307
|
-
|
308
|
-
# {https://adwords.google.com/api/adwords/v12}checkCriteria
|
309
|
-
# criteria - AdWords::CriterionService::Criterion
|
310
|
-
# languageTarget - AdWords::CriterionService::LanguageTarget
|
311
|
-
# geoTarget - AdWords::CriterionService::GeoTarget
|
312
|
-
class CheckCriteria
|
313
|
-
attr_accessor :criteria
|
314
|
-
attr_accessor :languageTarget
|
315
|
-
attr_accessor :geoTarget
|
316
|
-
|
317
|
-
def initialize(criteria = [], languageTarget = nil, geoTarget = nil)
|
318
|
-
@criteria = criteria
|
319
|
-
@languageTarget = languageTarget
|
320
|
-
@geoTarget = geoTarget
|
321
|
-
end
|
322
|
-
end
|
323
|
-
|
324
|
-
# {https://adwords.google.com/api/adwords/v12}checkCriteriaResponse
|
325
|
-
class CheckCriteriaResponse < ::Array
|
326
|
-
end
|
327
|
-
|
328
|
-
# {https://adwords.google.com/api/adwords/v12}getAllCriteria
|
329
|
-
# adGroupId - SOAP::SOAPLong
|
330
|
-
class GetAllCriteria
|
331
|
-
attr_accessor :adGroupId
|
332
|
-
|
333
|
-
def initialize(adGroupId = nil)
|
334
|
-
@adGroupId = adGroupId
|
335
|
-
end
|
336
|
-
end
|
337
|
-
|
338
|
-
# {https://adwords.google.com/api/adwords/v12}getAllCriteriaResponse
|
339
|
-
class GetAllCriteriaResponse < ::Array
|
340
|
-
end
|
341
|
-
|
342
|
-
# {https://adwords.google.com/api/adwords/v12}getCampaignNegativeCriteria
|
343
|
-
# campaignId - SOAP::SOAPInt
|
344
|
-
class GetCampaignNegativeCriteria
|
345
|
-
attr_accessor :campaignId
|
346
|
-
|
347
|
-
def initialize(campaignId = nil)
|
348
|
-
@campaignId = campaignId
|
349
|
-
end
|
350
|
-
end
|
351
|
-
|
352
|
-
# {https://adwords.google.com/api/adwords/v12}getCampaignNegativeCriteriaResponse
|
353
|
-
class GetCampaignNegativeCriteriaResponse < ::Array
|
354
|
-
end
|
355
|
-
|
356
|
-
# {https://adwords.google.com/api/adwords/v12}getCriteria
|
357
|
-
# adGroupId - SOAP::SOAPLong
|
358
|
-
# criterionIds - SOAP::SOAPLong
|
359
|
-
class GetCriteria
|
360
|
-
attr_accessor :adGroupId
|
361
|
-
attr_accessor :criterionIds
|
362
|
-
|
363
|
-
def initialize(adGroupId = nil, criterionIds = [])
|
364
|
-
@adGroupId = adGroupId
|
365
|
-
@criterionIds = criterionIds
|
366
|
-
end
|
367
|
-
end
|
368
|
-
|
369
|
-
# {https://adwords.google.com/api/adwords/v12}getCriteriaResponse
|
370
|
-
class GetCriteriaResponse < ::Array
|
371
|
-
end
|
372
|
-
|
373
|
-
# {https://adwords.google.com/api/adwords/v12}getCriterionStats
|
374
|
-
# adGroupId - SOAP::SOAPLong
|
375
|
-
# criterionIds - SOAP::SOAPLong
|
376
|
-
# startDay - SOAP::SOAPDate
|
377
|
-
# endDay - SOAP::SOAPDate
|
378
|
-
class GetCriterionStats
|
379
|
-
attr_accessor :adGroupId
|
380
|
-
attr_accessor :criterionIds
|
381
|
-
attr_accessor :startDay
|
382
|
-
attr_accessor :endDay
|
383
|
-
|
384
|
-
def initialize(adGroupId = nil, criterionIds = [], startDay = nil, endDay = nil)
|
385
|
-
@adGroupId = adGroupId
|
386
|
-
@criterionIds = criterionIds
|
387
|
-
@startDay = startDay
|
388
|
-
@endDay = endDay
|
389
|
-
end
|
390
|
-
end
|
391
|
-
|
392
|
-
# {https://adwords.google.com/api/adwords/v12}getCriterionStatsResponse
|
393
|
-
class GetCriterionStatsResponse < ::Array
|
394
|
-
end
|
395
|
-
|
396
|
-
# {https://adwords.google.com/api/adwords/v12}removeCriteria
|
397
|
-
# adGroupId - SOAP::SOAPLong
|
398
|
-
# criterionIds - SOAP::SOAPLong
|
399
|
-
class RemoveCriteria
|
400
|
-
attr_accessor :adGroupId
|
401
|
-
attr_accessor :criterionIds
|
402
|
-
|
403
|
-
def initialize(adGroupId = nil, criterionIds = [])
|
404
|
-
@adGroupId = adGroupId
|
405
|
-
@criterionIds = criterionIds
|
406
|
-
end
|
407
|
-
end
|
408
|
-
|
409
|
-
# {https://adwords.google.com/api/adwords/v12}removeCriteriaResponse
|
410
|
-
class RemoveCriteriaResponse
|
411
|
-
def initialize
|
412
|
-
end
|
413
|
-
end
|
414
|
-
|
415
|
-
# {https://adwords.google.com/api/adwords/v12}setCampaignNegativeCriteria
|
416
|
-
# campaignId - SOAP::SOAPInt
|
417
|
-
# criteria - AdWords::CriterionService::Criterion
|
418
|
-
class SetCampaignNegativeCriteria
|
419
|
-
attr_accessor :campaignId
|
420
|
-
attr_accessor :criteria
|
421
|
-
|
422
|
-
def initialize(campaignId = nil, criteria = [])
|
423
|
-
@campaignId = campaignId
|
424
|
-
@criteria = criteria
|
425
|
-
end
|
426
|
-
end
|
427
|
-
|
428
|
-
# {https://adwords.google.com/api/adwords/v12}setCampaignNegativeCriteriaResponse
|
429
|
-
class SetCampaignNegativeCriteriaResponse
|
430
|
-
def initialize
|
431
|
-
end
|
432
|
-
end
|
433
|
-
|
434
|
-
# {https://adwords.google.com/api/adwords/v12}updateCriteria
|
435
|
-
class UpdateCriteria < ::Array
|
436
|
-
end
|
437
|
-
|
438
|
-
# {https://adwords.google.com/api/adwords/v12}updateCriteriaResponse
|
439
|
-
class UpdateCriteriaResponse
|
440
|
-
def initialize
|
441
|
-
end
|
442
|
-
end
|
443
|
-
|
444
|
-
|
445
|
-
end; end
|
@@ -1,117 +0,0 @@
|
|
1
|
-
require 'adwords4r/v12/CriterionService'
|
2
|
-
require 'adwords4r/v12/CriterionServiceMappingRegistry'
|
3
|
-
require 'soap/rpc/driver'
|
4
|
-
|
5
|
-
module AdWords
|
6
|
-
module CriterionService
|
7
|
-
|
8
|
-
class CriterionInterface < ::SOAP::RPC::Driver
|
9
|
-
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v12/CriterionService"
|
10
|
-
|
11
|
-
Methods = [
|
12
|
-
[ "",
|
13
|
-
"addCriteria",
|
14
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "addCriteria"]],
|
15
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "addCriteriaResponse"]] ],
|
16
|
-
{ :request_style => :document, :request_use => :literal,
|
17
|
-
:response_style => :document, :response_use => :literal,
|
18
|
-
:faults => {"AdWords::CriterionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
19
|
-
],
|
20
|
-
[ "",
|
21
|
-
"checkCriteria",
|
22
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "checkCriteria"]],
|
23
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "checkCriteriaResponse"]] ],
|
24
|
-
{ :request_style => :document, :request_use => :literal,
|
25
|
-
:response_style => :document, :response_use => :literal,
|
26
|
-
:faults => {"AdWords::CriterionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
27
|
-
],
|
28
|
-
[ "",
|
29
|
-
"getAllCriteria",
|
30
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAllCriteria"]],
|
31
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAllCriteriaResponse"]] ],
|
32
|
-
{ :request_style => :document, :request_use => :literal,
|
33
|
-
:response_style => :document, :response_use => :literal,
|
34
|
-
:faults => {"AdWords::CriterionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
35
|
-
],
|
36
|
-
[ "",
|
37
|
-
"getCampaignNegativeCriteria",
|
38
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getCampaignNegativeCriteria"]],
|
39
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getCampaignNegativeCriteriaResponse"]] ],
|
40
|
-
{ :request_style => :document, :request_use => :literal,
|
41
|
-
:response_style => :document, :response_use => :literal,
|
42
|
-
:faults => {"AdWords::CriterionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
43
|
-
],
|
44
|
-
[ "",
|
45
|
-
"getCriteria",
|
46
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getCriteria"]],
|
47
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getCriteriaResponse"]] ],
|
48
|
-
{ :request_style => :document, :request_use => :literal,
|
49
|
-
:response_style => :document, :response_use => :literal,
|
50
|
-
:faults => {"AdWords::CriterionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
51
|
-
],
|
52
|
-
[ "",
|
53
|
-
"getCriterionStats",
|
54
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getCriterionStats"]],
|
55
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getCriterionStatsResponse"]] ],
|
56
|
-
{ :request_style => :document, :request_use => :literal,
|
57
|
-
:response_style => :document, :response_use => :literal,
|
58
|
-
:faults => {"AdWords::CriterionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
59
|
-
],
|
60
|
-
[ "",
|
61
|
-
"removeCriteria",
|
62
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "removeCriteria"]],
|
63
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "removeCriteriaResponse"]] ],
|
64
|
-
{ :request_style => :document, :request_use => :literal,
|
65
|
-
:response_style => :document, :response_use => :literal,
|
66
|
-
:faults => {"AdWords::CriterionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
67
|
-
],
|
68
|
-
[ "",
|
69
|
-
"setCampaignNegativeCriteria",
|
70
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "setCampaignNegativeCriteria"]],
|
71
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "setCampaignNegativeCriteriaResponse"]] ],
|
72
|
-
{ :request_style => :document, :request_use => :literal,
|
73
|
-
:response_style => :document, :response_use => :literal,
|
74
|
-
:faults => {"AdWords::CriterionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
75
|
-
],
|
76
|
-
[ "",
|
77
|
-
"updateCriteria",
|
78
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "updateCriteria"]],
|
79
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "updateCriteriaResponse"]] ],
|
80
|
-
{ :request_style => :document, :request_use => :literal,
|
81
|
-
:response_style => :document, :response_use => :literal,
|
82
|
-
:faults => {"AdWords::CriterionService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
|
83
|
-
]
|
84
|
-
]
|
85
|
-
|
86
|
-
def initialize(endpoint_url = nil)
|
87
|
-
endpoint_url ||= DefaultEndpointUrl
|
88
|
-
super(endpoint_url, nil)
|
89
|
-
self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
|
90
|
-
self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
|
91
|
-
init_methods
|
92
|
-
end
|
93
|
-
|
94
|
-
private
|
95
|
-
|
96
|
-
def init_methods
|
97
|
-
Methods.each do |definitions|
|
98
|
-
opt = definitions.last
|
99
|
-
if opt[:request_style] == :document
|
100
|
-
add_document_operation(*definitions)
|
101
|
-
else
|
102
|
-
add_rpc_operation(*definitions)
|
103
|
-
qname = definitions[0]
|
104
|
-
name = definitions[2]
|
105
|
-
if qname.name != name and qname.name.capitalize == name.capitalize
|
106
|
-
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
107
|
-
__send__(name, *arg)
|
108
|
-
end
|
109
|
-
end
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
|
116
|
-
end
|
117
|
-
end
|