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
@@ -0,0 +1,741 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
module AdWords; module V200902; module CampaignCriterionService
|
4
|
+
|
5
|
+
|
6
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CriterionId
|
7
|
+
# id - SOAP::SOAPLong
|
8
|
+
class CriterionId
|
9
|
+
attr_accessor :id
|
10
|
+
|
11
|
+
def initialize(id = nil)
|
12
|
+
@id = id
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}Paging
|
17
|
+
# startIndex - SOAP::SOAPInt
|
18
|
+
# numberResults - SOAP::SOAPInt
|
19
|
+
class Paging
|
20
|
+
attr_accessor :startIndex
|
21
|
+
attr_accessor :numberResults
|
22
|
+
|
23
|
+
def initialize(startIndex = nil, numberResults = nil)
|
24
|
+
@startIndex = startIndex
|
25
|
+
@numberResults = numberResults
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}SoapHeader
|
30
|
+
# authToken - SOAP::SOAPString
|
31
|
+
# clientCustomerId - SOAP::SOAPString
|
32
|
+
# clientEmail - SOAP::SOAPString
|
33
|
+
class SoapHeader
|
34
|
+
attr_accessor :authToken
|
35
|
+
attr_accessor :clientCustomerId
|
36
|
+
attr_accessor :clientEmail
|
37
|
+
|
38
|
+
def initialize(authToken = nil, clientCustomerId = nil, clientEmail = nil)
|
39
|
+
@authToken = authToken
|
40
|
+
@clientCustomerId = clientCustomerId
|
41
|
+
@clientEmail = clientEmail
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}SoapResponseHeader
|
46
|
+
# requestId - SOAP::SOAPString
|
47
|
+
# operations - SOAP::SOAPLong
|
48
|
+
# responseTime - SOAP::SOAPLong
|
49
|
+
class SoapResponseHeader
|
50
|
+
attr_accessor :requestId
|
51
|
+
attr_accessor :operations
|
52
|
+
attr_accessor :responseTime
|
53
|
+
|
54
|
+
def initialize(requestId = nil, operations = nil, responseTime = nil)
|
55
|
+
@requestId = requestId
|
56
|
+
@operations = operations
|
57
|
+
@responseTime = responseTime
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignId
|
62
|
+
# id - SOAP::SOAPLong
|
63
|
+
# campaignId_Type - SOAP::SOAPString
|
64
|
+
class CampaignId
|
65
|
+
attr_accessor :id
|
66
|
+
attr_accessor :campaignId_Type
|
67
|
+
|
68
|
+
def initialize(id = nil, campaignId_Type = nil)
|
69
|
+
@id = id
|
70
|
+
@campaignId_Type = campaignId_Type
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}Criterion
|
75
|
+
# id - AdWords::V200902::CampaignCriterionService::CriterionId
|
76
|
+
# criterion_Type - SOAP::SOAPString
|
77
|
+
class Criterion
|
78
|
+
attr_accessor :id
|
79
|
+
attr_accessor :criterion_Type
|
80
|
+
|
81
|
+
def initialize(id = nil, criterion_Type = nil)
|
82
|
+
@id = id
|
83
|
+
@criterion_Type = criterion_Type
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}ContentLabel
|
88
|
+
# id - AdWords::V200902::CampaignCriterionService::CriterionId
|
89
|
+
# criterion_Type - SOAP::SOAPString
|
90
|
+
# contentLabelType - AdWords::V200902::CampaignCriterionService::ContentLabelType
|
91
|
+
class ContentLabel < Criterion
|
92
|
+
attr_accessor :id
|
93
|
+
attr_accessor :criterion_Type
|
94
|
+
attr_accessor :contentLabelType
|
95
|
+
|
96
|
+
def initialize(id = nil, criterion_Type = nil, contentLabelType = nil)
|
97
|
+
@id = id
|
98
|
+
@criterion_Type = criterion_Type
|
99
|
+
@contentLabelType = contentLabelType
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}Keyword
|
104
|
+
# id - AdWords::V200902::CampaignCriterionService::CriterionId
|
105
|
+
# criterion_Type - SOAP::SOAPString
|
106
|
+
# text - SOAP::SOAPString
|
107
|
+
# matchType - AdWords::V200902::CampaignCriterionService::KeywordMatchType
|
108
|
+
class Keyword < Criterion
|
109
|
+
attr_accessor :id
|
110
|
+
attr_accessor :criterion_Type
|
111
|
+
attr_accessor :text
|
112
|
+
attr_accessor :matchType
|
113
|
+
|
114
|
+
def initialize(id = nil, criterion_Type = nil, text = nil, matchType = nil)
|
115
|
+
@id = id
|
116
|
+
@criterion_Type = criterion_Type
|
117
|
+
@text = text
|
118
|
+
@matchType = matchType
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}Placement
|
123
|
+
# id - AdWords::V200902::CampaignCriterionService::CriterionId
|
124
|
+
# criterion_Type - SOAP::SOAPString
|
125
|
+
# url - SOAP::SOAPString
|
126
|
+
class Placement < Criterion
|
127
|
+
attr_accessor :id
|
128
|
+
attr_accessor :criterion_Type
|
129
|
+
attr_accessor :url
|
130
|
+
|
131
|
+
def initialize(id = nil, criterion_Type = nil, url = nil)
|
132
|
+
@id = id
|
133
|
+
@criterion_Type = criterion_Type
|
134
|
+
@url = url
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}ApiError
|
139
|
+
# abstract
|
140
|
+
# fieldPath - SOAP::SOAPString
|
141
|
+
# trigger - SOAP::SOAPString
|
142
|
+
# apiError_Type - SOAP::SOAPString
|
143
|
+
class ApiError
|
144
|
+
attr_accessor :fieldPath
|
145
|
+
attr_accessor :trigger
|
146
|
+
attr_accessor :apiError_Type
|
147
|
+
|
148
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil)
|
149
|
+
@fieldPath = fieldPath
|
150
|
+
@trigger = trigger
|
151
|
+
@apiError_Type = apiError_Type
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}AuthorizationError
|
156
|
+
# fieldPath - SOAP::SOAPString
|
157
|
+
# trigger - SOAP::SOAPString
|
158
|
+
# apiError_Type - SOAP::SOAPString
|
159
|
+
# reason - AdWords::V200902::CampaignCriterionService::AuthorizationErrorReason
|
160
|
+
class AuthorizationError < ApiError
|
161
|
+
attr_accessor :fieldPath
|
162
|
+
attr_accessor :trigger
|
163
|
+
attr_accessor :apiError_Type
|
164
|
+
attr_accessor :reason
|
165
|
+
|
166
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
167
|
+
@fieldPath = fieldPath
|
168
|
+
@trigger = trigger
|
169
|
+
@apiError_Type = apiError_Type
|
170
|
+
@reason = reason
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignCriterionError
|
175
|
+
# fieldPath - SOAP::SOAPString
|
176
|
+
# trigger - SOAP::SOAPString
|
177
|
+
# apiError_Type - SOAP::SOAPString
|
178
|
+
# reason - AdWords::V200902::CampaignCriterionService::CampaignCriterionErrorReason
|
179
|
+
class CampaignCriterionError < ApiError
|
180
|
+
attr_accessor :fieldPath
|
181
|
+
attr_accessor :trigger
|
182
|
+
attr_accessor :apiError_Type
|
183
|
+
attr_accessor :reason
|
184
|
+
|
185
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
186
|
+
@fieldPath = fieldPath
|
187
|
+
@trigger = trigger
|
188
|
+
@apiError_Type = apiError_Type
|
189
|
+
@reason = reason
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}DatabaseError
|
194
|
+
# fieldPath - SOAP::SOAPString
|
195
|
+
# trigger - SOAP::SOAPString
|
196
|
+
# apiError_Type - SOAP::SOAPString
|
197
|
+
# reason - AdWords::V200902::CampaignCriterionService::DatabaseErrorReason
|
198
|
+
class DatabaseError < ApiError
|
199
|
+
attr_accessor :fieldPath
|
200
|
+
attr_accessor :trigger
|
201
|
+
attr_accessor :apiError_Type
|
202
|
+
attr_accessor :reason
|
203
|
+
|
204
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
205
|
+
@fieldPath = fieldPath
|
206
|
+
@trigger = trigger
|
207
|
+
@apiError_Type = apiError_Type
|
208
|
+
@reason = reason
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}DistinctError
|
213
|
+
# fieldPath - SOAP::SOAPString
|
214
|
+
# trigger - SOAP::SOAPString
|
215
|
+
# apiError_Type - SOAP::SOAPString
|
216
|
+
# reason - AdWords::V200902::CampaignCriterionService::DistinctErrorReason
|
217
|
+
class DistinctError < ApiError
|
218
|
+
attr_accessor :fieldPath
|
219
|
+
attr_accessor :trigger
|
220
|
+
attr_accessor :apiError_Type
|
221
|
+
attr_accessor :reason
|
222
|
+
|
223
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
224
|
+
@fieldPath = fieldPath
|
225
|
+
@trigger = trigger
|
226
|
+
@apiError_Type = apiError_Type
|
227
|
+
@reason = reason
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}EntityCountLimitExceeded
|
232
|
+
# abstract
|
233
|
+
# fieldPath - SOAP::SOAPString
|
234
|
+
# trigger - SOAP::SOAPString
|
235
|
+
# apiError_Type - SOAP::SOAPString
|
236
|
+
# reason - AdWords::V200902::CampaignCriterionService::EntityCountLimitExceededReason
|
237
|
+
# enclosingId - SOAP::SOAPString
|
238
|
+
# limit - SOAP::SOAPInt
|
239
|
+
class EntityCountLimitExceeded < ApiError
|
240
|
+
attr_accessor :fieldPath
|
241
|
+
attr_accessor :trigger
|
242
|
+
attr_accessor :apiError_Type
|
243
|
+
attr_accessor :reason
|
244
|
+
attr_accessor :enclosingId
|
245
|
+
attr_accessor :limit
|
246
|
+
|
247
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil)
|
248
|
+
@fieldPath = fieldPath
|
249
|
+
@trigger = trigger
|
250
|
+
@apiError_Type = apiError_Type
|
251
|
+
@reason = reason
|
252
|
+
@enclosingId = enclosingId
|
253
|
+
@limit = limit
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignCriterionLimitExceeded
|
258
|
+
# fieldPath - SOAP::SOAPString
|
259
|
+
# trigger - SOAP::SOAPString
|
260
|
+
# apiError_Type - SOAP::SOAPString
|
261
|
+
# reason - AdWords::V200902::CampaignCriterionService::EntityCountLimitExceededReason
|
262
|
+
# enclosingId - SOAP::SOAPString
|
263
|
+
# limit - SOAP::SOAPInt
|
264
|
+
# limitType - AdWords::V200902::CampaignCriterionService::CampaignCriterionLimitExceededCriteriaLimitType
|
265
|
+
class CampaignCriterionLimitExceeded < EntityCountLimitExceeded
|
266
|
+
attr_accessor :fieldPath
|
267
|
+
attr_accessor :trigger
|
268
|
+
attr_accessor :apiError_Type
|
269
|
+
attr_accessor :reason
|
270
|
+
attr_accessor :enclosingId
|
271
|
+
attr_accessor :limit
|
272
|
+
attr_accessor :limitType
|
273
|
+
|
274
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil, enclosingId = nil, limit = nil, limitType = nil)
|
275
|
+
@fieldPath = fieldPath
|
276
|
+
@trigger = trigger
|
277
|
+
@apiError_Type = apiError_Type
|
278
|
+
@reason = reason
|
279
|
+
@enclosingId = enclosingId
|
280
|
+
@limit = limit
|
281
|
+
@limitType = limitType
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}NewEntityCreationError
|
286
|
+
# fieldPath - SOAP::SOAPString
|
287
|
+
# trigger - SOAP::SOAPString
|
288
|
+
# apiError_Type - SOAP::SOAPString
|
289
|
+
# reason - AdWords::V200902::CampaignCriterionService::NewEntityCreationErrorReason
|
290
|
+
class NewEntityCreationError < ApiError
|
291
|
+
attr_accessor :fieldPath
|
292
|
+
attr_accessor :trigger
|
293
|
+
attr_accessor :apiError_Type
|
294
|
+
attr_accessor :reason
|
295
|
+
|
296
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
297
|
+
@fieldPath = fieldPath
|
298
|
+
@trigger = trigger
|
299
|
+
@apiError_Type = apiError_Type
|
300
|
+
@reason = reason
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
304
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}NotEmptyError
|
305
|
+
# fieldPath - SOAP::SOAPString
|
306
|
+
# trigger - SOAP::SOAPString
|
307
|
+
# apiError_Type - SOAP::SOAPString
|
308
|
+
# reason - AdWords::V200902::CampaignCriterionService::NotEmptyErrorReason
|
309
|
+
class NotEmptyError < ApiError
|
310
|
+
attr_accessor :fieldPath
|
311
|
+
attr_accessor :trigger
|
312
|
+
attr_accessor :apiError_Type
|
313
|
+
attr_accessor :reason
|
314
|
+
|
315
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
316
|
+
@fieldPath = fieldPath
|
317
|
+
@trigger = trigger
|
318
|
+
@apiError_Type = apiError_Type
|
319
|
+
@reason = reason
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}NotWhitelistedError
|
324
|
+
# fieldPath - SOAP::SOAPString
|
325
|
+
# trigger - SOAP::SOAPString
|
326
|
+
# apiError_Type - SOAP::SOAPString
|
327
|
+
# reason - AdWords::V200902::CampaignCriterionService::NotWhitelistedErrorReason
|
328
|
+
class NotWhitelistedError < ApiError
|
329
|
+
attr_accessor :fieldPath
|
330
|
+
attr_accessor :trigger
|
331
|
+
attr_accessor :apiError_Type
|
332
|
+
attr_accessor :reason
|
333
|
+
|
334
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
335
|
+
@fieldPath = fieldPath
|
336
|
+
@trigger = trigger
|
337
|
+
@apiError_Type = apiError_Type
|
338
|
+
@reason = reason
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}NullError
|
343
|
+
# fieldPath - SOAP::SOAPString
|
344
|
+
# trigger - SOAP::SOAPString
|
345
|
+
# apiError_Type - SOAP::SOAPString
|
346
|
+
# reason - AdWords::V200902::CampaignCriterionService::NullErrorReason
|
347
|
+
class NullError < ApiError
|
348
|
+
attr_accessor :fieldPath
|
349
|
+
attr_accessor :trigger
|
350
|
+
attr_accessor :apiError_Type
|
351
|
+
attr_accessor :reason
|
352
|
+
|
353
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
354
|
+
@fieldPath = fieldPath
|
355
|
+
@trigger = trigger
|
356
|
+
@apiError_Type = apiError_Type
|
357
|
+
@reason = reason
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
361
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}OperatorError
|
362
|
+
# fieldPath - SOAP::SOAPString
|
363
|
+
# trigger - SOAP::SOAPString
|
364
|
+
# apiError_Type - SOAP::SOAPString
|
365
|
+
# reason - AdWords::V200902::CampaignCriterionService::OperatorErrorReason
|
366
|
+
class OperatorError < ApiError
|
367
|
+
attr_accessor :fieldPath
|
368
|
+
attr_accessor :trigger
|
369
|
+
attr_accessor :apiError_Type
|
370
|
+
attr_accessor :reason
|
371
|
+
|
372
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
373
|
+
@fieldPath = fieldPath
|
374
|
+
@trigger = trigger
|
375
|
+
@apiError_Type = apiError_Type
|
376
|
+
@reason = reason
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
380
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}ReadOnlyError
|
381
|
+
# fieldPath - SOAP::SOAPString
|
382
|
+
# trigger - SOAP::SOAPString
|
383
|
+
# apiError_Type - SOAP::SOAPString
|
384
|
+
# reason - AdWords::V200902::CampaignCriterionService::ReadOnlyErrorReason
|
385
|
+
class ReadOnlyError < ApiError
|
386
|
+
attr_accessor :fieldPath
|
387
|
+
attr_accessor :trigger
|
388
|
+
attr_accessor :apiError_Type
|
389
|
+
attr_accessor :reason
|
390
|
+
|
391
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
392
|
+
@fieldPath = fieldPath
|
393
|
+
@trigger = trigger
|
394
|
+
@apiError_Type = apiError_Type
|
395
|
+
@reason = reason
|
396
|
+
end
|
397
|
+
end
|
398
|
+
|
399
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}RequiredError
|
400
|
+
# fieldPath - SOAP::SOAPString
|
401
|
+
# trigger - SOAP::SOAPString
|
402
|
+
# apiError_Type - SOAP::SOAPString
|
403
|
+
# reason - AdWords::V200902::CampaignCriterionService::RequiredErrorReason
|
404
|
+
class RequiredError < ApiError
|
405
|
+
attr_accessor :fieldPath
|
406
|
+
attr_accessor :trigger
|
407
|
+
attr_accessor :apiError_Type
|
408
|
+
attr_accessor :reason
|
409
|
+
|
410
|
+
def initialize(fieldPath = nil, trigger = nil, apiError_Type = nil, reason = nil)
|
411
|
+
@fieldPath = fieldPath
|
412
|
+
@trigger = trigger
|
413
|
+
@apiError_Type = apiError_Type
|
414
|
+
@reason = reason
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}ApplicationException
|
419
|
+
# message - SOAP::SOAPString
|
420
|
+
# applicationException_Type - SOAP::SOAPString
|
421
|
+
class ApplicationException
|
422
|
+
attr_accessor :message
|
423
|
+
attr_accessor :applicationException_Type
|
424
|
+
|
425
|
+
def initialize(message = nil, applicationException_Type = nil)
|
426
|
+
@message = message
|
427
|
+
@applicationException_Type = applicationException_Type
|
428
|
+
end
|
429
|
+
end
|
430
|
+
|
431
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}ApiException
|
432
|
+
# message - SOAP::SOAPString
|
433
|
+
# applicationException_Type - SOAP::SOAPString
|
434
|
+
# errors - AdWords::V200902::CampaignCriterionService::ApiError
|
435
|
+
class ApiException < ApplicationException
|
436
|
+
attr_accessor :message
|
437
|
+
attr_accessor :applicationException_Type
|
438
|
+
attr_accessor :errors
|
439
|
+
|
440
|
+
def initialize(message = nil, applicationException_Type = nil, errors = [])
|
441
|
+
@message = message
|
442
|
+
@applicationException_Type = applicationException_Type
|
443
|
+
@errors = errors
|
444
|
+
end
|
445
|
+
end
|
446
|
+
|
447
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignCriterion
|
448
|
+
# campaignId - AdWords::V200902::CampaignCriterionService::CampaignId
|
449
|
+
# criterion - AdWords::V200902::CampaignCriterionService::Criterion
|
450
|
+
# campaignCriterion_Type - SOAP::SOAPString
|
451
|
+
class CampaignCriterion
|
452
|
+
attr_accessor :campaignId
|
453
|
+
attr_accessor :criterion
|
454
|
+
attr_accessor :campaignCriterion_Type
|
455
|
+
|
456
|
+
def initialize(campaignId = nil, criterion = nil, campaignCriterion_Type = nil)
|
457
|
+
@campaignId = campaignId
|
458
|
+
@criterion = criterion
|
459
|
+
@campaignCriterion_Type = campaignCriterion_Type
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
463
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}NegativeCampaignCriterion
|
464
|
+
# campaignId - AdWords::V200902::CampaignCriterionService::CampaignId
|
465
|
+
# criterion - AdWords::V200902::CampaignCriterionService::Criterion
|
466
|
+
# campaignCriterion_Type - SOAP::SOAPString
|
467
|
+
class NegativeCampaignCriterion < CampaignCriterion
|
468
|
+
attr_accessor :campaignId
|
469
|
+
attr_accessor :criterion
|
470
|
+
attr_accessor :campaignCriterion_Type
|
471
|
+
|
472
|
+
def initialize(campaignId = nil, criterion = nil, campaignCriterion_Type = nil)
|
473
|
+
@campaignId = campaignId
|
474
|
+
@criterion = criterion
|
475
|
+
@campaignCriterion_Type = campaignCriterion_Type
|
476
|
+
end
|
477
|
+
end
|
478
|
+
|
479
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignCriterionIdFilter
|
480
|
+
# campaignId - AdWords::V200902::CampaignCriterionService::CampaignId
|
481
|
+
# criterionId - AdWords::V200902::CampaignCriterionService::CriterionId
|
482
|
+
class CampaignCriterionIdFilter
|
483
|
+
attr_accessor :campaignId
|
484
|
+
attr_accessor :criterionId
|
485
|
+
|
486
|
+
def initialize(campaignId = nil, criterionId = nil)
|
487
|
+
@campaignId = campaignId
|
488
|
+
@criterionId = criterionId
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
492
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}Operation
|
493
|
+
# abstract
|
494
|
+
# operator - AdWords::V200902::CampaignCriterionService::Operator
|
495
|
+
# operation_Type - SOAP::SOAPString
|
496
|
+
class Operation
|
497
|
+
attr_accessor :operator
|
498
|
+
attr_accessor :operation_Type
|
499
|
+
|
500
|
+
def initialize(operator = nil, operation_Type = nil)
|
501
|
+
@operator = operator
|
502
|
+
@operation_Type = operation_Type
|
503
|
+
end
|
504
|
+
end
|
505
|
+
|
506
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignCriterionOperation
|
507
|
+
# operator - AdWords::V200902::CampaignCriterionService::Operator
|
508
|
+
# operation_Type - SOAP::SOAPString
|
509
|
+
# operand - AdWords::V200902::CampaignCriterionService::CampaignCriterion
|
510
|
+
class CampaignCriterionOperation < Operation
|
511
|
+
attr_accessor :operator
|
512
|
+
attr_accessor :operation_Type
|
513
|
+
attr_accessor :operand
|
514
|
+
|
515
|
+
def initialize(operator = nil, operation_Type = nil, operand = nil)
|
516
|
+
@operator = operator
|
517
|
+
@operation_Type = operation_Type
|
518
|
+
@operand = operand
|
519
|
+
end
|
520
|
+
end
|
521
|
+
|
522
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}Page
|
523
|
+
# abstract
|
524
|
+
# totalNumEntries - SOAP::SOAPInt
|
525
|
+
# page_Type - SOAP::SOAPString
|
526
|
+
class Page
|
527
|
+
attr_accessor :totalNumEntries
|
528
|
+
attr_accessor :page_Type
|
529
|
+
|
530
|
+
def initialize(totalNumEntries = nil, page_Type = nil)
|
531
|
+
@totalNumEntries = totalNumEntries
|
532
|
+
@page_Type = page_Type
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
536
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignCriterionPage
|
537
|
+
# totalNumEntries - SOAP::SOAPInt
|
538
|
+
# page_Type - SOAP::SOAPString
|
539
|
+
# entries - AdWords::V200902::CampaignCriterionService::CampaignCriterion
|
540
|
+
class CampaignCriterionPage < Page
|
541
|
+
attr_accessor :totalNumEntries
|
542
|
+
attr_accessor :page_Type
|
543
|
+
attr_accessor :entries
|
544
|
+
|
545
|
+
def initialize(totalNumEntries = nil, page_Type = nil, entries = [])
|
546
|
+
@totalNumEntries = totalNumEntries
|
547
|
+
@page_Type = page_Type
|
548
|
+
@entries = entries
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}ListReturnValue
|
553
|
+
# listReturnValue_Type - SOAP::SOAPString
|
554
|
+
class ListReturnValue
|
555
|
+
attr_accessor :listReturnValue_Type
|
556
|
+
|
557
|
+
def initialize(listReturnValue_Type = nil)
|
558
|
+
@listReturnValue_Type = listReturnValue_Type
|
559
|
+
end
|
560
|
+
end
|
561
|
+
|
562
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignCriterionReturnValue
|
563
|
+
# listReturnValue_Type - SOAP::SOAPString
|
564
|
+
# value - AdWords::V200902::CampaignCriterionService::CampaignCriterion
|
565
|
+
class CampaignCriterionReturnValue < ListReturnValue
|
566
|
+
attr_accessor :listReturnValue_Type
|
567
|
+
attr_accessor :value
|
568
|
+
|
569
|
+
def initialize(listReturnValue_Type = nil, value = [])
|
570
|
+
@listReturnValue_Type = listReturnValue_Type
|
571
|
+
@value = value
|
572
|
+
end
|
573
|
+
end
|
574
|
+
|
575
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignCriterionSelector
|
576
|
+
# idFilters - AdWords::V200902::CampaignCriterionService::CampaignCriterionIdFilter
|
577
|
+
# paging - AdWords::V200902::CampaignCriterionService::Paging
|
578
|
+
class CampaignCriterionSelector
|
579
|
+
attr_accessor :idFilters
|
580
|
+
attr_accessor :paging
|
581
|
+
|
582
|
+
def initialize(idFilters = [], paging = nil)
|
583
|
+
@idFilters = idFilters
|
584
|
+
@paging = paging
|
585
|
+
end
|
586
|
+
end
|
587
|
+
|
588
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}AuthorizationError.Reason
|
589
|
+
class AuthorizationErrorReason < ::String
|
590
|
+
EFFECTIVE_USER_PERMISSION_DENIED = AuthorizationErrorReason.new("EFFECTIVE_USER_PERMISSION_DENIED")
|
591
|
+
NO_ADWORDS_ACCOUNT_FOR_CUSTOMER = AuthorizationErrorReason.new("NO_ADWORDS_ACCOUNT_FOR_CUSTOMER")
|
592
|
+
UNABLE_TO_AUTHORIZE = AuthorizationErrorReason.new("UNABLE_TO_AUTHORIZE")
|
593
|
+
USER_PERMISSION_DENIED = AuthorizationErrorReason.new("USER_PERMISSION_DENIED")
|
594
|
+
end
|
595
|
+
|
596
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignCriterionError.Reason
|
597
|
+
class CampaignCriterionErrorReason < ::String
|
598
|
+
CONCRETE_TYPE_REQUIRED = CampaignCriterionErrorReason.new("CONCRETE_TYPE_REQUIRED")
|
599
|
+
CRITERIA_QUOTA_EXCEEDED = CampaignCriterionErrorReason.new("CRITERIA_QUOTA_EXCEEDED")
|
600
|
+
INVALID_EXCLUDED_CATEGORY = CampaignCriterionErrorReason.new("INVALID_EXCLUDED_CATEGORY")
|
601
|
+
INVALID_KEYWORD_TEXT = CampaignCriterionErrorReason.new("INVALID_KEYWORD_TEXT")
|
602
|
+
INVALID_PLACEMENT_URL = CampaignCriterionErrorReason.new("INVALID_PLACEMENT_URL")
|
603
|
+
TOO_MANY_OPERTAIONS = CampaignCriterionErrorReason.new("TOO_MANY_OPERTAIONS")
|
604
|
+
end
|
605
|
+
|
606
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}CampaignCriterionLimitExceeded.CriteriaLimitType
|
607
|
+
class CampaignCriterionLimitExceededCriteriaLimitType < ::String
|
608
|
+
CAMPAIGN_NEGATIVE_KEYWORD = CampaignCriterionLimitExceededCriteriaLimitType.new("CAMPAIGN_NEGATIVE_KEYWORD")
|
609
|
+
CAMPAIGN_NEGATIVE_WEBSITE = CampaignCriterionLimitExceededCriteriaLimitType.new("CAMPAIGN_NEGATIVE_WEBSITE")
|
610
|
+
end
|
611
|
+
|
612
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}ContentLabelType
|
613
|
+
class ContentLabelType < ::String
|
614
|
+
ADULTISH = ContentLabelType.new("ADULTISH")
|
615
|
+
AFE = ContentLabelType.new("AFE")
|
616
|
+
CONFLICT = ContentLabelType.new("CONFLICT")
|
617
|
+
CONFLICT_TRAGEDY = ContentLabelType.new("CONFLICT_TRAGEDY")
|
618
|
+
DP = ContentLabelType.new("DP")
|
619
|
+
EDGY = ContentLabelType.new("EDGY")
|
620
|
+
EMBEDDED_VIDEO = ContentLabelType.new("EMBEDDED_VIDEO")
|
621
|
+
JACKASS = ContentLabelType.new("JACKASS")
|
622
|
+
PROFANITY = ContentLabelType.new("PROFANITY")
|
623
|
+
SENSITIVE = ContentLabelType.new("SENSITIVE")
|
624
|
+
SIRENS = ContentLabelType.new("SIRENS")
|
625
|
+
TRAGEDY = ContentLabelType.new("TRAGEDY")
|
626
|
+
UGC = ContentLabelType.new("UGC")
|
627
|
+
UGC_FORUMS = ContentLabelType.new("UGC_FORUMS")
|
628
|
+
UGC_IMAGES = ContentLabelType.new("UGC_IMAGES")
|
629
|
+
UGC_SOCIAL = ContentLabelType.new("UGC_SOCIAL")
|
630
|
+
UGC_VIDEOS = ContentLabelType.new("UGC_VIDEOS")
|
631
|
+
VIDEO = ContentLabelType.new("VIDEO")
|
632
|
+
end
|
633
|
+
|
634
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}DatabaseError.Reason
|
635
|
+
class DatabaseErrorReason < ::String
|
636
|
+
CANNOT_LOAD_AD = DatabaseErrorReason.new("CANNOT_LOAD_AD")
|
637
|
+
CANNOT_LOAD_ADGROUP = DatabaseErrorReason.new("CANNOT_LOAD_ADGROUP")
|
638
|
+
CANNOT_LOAD_CAMPAIGN = DatabaseErrorReason.new("CANNOT_LOAD_CAMPAIGN")
|
639
|
+
CANNOT_LOAD_CRITERION = DatabaseErrorReason.new("CANNOT_LOAD_CRITERION")
|
640
|
+
CANNOT_LOAD_MEDIA = DatabaseErrorReason.new("CANNOT_LOAD_MEDIA")
|
641
|
+
CONCURRENT_MODIFICATION = DatabaseErrorReason.new("CONCURRENT_MODIFICATION")
|
642
|
+
PERMISSION_DENIED = DatabaseErrorReason.new("PERMISSION_DENIED")
|
643
|
+
end
|
644
|
+
|
645
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}DistinctError.Reason
|
646
|
+
class DistinctErrorReason < ::String
|
647
|
+
DUPLICATE_ELEMENT = DistinctErrorReason.new("DUPLICATE_ELEMENT")
|
648
|
+
end
|
649
|
+
|
650
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}EntityCountLimitExceeded.Reason
|
651
|
+
class EntityCountLimitExceededReason < ::String
|
652
|
+
ACCOUNT_LIMIT = EntityCountLimitExceededReason.new("ACCOUNT_LIMIT")
|
653
|
+
ADGROUP_LIMIT = EntityCountLimitExceededReason.new("ADGROUP_LIMIT")
|
654
|
+
CAMPAIGN_LIMIT = EntityCountLimitExceededReason.new("CAMPAIGN_LIMIT")
|
655
|
+
end
|
656
|
+
|
657
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}KeywordMatchType
|
658
|
+
class KeywordMatchType < ::String
|
659
|
+
BROAD = KeywordMatchType.new("BROAD")
|
660
|
+
EXACT = KeywordMatchType.new("EXACT")
|
661
|
+
PHRASE = KeywordMatchType.new("PHRASE")
|
662
|
+
end
|
663
|
+
|
664
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}NewEntityCreationError.Reason
|
665
|
+
class NewEntityCreationErrorReason < ::String
|
666
|
+
CANNOT_SET_ID_FOR_ADD = NewEntityCreationErrorReason.new("CANNOT_SET_ID_FOR_ADD")
|
667
|
+
end
|
668
|
+
|
669
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}NotEmptyError.Reason
|
670
|
+
class NotEmptyErrorReason < ::String
|
671
|
+
EMPTY_LIST = NotEmptyErrorReason.new("EMPTY_LIST")
|
672
|
+
end
|
673
|
+
|
674
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}NotWhitelistedError.Reason
|
675
|
+
class NotWhitelistedErrorReason < ::String
|
676
|
+
CUSTOMER_NOT_WHITELISTED_FOR_API = NotWhitelistedErrorReason.new("CUSTOMER_NOT_WHITELISTED_FOR_API")
|
677
|
+
end
|
678
|
+
|
679
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}NullError.Reason
|
680
|
+
class NullErrorReason < ::String
|
681
|
+
NULL_CONTENT = NullErrorReason.new("NULL_CONTENT")
|
682
|
+
end
|
683
|
+
|
684
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}Operator
|
685
|
+
class Operator < ::String
|
686
|
+
ADD = Operator.new("ADD")
|
687
|
+
REMOVE = Operator.new("REMOVE")
|
688
|
+
SET = Operator.new("SET")
|
689
|
+
end
|
690
|
+
|
691
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}OperatorError.Reason
|
692
|
+
class OperatorErrorReason < ::String
|
693
|
+
OPERATOR_NOT_SUPPORTED = OperatorErrorReason.new("OPERATOR_NOT_SUPPORTED")
|
694
|
+
end
|
695
|
+
|
696
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}ReadOnlyError.Reason
|
697
|
+
class ReadOnlyErrorReason < ::String
|
698
|
+
READ_ONLY = ReadOnlyErrorReason.new("READ_ONLY")
|
699
|
+
end
|
700
|
+
|
701
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}RequiredError.Reason
|
702
|
+
class RequiredErrorReason < ::String
|
703
|
+
REQUIRED = RequiredErrorReason.new("REQUIRED")
|
704
|
+
end
|
705
|
+
|
706
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}get
|
707
|
+
# selector - AdWords::V200902::CampaignCriterionService::CampaignCriterionSelector
|
708
|
+
class Get
|
709
|
+
attr_accessor :selector
|
710
|
+
|
711
|
+
def initialize(selector = nil)
|
712
|
+
@selector = selector
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
716
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}getResponse
|
717
|
+
# rval - AdWords::V200902::CampaignCriterionService::CampaignCriterionPage
|
718
|
+
class GetResponse
|
719
|
+
attr_accessor :rval
|
720
|
+
|
721
|
+
def initialize(rval = nil)
|
722
|
+
@rval = rval
|
723
|
+
end
|
724
|
+
end
|
725
|
+
|
726
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}mutate
|
727
|
+
class Mutate < ::Array
|
728
|
+
end
|
729
|
+
|
730
|
+
# {https://adwords.google.com/api/adwords/cm/v200902}mutateResponse
|
731
|
+
# rval - AdWords::V200902::CampaignCriterionService::CampaignCriterionReturnValue
|
732
|
+
class MutateResponse
|
733
|
+
attr_accessor :rval
|
734
|
+
|
735
|
+
def initialize(rval = nil)
|
736
|
+
@rval = rval
|
737
|
+
end
|
738
|
+
end
|
739
|
+
|
740
|
+
|
741
|
+
end; end; end
|