adwords4r 0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Authors.txt +2 -0
- data/ChangeLog.txt +4 -0
- data/Copying.txt +28 -0
- data/Licence.txt +10 -0
- data/Rakefile +190 -0
- data/Readme.txt +61 -0
- data/Todo.txt +9 -0
- data/examples/campaign.rb +36 -0
- data/examples/framework.rb +6 -0
- data/lib/adwords4r.rb +136 -0
- data/lib/adwords4r/credentials.rb +37 -0
- data/lib/adwords4r/services.rb +41 -0
- data/lib/adwords4r/v2/AccountService.rb +626 -0
- data/lib/adwords4r/v2/AccountServiceDriver.rb +153 -0
- data/lib/adwords4r/v2/AdGroupService.rb +315 -0
- data/lib/adwords4r/v2/AdGroupServiceDriver.rb +97 -0
- data/lib/adwords4r/v2/CampaignService.rb +515 -0
- data/lib/adwords4r/v2/CampaignServiceDriver.rb +111 -0
- data/lib/adwords4r/v2/CreativeService.rb +399 -0
- data/lib/adwords4r/v2/CreativeServiceDriver.rb +104 -0
- data/lib/adwords4r/v2/CriterionService.rb +413 -0
- data/lib/adwords4r/v2/CriterionServiceDriver.rb +97 -0
- data/lib/adwords4r/v2/InfoService.rb +258 -0
- data/lib/adwords4r/v2/InfoServiceDriver.rb +90 -0
- data/lib/adwords4r/v2/KeywordService.rb +541 -0
- data/lib/adwords4r/v2/KeywordServiceDriver.rb +125 -0
- data/lib/adwords4r/v2/ReportService.rb +567 -0
- data/lib/adwords4r/v2/ReportServiceDriver.rb +83 -0
- data/lib/adwords4r/v2/TrafficEstimatorService.rb +249 -0
- data/lib/adwords4r/v2/TrafficEstimatorServiceDriver.rb +62 -0
- data/lib/adwords4r/v2/default.rb +364 -0
- data/lib/adwords4r/v2/defaultDriver.rb +102 -0
- data/lib/adwords4r/v3/AccountService.rb +626 -0
- data/lib/adwords4r/v3/AccountServiceDriver.rb +153 -0
- data/lib/adwords4r/v3/AdGroupService.rb +318 -0
- data/lib/adwords4r/v3/AdGroupServiceDriver.rb +97 -0
- data/lib/adwords4r/v3/CampaignService.rb +529 -0
- data/lib/adwords4r/v3/CampaignServiceDriver.rb +111 -0
- data/lib/adwords4r/v3/CreativeService.rb +399 -0
- data/lib/adwords4r/v3/CreativeServiceDriver.rb +104 -0
- data/lib/adwords4r/v3/CriterionService.rb +413 -0
- data/lib/adwords4r/v3/CriterionServiceDriver.rb +97 -0
- data/lib/adwords4r/v3/InfoService.rb +258 -0
- data/lib/adwords4r/v3/InfoServiceDriver.rb +90 -0
- data/lib/adwords4r/v3/KeywordService.rb +541 -0
- data/lib/adwords4r/v3/KeywordServiceDriver.rb +125 -0
- data/lib/adwords4r/v3/KeywordToolService.rb +225 -0
- data/lib/adwords4r/v3/KeywordToolServiceDriver.rb +55 -0
- data/lib/adwords4r/v3/ReportService.rb +567 -0
- data/lib/adwords4r/v3/ReportServiceDriver.rb +83 -0
- data/lib/adwords4r/v3/TrafficEstimatorService.rb +263 -0
- data/lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb +62 -0
- data/scripts/publish.rb +16 -0
- data/setup.rb +1585 -0
- metadata +92 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
require 'soap/header/simplehandler'
|
3
|
+
|
4
|
+
module AdWords
|
5
|
+
|
6
|
+
class HeaderHandler < SOAP::Header::SimpleHandler
|
7
|
+
def initialize(tag, value)
|
8
|
+
super(XSD::QName.new(nil, tag))
|
9
|
+
@tag = tag
|
10
|
+
@value = value
|
11
|
+
end
|
12
|
+
|
13
|
+
#the initial handler from the sample was wrong, it generated 2 level of tags
|
14
|
+
def on_simple_outbound
|
15
|
+
@value
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class AdWordsCredentials
|
20
|
+
attr_reader :handlers
|
21
|
+
|
22
|
+
def getDefaults()
|
23
|
+
prefs = YAML::load( File.open("#{ENV['HOME']}/.adwords-api.yaml", 'r'))
|
24
|
+
credentials = prefs['credentials']
|
25
|
+
end
|
26
|
+
|
27
|
+
def initialize(*parm)
|
28
|
+
@handlers = []
|
29
|
+
if parm[0]
|
30
|
+
credentials = parm[0]
|
31
|
+
else
|
32
|
+
credentials = getDefaults()
|
33
|
+
end
|
34
|
+
credentials.each {|key, value| @handlers << HeaderHandler.new(key, value)}
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
|
3
|
+
module AdWords
|
4
|
+
|
5
|
+
class Service
|
6
|
+
|
7
|
+
SERVICE_YAML = <<PAT
|
8
|
+
2: [Creative, Keyword, Criterion, AdGroup, Campaign, TrafficEstimator, Report, Info, Account]
|
9
|
+
3: [Creative, Keyword, Criterion, AdGroup, Campaign, TrafficEstimator, Report, Info, Account, KeywordTool]
|
10
|
+
PAT
|
11
|
+
|
12
|
+
@@services = YAML::load(SERVICE_YAML)
|
13
|
+
|
14
|
+
def Service.getVersions
|
15
|
+
@@services.keys
|
16
|
+
end
|
17
|
+
|
18
|
+
def Service.getServices(version)
|
19
|
+
@@services[version]
|
20
|
+
end
|
21
|
+
|
22
|
+
def Service.doRequire(version)
|
23
|
+
req = []
|
24
|
+
Service.getServices(version).each {|s| req << "require 'adwords4r/v#{version}/#{s}ServiceDriver'"}
|
25
|
+
req.each {|r| eval(r)}
|
26
|
+
end
|
27
|
+
|
28
|
+
def Service.getService(version, method)
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
def Service.getMethodMap(drivers)
|
33
|
+
#Service.getVersions.each do |v|
|
34
|
+
methodMap = Hash.new
|
35
|
+
drivers.each_value {|d| d.class::Methods.each {|m| methodMap[m[1]] = d}}
|
36
|
+
return methodMap
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
@@ -0,0 +1,626 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
# {https://adwords.google.com/api/adwords/v2}createAdWordsAccount
|
4
|
+
class CreateAdWordsAccount
|
5
|
+
@@schema_type = "createAdWordsAccount"
|
6
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
7
|
+
@@schema_qualified = "true"
|
8
|
+
@@schema_element = [
|
9
|
+
["loginEmail", "SOAP::SOAPString"],
|
10
|
+
["password", "SOAP::SOAPString"],
|
11
|
+
["languagePreference", "SOAP::SOAPString"],
|
12
|
+
["emailPrefs", "EmailPromotionsPreferences"],
|
13
|
+
["currencyCode", "SOAP::SOAPString"],
|
14
|
+
["cardInfo", "CreditCard"],
|
15
|
+
["contactInfo", "Address"],
|
16
|
+
["defaultAdsCoverage", "CoverageType"]
|
17
|
+
]
|
18
|
+
|
19
|
+
attr_accessor :loginEmail
|
20
|
+
attr_accessor :password
|
21
|
+
attr_accessor :languagePreference
|
22
|
+
attr_accessor :emailPrefs
|
23
|
+
attr_accessor :currencyCode
|
24
|
+
attr_accessor :cardInfo
|
25
|
+
attr_accessor :contactInfo
|
26
|
+
attr_accessor :defaultAdsCoverage
|
27
|
+
|
28
|
+
def initialize(loginEmail = nil, password = nil, languagePreference = nil, emailPrefs = nil, currencyCode = nil, cardInfo = nil, contactInfo = nil, defaultAdsCoverage = nil)
|
29
|
+
@loginEmail = loginEmail
|
30
|
+
@password = password
|
31
|
+
@languagePreference = languagePreference
|
32
|
+
@emailPrefs = emailPrefs
|
33
|
+
@currencyCode = currencyCode
|
34
|
+
@cardInfo = cardInfo
|
35
|
+
@contactInfo = contactInfo
|
36
|
+
@defaultAdsCoverage = defaultAdsCoverage
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# {https://adwords.google.com/api/adwords/v2}createAdWordsAccountResponse
|
41
|
+
class CreateAdWordsAccountResponse
|
42
|
+
@@schema_type = "createAdWordsAccountResponse"
|
43
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
44
|
+
@@schema_qualified = "true"
|
45
|
+
@@schema_element = []
|
46
|
+
|
47
|
+
def initialize
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# {https://adwords.google.com/api/adwords/v2}setLoginInfo
|
52
|
+
class SetLoginInfo
|
53
|
+
@@schema_type = "setLoginInfo"
|
54
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
55
|
+
@@schema_qualified = "true"
|
56
|
+
@@schema_element = [
|
57
|
+
["login", "SOAP::SOAPString"],
|
58
|
+
["newPassword", "SOAP::SOAPString"]
|
59
|
+
]
|
60
|
+
|
61
|
+
attr_accessor :login
|
62
|
+
attr_accessor :newPassword
|
63
|
+
|
64
|
+
def initialize(login = nil, newPassword = nil)
|
65
|
+
@login = login
|
66
|
+
@newPassword = newPassword
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# {https://adwords.google.com/api/adwords/v2}setLoginInfoResponse
|
71
|
+
class SetLoginInfoResponse
|
72
|
+
@@schema_type = "setLoginInfoResponse"
|
73
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
74
|
+
@@schema_qualified = "true"
|
75
|
+
@@schema_element = []
|
76
|
+
|
77
|
+
def initialize
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# {https://adwords.google.com/api/adwords/v2}getAccountCurrency
|
82
|
+
class GetAccountCurrency
|
83
|
+
@@schema_type = "getAccountCurrency"
|
84
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
85
|
+
@@schema_qualified = "true"
|
86
|
+
@@schema_element = []
|
87
|
+
|
88
|
+
def initialize
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# {https://adwords.google.com/api/adwords/v2}getAccountCurrencyResponse
|
93
|
+
class GetAccountCurrencyResponse
|
94
|
+
@@schema_type = "getAccountCurrencyResponse"
|
95
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
96
|
+
@@schema_qualified = "true"
|
97
|
+
@@schema_element = [
|
98
|
+
["getAccountCurrencyReturn", "SOAP::SOAPString"]
|
99
|
+
]
|
100
|
+
|
101
|
+
attr_accessor :getAccountCurrencyReturn
|
102
|
+
|
103
|
+
def initialize(getAccountCurrencyReturn = nil)
|
104
|
+
@getAccountCurrencyReturn = getAccountCurrencyReturn
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# {https://adwords.google.com/api/adwords/v2}getCreditCard
|
109
|
+
class GetCreditCard
|
110
|
+
@@schema_type = "getCreditCard"
|
111
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
112
|
+
@@schema_qualified = "true"
|
113
|
+
@@schema_element = []
|
114
|
+
|
115
|
+
def initialize
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# {https://adwords.google.com/api/adwords/v2}getCreditCardResponse
|
120
|
+
class GetCreditCardResponse
|
121
|
+
@@schema_type = "getCreditCardResponse"
|
122
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
123
|
+
@@schema_qualified = "true"
|
124
|
+
@@schema_element = [
|
125
|
+
["getCreditCardReturn", "CreditCard"]
|
126
|
+
]
|
127
|
+
|
128
|
+
attr_accessor :getCreditCardReturn
|
129
|
+
|
130
|
+
def initialize(getCreditCardReturn = nil)
|
131
|
+
@getCreditCardReturn = getCreditCardReturn
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# {https://adwords.google.com/api/adwords/v2}getBillingAddress
|
136
|
+
class GetBillingAddress
|
137
|
+
@@schema_type = "getBillingAddress"
|
138
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
139
|
+
@@schema_qualified = "true"
|
140
|
+
@@schema_element = []
|
141
|
+
|
142
|
+
def initialize
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# {https://adwords.google.com/api/adwords/v2}getBillingAddressResponse
|
147
|
+
class GetBillingAddressResponse
|
148
|
+
@@schema_type = "getBillingAddressResponse"
|
149
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
150
|
+
@@schema_qualified = "true"
|
151
|
+
@@schema_element = [
|
152
|
+
["getBillingAddressReturn", "Address"]
|
153
|
+
]
|
154
|
+
|
155
|
+
attr_accessor :getBillingAddressReturn
|
156
|
+
|
157
|
+
def initialize(getBillingAddressReturn = nil)
|
158
|
+
@getBillingAddressReturn = getBillingAddressReturn
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# {https://adwords.google.com/api/adwords/v2}setCreditCard
|
163
|
+
class SetCreditCard
|
164
|
+
@@schema_type = "setCreditCard"
|
165
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
166
|
+
@@schema_qualified = "true"
|
167
|
+
@@schema_element = [
|
168
|
+
["cardInfo", "CreditCard"],
|
169
|
+
["contactInfo", "Address"]
|
170
|
+
]
|
171
|
+
|
172
|
+
attr_accessor :cardInfo
|
173
|
+
attr_accessor :contactInfo
|
174
|
+
|
175
|
+
def initialize(cardInfo = nil, contactInfo = nil)
|
176
|
+
@cardInfo = cardInfo
|
177
|
+
@contactInfo = contactInfo
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# {https://adwords.google.com/api/adwords/v2}setCreditCardResponse
|
182
|
+
class SetCreditCardResponse
|
183
|
+
@@schema_type = "setCreditCardResponse"
|
184
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
185
|
+
@@schema_qualified = "true"
|
186
|
+
@@schema_element = []
|
187
|
+
|
188
|
+
def initialize
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
# {https://adwords.google.com/api/adwords/v2}getDefaultAdsCoverage
|
193
|
+
class GetDefaultAdsCoverage
|
194
|
+
@@schema_type = "getDefaultAdsCoverage"
|
195
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
196
|
+
@@schema_qualified = "true"
|
197
|
+
@@schema_element = []
|
198
|
+
|
199
|
+
def initialize
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
# {https://adwords.google.com/api/adwords/v2}getDefaultAdsCoverageResponse
|
204
|
+
class GetDefaultAdsCoverageResponse
|
205
|
+
@@schema_type = "getDefaultAdsCoverageResponse"
|
206
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
207
|
+
@@schema_qualified = "true"
|
208
|
+
@@schema_element = [
|
209
|
+
["getDefaultAdsCoverageReturn", "CoverageType"]
|
210
|
+
]
|
211
|
+
|
212
|
+
attr_accessor :getDefaultAdsCoverageReturn
|
213
|
+
|
214
|
+
def initialize(getDefaultAdsCoverageReturn = nil)
|
215
|
+
@getDefaultAdsCoverageReturn = getDefaultAdsCoverageReturn
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
# {https://adwords.google.com/api/adwords/v2}setDefaultAdsCoverage
|
220
|
+
class SetDefaultAdsCoverage
|
221
|
+
@@schema_type = "setDefaultAdsCoverage"
|
222
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
223
|
+
@@schema_qualified = "true"
|
224
|
+
@@schema_element = [
|
225
|
+
["coverage", "CoverageType"]
|
226
|
+
]
|
227
|
+
|
228
|
+
attr_accessor :coverage
|
229
|
+
|
230
|
+
def initialize(coverage = nil)
|
231
|
+
@coverage = coverage
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
# {https://adwords.google.com/api/adwords/v2}setDefaultAdsCoverageResponse
|
236
|
+
class SetDefaultAdsCoverageResponse
|
237
|
+
@@schema_type = "setDefaultAdsCoverageResponse"
|
238
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
239
|
+
@@schema_qualified = "true"
|
240
|
+
@@schema_element = []
|
241
|
+
|
242
|
+
def initialize
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
# {https://adwords.google.com/api/adwords/v2}getLanguagePreference
|
247
|
+
class GetLanguagePreference
|
248
|
+
@@schema_type = "getLanguagePreference"
|
249
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
250
|
+
@@schema_qualified = "true"
|
251
|
+
@@schema_element = []
|
252
|
+
|
253
|
+
def initialize
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# {https://adwords.google.com/api/adwords/v2}getLanguagePreferenceResponse
|
258
|
+
class GetLanguagePreferenceResponse
|
259
|
+
@@schema_type = "getLanguagePreferenceResponse"
|
260
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
261
|
+
@@schema_qualified = "true"
|
262
|
+
@@schema_element = [
|
263
|
+
["getLanguagePreferenceReturn", "SOAP::SOAPString"]
|
264
|
+
]
|
265
|
+
|
266
|
+
attr_accessor :getLanguagePreferenceReturn
|
267
|
+
|
268
|
+
def initialize(getLanguagePreferenceReturn = nil)
|
269
|
+
@getLanguagePreferenceReturn = getLanguagePreferenceReturn
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
# {https://adwords.google.com/api/adwords/v2}setLanguagePreference
|
274
|
+
class SetLanguagePreference
|
275
|
+
@@schema_type = "setLanguagePreference"
|
276
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
277
|
+
@@schema_qualified = "true"
|
278
|
+
@@schema_element = [
|
279
|
+
["languagePref", "SOAP::SOAPString"]
|
280
|
+
]
|
281
|
+
|
282
|
+
attr_accessor :languagePref
|
283
|
+
|
284
|
+
def initialize(languagePref = nil)
|
285
|
+
@languagePref = languagePref
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
# {https://adwords.google.com/api/adwords/v2}setLanguagePreferenceResponse
|
290
|
+
class SetLanguagePreferenceResponse
|
291
|
+
@@schema_type = "setLanguagePreferenceResponse"
|
292
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
293
|
+
@@schema_qualified = "true"
|
294
|
+
@@schema_element = []
|
295
|
+
|
296
|
+
def initialize
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
# {https://adwords.google.com/api/adwords/v2}getEmailPromotionsPreferences
|
301
|
+
class GetEmailPromotionsPreferences
|
302
|
+
@@schema_type = "getEmailPromotionsPreferences"
|
303
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
304
|
+
@@schema_qualified = "true"
|
305
|
+
@@schema_element = []
|
306
|
+
|
307
|
+
def initialize
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
311
|
+
# {https://adwords.google.com/api/adwords/v2}getEmailPromotionsPreferencesResponse
|
312
|
+
class GetEmailPromotionsPreferencesResponse
|
313
|
+
@@schema_type = "getEmailPromotionsPreferencesResponse"
|
314
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
315
|
+
@@schema_qualified = "true"
|
316
|
+
@@schema_element = [
|
317
|
+
["getEmailPromotionsPreferencesReturn", "EmailPromotionsPreferences"]
|
318
|
+
]
|
319
|
+
|
320
|
+
attr_accessor :getEmailPromotionsPreferencesReturn
|
321
|
+
|
322
|
+
def initialize(getEmailPromotionsPreferencesReturn = nil)
|
323
|
+
@getEmailPromotionsPreferencesReturn = getEmailPromotionsPreferencesReturn
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
# {https://adwords.google.com/api/adwords/v2}setEmailPromotionsPreferences
|
328
|
+
class SetEmailPromotionsPreferences
|
329
|
+
@@schema_type = "setEmailPromotionsPreferences"
|
330
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
331
|
+
@@schema_qualified = "true"
|
332
|
+
@@schema_element = [
|
333
|
+
["prefs", "EmailPromotionsPreferences"]
|
334
|
+
]
|
335
|
+
|
336
|
+
attr_accessor :prefs
|
337
|
+
|
338
|
+
def initialize(prefs = nil)
|
339
|
+
@prefs = prefs
|
340
|
+
end
|
341
|
+
end
|
342
|
+
|
343
|
+
# {https://adwords.google.com/api/adwords/v2}setEmailPromotionsPreferencesResponse
|
344
|
+
class SetEmailPromotionsPreferencesResponse
|
345
|
+
@@schema_type = "setEmailPromotionsPreferencesResponse"
|
346
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
347
|
+
@@schema_qualified = "true"
|
348
|
+
@@schema_element = []
|
349
|
+
|
350
|
+
def initialize
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
# {https://adwords.google.com/api/adwords/v2}getPrimaryBusinessCategory
|
355
|
+
class GetPrimaryBusinessCategory
|
356
|
+
@@schema_type = "getPrimaryBusinessCategory"
|
357
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
358
|
+
@@schema_qualified = "true"
|
359
|
+
@@schema_element = []
|
360
|
+
|
361
|
+
def initialize
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
# {https://adwords.google.com/api/adwords/v2}getPrimaryBusinessCategoryResponse
|
366
|
+
class GetPrimaryBusinessCategoryResponse
|
367
|
+
@@schema_type = "getPrimaryBusinessCategoryResponse"
|
368
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
369
|
+
@@schema_qualified = "true"
|
370
|
+
@@schema_element = [
|
371
|
+
["getPrimaryBusinessCategoryReturn", "SOAP::SOAPString"]
|
372
|
+
]
|
373
|
+
|
374
|
+
attr_accessor :getPrimaryBusinessCategoryReturn
|
375
|
+
|
376
|
+
def initialize(getPrimaryBusinessCategoryReturn = nil)
|
377
|
+
@getPrimaryBusinessCategoryReturn = getPrimaryBusinessCategoryReturn
|
378
|
+
end
|
379
|
+
end
|
380
|
+
|
381
|
+
# {https://adwords.google.com/api/adwords/v2}setPrimaryBusinessCategory
|
382
|
+
class SetPrimaryBusinessCategory
|
383
|
+
@@schema_type = "setPrimaryBusinessCategory"
|
384
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
385
|
+
@@schema_qualified = "true"
|
386
|
+
@@schema_element = [
|
387
|
+
["bizType", "SOAP::SOAPString"]
|
388
|
+
]
|
389
|
+
|
390
|
+
attr_accessor :bizType
|
391
|
+
|
392
|
+
def initialize(bizType = nil)
|
393
|
+
@bizType = bizType
|
394
|
+
end
|
395
|
+
end
|
396
|
+
|
397
|
+
# {https://adwords.google.com/api/adwords/v2}setPrimaryBusinessCategoryResponse
|
398
|
+
class SetPrimaryBusinessCategoryResponse
|
399
|
+
@@schema_type = "setPrimaryBusinessCategoryResponse"
|
400
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
401
|
+
@@schema_qualified = "true"
|
402
|
+
@@schema_element = []
|
403
|
+
|
404
|
+
def initialize
|
405
|
+
end
|
406
|
+
end
|
407
|
+
|
408
|
+
# {https://adwords.google.com/api/adwords/v2}getTermsAndConditions
|
409
|
+
class GetTermsAndConditions
|
410
|
+
@@schema_type = "getTermsAndConditions"
|
411
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
412
|
+
@@schema_qualified = "true"
|
413
|
+
@@schema_element = []
|
414
|
+
|
415
|
+
def initialize
|
416
|
+
end
|
417
|
+
end
|
418
|
+
|
419
|
+
# {https://adwords.google.com/api/adwords/v2}getTermsAndConditionsResponse
|
420
|
+
class GetTermsAndConditionsResponse
|
421
|
+
@@schema_type = "getTermsAndConditionsResponse"
|
422
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
423
|
+
@@schema_qualified = "true"
|
424
|
+
@@schema_element = [
|
425
|
+
["getTermsAndConditionsReturn", "SOAP::SOAPString"]
|
426
|
+
]
|
427
|
+
|
428
|
+
attr_accessor :getTermsAndConditionsReturn
|
429
|
+
|
430
|
+
def initialize(getTermsAndConditionsReturn = nil)
|
431
|
+
@getTermsAndConditionsReturn = getTermsAndConditionsReturn
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
# {https://adwords.google.com/api/adwords/v2}getClientAccounts
|
436
|
+
class GetClientAccounts
|
437
|
+
@@schema_type = "getClientAccounts"
|
438
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
439
|
+
@@schema_qualified = "true"
|
440
|
+
@@schema_element = []
|
441
|
+
|
442
|
+
def initialize
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
446
|
+
# {https://adwords.google.com/api/adwords/v2}getClientAccountsResponse
|
447
|
+
class GetClientAccountsResponse < ::Array
|
448
|
+
@@schema_element = [
|
449
|
+
["getClientAccountsReturn", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "getClientAccountsReturn")]]
|
450
|
+
]
|
451
|
+
end
|
452
|
+
|
453
|
+
# {https://adwords.google.com/api/adwords/v2}EmailPromotionsPreferences
|
454
|
+
class EmailPromotionsPreferences
|
455
|
+
@@schema_type = "EmailPromotionsPreferences"
|
456
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
457
|
+
@@schema_element = [
|
458
|
+
["marketResearchEnabled", "SOAP::SOAPBoolean"],
|
459
|
+
["newsletterEnabled", "SOAP::SOAPBoolean"],
|
460
|
+
["promotionsEnabled", "SOAP::SOAPBoolean"]
|
461
|
+
]
|
462
|
+
|
463
|
+
attr_accessor :marketResearchEnabled
|
464
|
+
attr_accessor :newsletterEnabled
|
465
|
+
attr_accessor :promotionsEnabled
|
466
|
+
|
467
|
+
def initialize(marketResearchEnabled = nil, newsletterEnabled = nil, promotionsEnabled = nil)
|
468
|
+
@marketResearchEnabled = marketResearchEnabled
|
469
|
+
@newsletterEnabled = newsletterEnabled
|
470
|
+
@promotionsEnabled = promotionsEnabled
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
# {https://adwords.google.com/api/adwords/v2}CreditCard
|
475
|
+
class CreditCard
|
476
|
+
@@schema_type = "CreditCard"
|
477
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
478
|
+
@@schema_element = [
|
479
|
+
["cardType", "CreditCardType"],
|
480
|
+
["cardNumber", "SOAP::SOAPString"],
|
481
|
+
["expirationMonth", "SOAP::SOAPInt"],
|
482
|
+
["expirationYear", "SOAP::SOAPInt"],
|
483
|
+
["cardVerificationNumber", "SOAP::SOAPString"],
|
484
|
+
["issueNumber", "SOAP::SOAPString"],
|
485
|
+
["startMonth", "SOAP::SOAPInt"],
|
486
|
+
["startYear", "SOAP::SOAPInt"],
|
487
|
+
["status", "TaxStatus"],
|
488
|
+
["taxNumber", "SOAP::SOAPString"]
|
489
|
+
]
|
490
|
+
|
491
|
+
attr_accessor :cardType
|
492
|
+
attr_accessor :cardNumber
|
493
|
+
attr_accessor :expirationMonth
|
494
|
+
attr_accessor :expirationYear
|
495
|
+
attr_accessor :cardVerificationNumber
|
496
|
+
attr_accessor :issueNumber
|
497
|
+
attr_accessor :startMonth
|
498
|
+
attr_accessor :startYear
|
499
|
+
attr_accessor :status
|
500
|
+
attr_accessor :taxNumber
|
501
|
+
|
502
|
+
def initialize(cardType = nil, cardNumber = nil, expirationMonth = nil, expirationYear = nil, cardVerificationNumber = nil, issueNumber = nil, startMonth = nil, startYear = nil, status = nil, taxNumber = nil)
|
503
|
+
@cardType = cardType
|
504
|
+
@cardNumber = cardNumber
|
505
|
+
@expirationMonth = expirationMonth
|
506
|
+
@expirationYear = expirationYear
|
507
|
+
@cardVerificationNumber = cardVerificationNumber
|
508
|
+
@issueNumber = issueNumber
|
509
|
+
@startMonth = startMonth
|
510
|
+
@startYear = startYear
|
511
|
+
@status = status
|
512
|
+
@taxNumber = taxNumber
|
513
|
+
end
|
514
|
+
end
|
515
|
+
|
516
|
+
# {https://adwords.google.com/api/adwords/v2}Address
|
517
|
+
class Address
|
518
|
+
@@schema_type = "Address"
|
519
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
520
|
+
@@schema_element = [
|
521
|
+
["name", "SOAP::SOAPString"],
|
522
|
+
["companyName", "SOAP::SOAPString"],
|
523
|
+
["addressLine1", "SOAP::SOAPString"],
|
524
|
+
["addressLine2", "SOAP::SOAPString"],
|
525
|
+
["city", "SOAP::SOAPString"],
|
526
|
+
["state", "SOAP::SOAPString"],
|
527
|
+
["postalCode", "SOAP::SOAPString"],
|
528
|
+
["countryCode", "SOAP::SOAPString"],
|
529
|
+
["phoneNumber", "SOAP::SOAPString"],
|
530
|
+
["faxNumber", "SOAP::SOAPString"]
|
531
|
+
]
|
532
|
+
|
533
|
+
attr_accessor :name
|
534
|
+
attr_accessor :companyName
|
535
|
+
attr_accessor :addressLine1
|
536
|
+
attr_accessor :addressLine2
|
537
|
+
attr_accessor :city
|
538
|
+
attr_accessor :state
|
539
|
+
attr_accessor :postalCode
|
540
|
+
attr_accessor :countryCode
|
541
|
+
attr_accessor :phoneNumber
|
542
|
+
attr_accessor :faxNumber
|
543
|
+
|
544
|
+
def initialize(name = nil, companyName = nil, addressLine1 = nil, addressLine2 = nil, city = nil, state = nil, postalCode = nil, countryCode = nil, phoneNumber = nil, faxNumber = nil)
|
545
|
+
@name = name
|
546
|
+
@companyName = companyName
|
547
|
+
@addressLine1 = addressLine1
|
548
|
+
@addressLine2 = addressLine2
|
549
|
+
@city = city
|
550
|
+
@state = state
|
551
|
+
@postalCode = postalCode
|
552
|
+
@countryCode = countryCode
|
553
|
+
@phoneNumber = phoneNumber
|
554
|
+
@faxNumber = faxNumber
|
555
|
+
end
|
556
|
+
end
|
557
|
+
|
558
|
+
# {https://adwords.google.com/api/adwords/v2}CoverageType
|
559
|
+
class CoverageType
|
560
|
+
@@schema_type = "CoverageType"
|
561
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
562
|
+
@@schema_element = [
|
563
|
+
["optInContentNetwork", "SOAP::SOAPBoolean"],
|
564
|
+
["optInSearchNetwork", "SOAP::SOAPBoolean"]
|
565
|
+
]
|
566
|
+
|
567
|
+
attr_accessor :optInContentNetwork
|
568
|
+
attr_accessor :optInSearchNetwork
|
569
|
+
|
570
|
+
def initialize(optInContentNetwork = nil, optInSearchNetwork = nil)
|
571
|
+
@optInContentNetwork = optInContentNetwork
|
572
|
+
@optInSearchNetwork = optInSearchNetwork
|
573
|
+
end
|
574
|
+
end
|
575
|
+
|
576
|
+
# {https://adwords.google.com/api/adwords/v2}ApiException
|
577
|
+
class ApiException
|
578
|
+
@@schema_type = "ApiException"
|
579
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
580
|
+
@@schema_element = [
|
581
|
+
["code", "SOAP::SOAPInt"],
|
582
|
+
["internal", "SOAP::SOAPBoolean"],
|
583
|
+
["message", "SOAP::SOAPString"],
|
584
|
+
["trigger", "SOAP::SOAPString"],
|
585
|
+
["violations", "SOAP::SOAPString"]
|
586
|
+
]
|
587
|
+
|
588
|
+
attr_accessor :code
|
589
|
+
attr_accessor :internal
|
590
|
+
attr_accessor :message
|
591
|
+
attr_accessor :trigger
|
592
|
+
attr_accessor :violations
|
593
|
+
|
594
|
+
def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
|
595
|
+
@code = code
|
596
|
+
@internal = internal
|
597
|
+
@message = message
|
598
|
+
@trigger = trigger
|
599
|
+
@violations = violations
|
600
|
+
end
|
601
|
+
end
|
602
|
+
|
603
|
+
# {https://adwords.google.com/api/adwords/v2}CreditCardType
|
604
|
+
class CreditCardType < ::String
|
605
|
+
@@schema_type = "CreditCardType"
|
606
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
607
|
+
|
608
|
+
AmericanExpress = CreditCardType.new("AmericanExpress")
|
609
|
+
JCB = CreditCardType.new("JCB")
|
610
|
+
MasterCard = CreditCardType.new("MasterCard")
|
611
|
+
SOLO = CreditCardType.new("SOLO")
|
612
|
+
Switch = CreditCardType.new("Switch")
|
613
|
+
VISA = CreditCardType.new("VISA")
|
614
|
+
end
|
615
|
+
|
616
|
+
# {https://adwords.google.com/api/adwords/v2}TaxStatus
|
617
|
+
class TaxStatus < ::String
|
618
|
+
@@schema_type = "TaxStatus"
|
619
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
620
|
+
|
621
|
+
Charity = TaxStatus.new("Charity")
|
622
|
+
ExtraTerritorial = TaxStatus.new("ExtraTerritorial")
|
623
|
+
Other = TaxStatus.new("Other")
|
624
|
+
SubjectToTax = TaxStatus.new("SubjectToTax")
|
625
|
+
ZeroRated = TaxStatus.new("ZeroRated")
|
626
|
+
end
|