adwords4r 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/Authors.txt +2 -0
  2. data/ChangeLog.txt +4 -0
  3. data/Copying.txt +28 -0
  4. data/Licence.txt +10 -0
  5. data/Rakefile +190 -0
  6. data/Readme.txt +61 -0
  7. data/Todo.txt +9 -0
  8. data/examples/campaign.rb +36 -0
  9. data/examples/framework.rb +6 -0
  10. data/lib/adwords4r.rb +136 -0
  11. data/lib/adwords4r/credentials.rb +37 -0
  12. data/lib/adwords4r/services.rb +41 -0
  13. data/lib/adwords4r/v2/AccountService.rb +626 -0
  14. data/lib/adwords4r/v2/AccountServiceDriver.rb +153 -0
  15. data/lib/adwords4r/v2/AdGroupService.rb +315 -0
  16. data/lib/adwords4r/v2/AdGroupServiceDriver.rb +97 -0
  17. data/lib/adwords4r/v2/CampaignService.rb +515 -0
  18. data/lib/adwords4r/v2/CampaignServiceDriver.rb +111 -0
  19. data/lib/adwords4r/v2/CreativeService.rb +399 -0
  20. data/lib/adwords4r/v2/CreativeServiceDriver.rb +104 -0
  21. data/lib/adwords4r/v2/CriterionService.rb +413 -0
  22. data/lib/adwords4r/v2/CriterionServiceDriver.rb +97 -0
  23. data/lib/adwords4r/v2/InfoService.rb +258 -0
  24. data/lib/adwords4r/v2/InfoServiceDriver.rb +90 -0
  25. data/lib/adwords4r/v2/KeywordService.rb +541 -0
  26. data/lib/adwords4r/v2/KeywordServiceDriver.rb +125 -0
  27. data/lib/adwords4r/v2/ReportService.rb +567 -0
  28. data/lib/adwords4r/v2/ReportServiceDriver.rb +83 -0
  29. data/lib/adwords4r/v2/TrafficEstimatorService.rb +249 -0
  30. data/lib/adwords4r/v2/TrafficEstimatorServiceDriver.rb +62 -0
  31. data/lib/adwords4r/v2/default.rb +364 -0
  32. data/lib/adwords4r/v2/defaultDriver.rb +102 -0
  33. data/lib/adwords4r/v3/AccountService.rb +626 -0
  34. data/lib/adwords4r/v3/AccountServiceDriver.rb +153 -0
  35. data/lib/adwords4r/v3/AdGroupService.rb +318 -0
  36. data/lib/adwords4r/v3/AdGroupServiceDriver.rb +97 -0
  37. data/lib/adwords4r/v3/CampaignService.rb +529 -0
  38. data/lib/adwords4r/v3/CampaignServiceDriver.rb +111 -0
  39. data/lib/adwords4r/v3/CreativeService.rb +399 -0
  40. data/lib/adwords4r/v3/CreativeServiceDriver.rb +104 -0
  41. data/lib/adwords4r/v3/CriterionService.rb +413 -0
  42. data/lib/adwords4r/v3/CriterionServiceDriver.rb +97 -0
  43. data/lib/adwords4r/v3/InfoService.rb +258 -0
  44. data/lib/adwords4r/v3/InfoServiceDriver.rb +90 -0
  45. data/lib/adwords4r/v3/KeywordService.rb +541 -0
  46. data/lib/adwords4r/v3/KeywordServiceDriver.rb +125 -0
  47. data/lib/adwords4r/v3/KeywordToolService.rb +225 -0
  48. data/lib/adwords4r/v3/KeywordToolServiceDriver.rb +55 -0
  49. data/lib/adwords4r/v3/ReportService.rb +567 -0
  50. data/lib/adwords4r/v3/ReportServiceDriver.rb +83 -0
  51. data/lib/adwords4r/v3/TrafficEstimatorService.rb +263 -0
  52. data/lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb +62 -0
  53. data/scripts/publish.rb +16 -0
  54. data/setup.rb +1585 -0
  55. metadata +92 -0
@@ -0,0 +1,97 @@
1
+ require 'adwords4r/v3/CriterionService'
2
+
3
+ require 'soap/rpc/driver'
4
+ module AdWordsV3
5
+
6
+ class CriterionService < ::SOAP::RPC::Driver
7
+ DefaultEndpointUrl = "https://adwords.google.com:443/api/adwords/v3/CriterionService"
8
+ MappingRegistry = ::SOAP::Mapping::Registry.new
9
+
10
+ Methods = [
11
+ [ "",
12
+ "getAllCriteria",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getAllCriteria"], true],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getAllCriteriaResponse"], true] ],
15
+ { :request_style => :document, :request_use => :literal,
16
+ :response_style => :document, :response_use => :literal }
17
+ ],
18
+ [ "",
19
+ "getCriteria",
20
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCriteria"], true],
21
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCriteriaResponse"], true] ],
22
+ { :request_style => :document, :request_use => :literal,
23
+ :response_style => :document, :response_use => :literal }
24
+ ],
25
+ [ "",
26
+ "updateCriteria",
27
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "updateCriteria"], true],
28
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "updateCriteriaResponse"], true] ],
29
+ { :request_style => :document, :request_use => :literal,
30
+ :response_style => :document, :response_use => :literal }
31
+ ],
32
+ [ "",
33
+ "addCriteria",
34
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "addCriteria"], true],
35
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "addCriteriaResponse"], true] ],
36
+ { :request_style => :document, :request_use => :literal,
37
+ :response_style => :document, :response_use => :literal }
38
+ ],
39
+ [ "",
40
+ "removeCriteria",
41
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "removeCriteria"], true],
42
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "removeCriteriaResponse"], true] ],
43
+ { :request_style => :document, :request_use => :literal,
44
+ :response_style => :document, :response_use => :literal }
45
+ ],
46
+ [ "",
47
+ "getCriterionStats",
48
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCriterionStats"], true],
49
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCriterionStatsResponse"], true] ],
50
+ { :request_style => :document, :request_use => :literal,
51
+ :response_style => :document, :response_use => :literal }
52
+ ],
53
+ [ "",
54
+ "getCampaignNegativeCriteria",
55
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCampaignNegativeCriteria"], true],
56
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getCampaignNegativeCriteriaResponse"], true] ],
57
+ { :request_style => :document, :request_use => :literal,
58
+ :response_style => :document, :response_use => :literal }
59
+ ],
60
+ [ "",
61
+ "setCampaignNegativeCriteria",
62
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "setCampaignNegativeCriteria"], true],
63
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "setCampaignNegativeCriteriaResponse"], true] ],
64
+ { :request_style => :document, :request_use => :literal,
65
+ :response_style => :document, :response_use => :literal }
66
+ ]
67
+ ]
68
+
69
+ def initialize(endpoint_url = nil)
70
+ endpoint_url ||= DefaultEndpointUrl
71
+ super(endpoint_url, nil)
72
+ self.mapping_registry = MappingRegistry
73
+ init_methods
74
+ end
75
+
76
+ private
77
+
78
+ def init_methods
79
+ Methods.each do |definitions|
80
+ opt = definitions.last
81
+ if opt[:request_style] == :document
82
+ add_document_operation(*definitions)
83
+ else
84
+ add_rpc_operation(*definitions)
85
+ qname = definitions[0]
86
+ name = definitions[2]
87
+ if qname.name != name and qname.name.capitalize == name.capitalize
88
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
89
+ __send__(name, *arg)
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end
96
+
97
+ end
@@ -0,0 +1,258 @@
1
+ require 'xsd/qname'
2
+
3
+ # {https://adwords.google.com/api/adwords/v3}getOperationCount
4
+ class GetOperationCount
5
+ @@schema_type = "getOperationCount"
6
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
7
+ @@schema_qualified = "true"
8
+ @@schema_element = [
9
+ ["startDate", "Date"],
10
+ ["endDate", "Date"]
11
+ ]
12
+
13
+ attr_accessor :startDate
14
+ attr_accessor :endDate
15
+
16
+ def initialize(startDate = nil, endDate = nil)
17
+ @startDate = startDate
18
+ @endDate = endDate
19
+ end
20
+ end
21
+
22
+ # {https://adwords.google.com/api/adwords/v3}getOperationCountResponse
23
+ class GetOperationCountResponse
24
+ @@schema_type = "getOperationCountResponse"
25
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
26
+ @@schema_qualified = "true"
27
+ @@schema_element = [
28
+ ["getOperationCountReturn", "Long"]
29
+ ]
30
+
31
+ attr_accessor :getOperationCountReturn
32
+
33
+ def initialize(getOperationCountReturn = nil)
34
+ @getOperationCountReturn = getOperationCountReturn
35
+ end
36
+ end
37
+
38
+ # {https://adwords.google.com/api/adwords/v3}getOperationsQuotaThisMonth
39
+ class GetOperationsQuotaThisMonth
40
+ @@schema_type = "getOperationsQuotaThisMonth"
41
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
42
+ @@schema_qualified = "true"
43
+ @@schema_element = []
44
+
45
+ def initialize
46
+ end
47
+ end
48
+
49
+ # {https://adwords.google.com/api/adwords/v3}getOperationsQuotaThisMonthResponse
50
+ class GetOperationsQuotaThisMonthResponse
51
+ @@schema_type = "getOperationsQuotaThisMonthResponse"
52
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
53
+ @@schema_qualified = "true"
54
+ @@schema_element = [
55
+ ["getOperationsQuotaThisMonthReturn", "Long"]
56
+ ]
57
+
58
+ attr_accessor :getOperationsQuotaThisMonthReturn
59
+
60
+ def initialize(getOperationsQuotaThisMonthReturn = nil)
61
+ @getOperationsQuotaThisMonthReturn = getOperationsQuotaThisMonthReturn
62
+ end
63
+ end
64
+
65
+ # {https://adwords.google.com/api/adwords/v3}getUsageQuotaThisMonth
66
+ class GetUsageQuotaThisMonth
67
+ @@schema_type = "getUsageQuotaThisMonth"
68
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
69
+ @@schema_qualified = "true"
70
+ @@schema_element = []
71
+
72
+ def initialize
73
+ end
74
+ end
75
+
76
+ # {https://adwords.google.com/api/adwords/v3}getUsageQuotaThisMonthResponse
77
+ class GetUsageQuotaThisMonthResponse
78
+ @@schema_type = "getUsageQuotaThisMonthResponse"
79
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
80
+ @@schema_qualified = "true"
81
+ @@schema_element = [
82
+ ["getUsageQuotaThisMonthReturn", "Long"]
83
+ ]
84
+
85
+ attr_accessor :getUsageQuotaThisMonthReturn
86
+
87
+ def initialize(getUsageQuotaThisMonthReturn = nil)
88
+ @getUsageQuotaThisMonthReturn = getUsageQuotaThisMonthReturn
89
+ end
90
+ end
91
+
92
+ # {https://adwords.google.com/api/adwords/v3}getFreeUsageQuotaThisMonth
93
+ class GetFreeUsageQuotaThisMonth
94
+ @@schema_type = "getFreeUsageQuotaThisMonth"
95
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
96
+ @@schema_qualified = "true"
97
+ @@schema_element = []
98
+
99
+ def initialize
100
+ end
101
+ end
102
+
103
+ # {https://adwords.google.com/api/adwords/v3}getFreeUsageQuotaThisMonthResponse
104
+ class GetFreeUsageQuotaThisMonthResponse
105
+ @@schema_type = "getFreeUsageQuotaThisMonthResponse"
106
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
107
+ @@schema_qualified = "true"
108
+ @@schema_element = [
109
+ ["getFreeUsageQuotaThisMonthReturn", "Long"]
110
+ ]
111
+
112
+ attr_accessor :getFreeUsageQuotaThisMonthReturn
113
+
114
+ def initialize(getFreeUsageQuotaThisMonthReturn = nil)
115
+ @getFreeUsageQuotaThisMonthReturn = getFreeUsageQuotaThisMonthReturn
116
+ end
117
+ end
118
+
119
+ # {https://adwords.google.com/api/adwords/v3}getMethodCost
120
+ class GetMethodCost
121
+ @@schema_type = "getMethodCost"
122
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
123
+ @@schema_qualified = "true"
124
+ @@schema_element = [
125
+ ["service", "String"],
126
+ ["method", "String"],
127
+ ["date", "Date"]
128
+ ]
129
+
130
+ attr_accessor :service
131
+ attr_accessor :method
132
+ attr_accessor :date
133
+
134
+ def initialize(service = nil, method = nil, date = nil)
135
+ @service = service
136
+ @method = method
137
+ @date = date
138
+ end
139
+ end
140
+
141
+ # {https://adwords.google.com/api/adwords/v3}getMethodCostResponse
142
+ class GetMethodCostResponse
143
+ @@schema_type = "getMethodCostResponse"
144
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
145
+ @@schema_qualified = "true"
146
+ @@schema_element = [
147
+ ["getMethodCostReturn", "Int"]
148
+ ]
149
+
150
+ attr_accessor :getMethodCostReturn
151
+
152
+ def initialize(getMethodCostReturn = nil)
153
+ @getMethodCostReturn = getMethodCostReturn
154
+ end
155
+ end
156
+
157
+ # {https://adwords.google.com/api/adwords/v3}getUnitCount
158
+ class GetUnitCount
159
+ @@schema_type = "getUnitCount"
160
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
161
+ @@schema_qualified = "true"
162
+ @@schema_element = [
163
+ ["startDate", "Date"],
164
+ ["endDate", "Date"]
165
+ ]
166
+
167
+ attr_accessor :startDate
168
+ attr_accessor :endDate
169
+
170
+ def initialize(startDate = nil, endDate = nil)
171
+ @startDate = startDate
172
+ @endDate = endDate
173
+ end
174
+ end
175
+
176
+ # {https://adwords.google.com/api/adwords/v3}getUnitCountResponse
177
+ class GetUnitCountResponse
178
+ @@schema_type = "getUnitCountResponse"
179
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
180
+ @@schema_qualified = "true"
181
+ @@schema_element = [
182
+ ["getUnitCountReturn", "Long"]
183
+ ]
184
+
185
+ attr_accessor :getUnitCountReturn
186
+
187
+ def initialize(getUnitCountReturn = nil)
188
+ @getUnitCountReturn = getUnitCountReturn
189
+ end
190
+ end
191
+
192
+ # {https://adwords.google.com/api/adwords/v3}getUnitCountForMethod
193
+ class GetUnitCountForMethod
194
+ @@schema_type = "getUnitCountForMethod"
195
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
196
+ @@schema_qualified = "true"
197
+ @@schema_element = [
198
+ ["service", "String"],
199
+ ["method", "String"],
200
+ ["startDate", "Date"],
201
+ ["endDate", "Date"]
202
+ ]
203
+
204
+ attr_accessor :service
205
+ attr_accessor :method
206
+ attr_accessor :startDate
207
+ attr_accessor :endDate
208
+
209
+ def initialize(service = nil, method = nil, startDate = nil, endDate = nil)
210
+ @service = service
211
+ @method = method
212
+ @startDate = startDate
213
+ @endDate = endDate
214
+ end
215
+ end
216
+
217
+ # {https://adwords.google.com/api/adwords/v3}getUnitCountForMethodResponse
218
+ class GetUnitCountForMethodResponse
219
+ @@schema_type = "getUnitCountForMethodResponse"
220
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
221
+ @@schema_qualified = "true"
222
+ @@schema_element = [
223
+ ["getUnitCountForMethodReturn", "Long"]
224
+ ]
225
+
226
+ attr_accessor :getUnitCountForMethodReturn
227
+
228
+ def initialize(getUnitCountForMethodReturn = nil)
229
+ @getUnitCountForMethodReturn = getUnitCountForMethodReturn
230
+ end
231
+ end
232
+
233
+ # {https://adwords.google.com/api/adwords/v3}ApiException
234
+ class ApiException
235
+ @@schema_type = "ApiException"
236
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
237
+ @@schema_element = [
238
+ ["code", "Int"],
239
+ ["internal", "Boolean"],
240
+ ["message", "String"],
241
+ ["trigger", "String"],
242
+ ["violations", "String"]
243
+ ]
244
+
245
+ attr_accessor :code
246
+ attr_accessor :internal
247
+ attr_accessor :message
248
+ attr_accessor :trigger
249
+ attr_accessor :violations
250
+
251
+ def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
252
+ @code = code
253
+ @internal = internal
254
+ @message = message
255
+ @trigger = trigger
256
+ @violations = violations
257
+ end
258
+ end
@@ -0,0 +1,90 @@
1
+ require 'adwords4r/v3/InfoService'
2
+
3
+ require 'soap/rpc/driver'
4
+ module AdWordsV3
5
+
6
+ class InfoServiceInterface < ::SOAP::RPC::Driver
7
+ DefaultEndpointUrl = "https://adwords.google.com:443/api/adwords/v3/InfoService"
8
+ MappingRegistry = ::SOAP::Mapping::Registry.new
9
+
10
+ Methods = [
11
+ [ "",
12
+ "getOperationCount",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getOperationCount"], true],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getOperationCountResponse"], true] ],
15
+ { :request_style => :document, :request_use => :literal,
16
+ :response_style => :document, :response_use => :literal }
17
+ ],
18
+ [ "",
19
+ "getOperationsQuotaThisMonth",
20
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getOperationsQuotaThisMonth"], true],
21
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getOperationsQuotaThisMonthResponse"], true] ],
22
+ { :request_style => :document, :request_use => :literal,
23
+ :response_style => :document, :response_use => :literal }
24
+ ],
25
+ [ "",
26
+ "getUsageQuotaThisMonth",
27
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getUsageQuotaThisMonth"], true],
28
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getUsageQuotaThisMonthResponse"], true] ],
29
+ { :request_style => :document, :request_use => :literal,
30
+ :response_style => :document, :response_use => :literal }
31
+ ],
32
+ [ "",
33
+ "getFreeUsageQuotaThisMonth",
34
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getFreeUsageQuotaThisMonth"], true],
35
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getFreeUsageQuotaThisMonthResponse"], true] ],
36
+ { :request_style => :document, :request_use => :literal,
37
+ :response_style => :document, :response_use => :literal }
38
+ ],
39
+ [ "",
40
+ "getMethodCost",
41
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getMethodCost"], true],
42
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getMethodCostResponse"], true] ],
43
+ { :request_style => :document, :request_use => :literal,
44
+ :response_style => :document, :response_use => :literal }
45
+ ],
46
+ [ "",
47
+ "getUnitCount",
48
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getUnitCount"], true],
49
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getUnitCountResponse"], true] ],
50
+ { :request_style => :document, :request_use => :literal,
51
+ :response_style => :document, :response_use => :literal }
52
+ ],
53
+ [ "",
54
+ "getUnitCountForMethod",
55
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getUnitCountForMethod"], true],
56
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v3", "getUnitCountForMethodResponse"], true] ],
57
+ { :request_style => :document, :request_use => :literal,
58
+ :response_style => :document, :response_use => :literal }
59
+ ]
60
+ ]
61
+
62
+ def initialize(endpoint_url = nil)
63
+ endpoint_url ||= DefaultEndpointUrl
64
+ super(endpoint_url, nil)
65
+ self.mapping_registry = MappingRegistry
66
+ init_methods
67
+ end
68
+
69
+ private
70
+
71
+ def init_methods
72
+ Methods.each do |definitions|
73
+ opt = definitions.last
74
+ if opt[:request_style] == :document
75
+ add_document_operation(*definitions)
76
+ else
77
+ add_rpc_operation(*definitions)
78
+ qname = definitions[0]
79
+ name = definitions[2]
80
+ if qname.name != name and qname.name.capitalize == name.capitalize
81
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
82
+ __send__(name, *arg)
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
89
+
90
+ end
@@ -0,0 +1,541 @@
1
+ require 'xsd/qname'
2
+
3
+ # {https://adwords.google.com/api/adwords/v3}getAllKeywords
4
+ class GetAllKeywords
5
+ @@schema_type = "getAllKeywords"
6
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
7
+ @@schema_qualified = "true"
8
+ @@schema_element = [
9
+ ["adGroupId", "SOAP::SOAPInt"]
10
+ ]
11
+
12
+ attr_accessor :adGroupId
13
+
14
+ def initialize(adGroupId = nil)
15
+ @adGroupId = adGroupId
16
+ end
17
+ end
18
+
19
+ # {https://adwords.google.com/api/adwords/v3}getAllKeywordsResponse
20
+ class GetAllKeywordsResponse < ::Array
21
+ @@schema_element = [
22
+ ["getAllKeywordsReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "getAllKeywordsReturn")]]
23
+ ]
24
+ end
25
+
26
+ # {https://adwords.google.com/api/adwords/v3}getKeywordList
27
+ class GetKeywordList
28
+ @@schema_type = "getKeywordList"
29
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
30
+ @@schema_qualified = "true"
31
+ @@schema_element = [
32
+ ["adGroupId", "SOAP::SOAPInt"],
33
+ ["keywordIds", "SOAP::SOAPLong[]"]
34
+ ]
35
+
36
+ attr_accessor :adGroupId
37
+ attr_accessor :keywordIds
38
+
39
+ def initialize(adGroupId = nil, keywordIds = [])
40
+ @adGroupId = adGroupId
41
+ @keywordIds = keywordIds
42
+ end
43
+ end
44
+
45
+ # {https://adwords.google.com/api/adwords/v3}getKeywordListResponse
46
+ class GetKeywordListResponse < ::Array
47
+ @@schema_element = [
48
+ ["getKeywordListReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "getKeywordListReturn")]]
49
+ ]
50
+ end
51
+
52
+ # {https://adwords.google.com/api/adwords/v3}getActiveKeywords
53
+ class GetActiveKeywords
54
+ @@schema_type = "getActiveKeywords"
55
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
56
+ @@schema_qualified = "true"
57
+ @@schema_element = [
58
+ ["adGroupId", "SOAP::SOAPInt"]
59
+ ]
60
+
61
+ attr_accessor :adGroupId
62
+
63
+ def initialize(adGroupId = nil)
64
+ @adGroupId = adGroupId
65
+ end
66
+ end
67
+
68
+ # {https://adwords.google.com/api/adwords/v3}getActiveKeywordsResponse
69
+ class GetActiveKeywordsResponse < ::Array
70
+ @@schema_element = [
71
+ ["getActiveKeywordsReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "getActiveKeywordsReturn")]]
72
+ ]
73
+ end
74
+
75
+ # {https://adwords.google.com/api/adwords/v3}setKeywordListMaxCpc
76
+ class SetKeywordListMaxCpc
77
+ @@schema_type = "setKeywordListMaxCpc"
78
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
79
+ @@schema_qualified = "true"
80
+ @@schema_element = [
81
+ ["adGroupId", "SOAP::SOAPInt"],
82
+ ["keywordIds", "SOAP::SOAPLong[]"],
83
+ ["maxCpcs", "SOAP::SOAPLong[]"]
84
+ ]
85
+
86
+ attr_accessor :adGroupId
87
+ attr_accessor :keywordIds
88
+ attr_accessor :maxCpcs
89
+
90
+ def initialize(adGroupId = nil, keywordIds = [], maxCpcs = [])
91
+ @adGroupId = adGroupId
92
+ @keywordIds = keywordIds
93
+ @maxCpcs = maxCpcs
94
+ end
95
+ end
96
+
97
+ # {https://adwords.google.com/api/adwords/v3}setKeywordListMaxCpcResponse
98
+ class SetKeywordListMaxCpcResponse
99
+ @@schema_type = "setKeywordListMaxCpcResponse"
100
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
101
+ @@schema_qualified = "true"
102
+ @@schema_element = []
103
+
104
+ def initialize
105
+ end
106
+ end
107
+
108
+ # {https://adwords.google.com/api/adwords/v3}setKeywordListSingleMaxCpc
109
+ class SetKeywordListSingleMaxCpc
110
+ @@schema_type = "setKeywordListSingleMaxCpc"
111
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
112
+ @@schema_qualified = "true"
113
+ @@schema_element = [
114
+ ["adGroupId", "SOAP::SOAPInt"],
115
+ ["keywordIds", "SOAP::SOAPLong[]"],
116
+ ["maxCpc", "SOAP::SOAPLong"]
117
+ ]
118
+
119
+ attr_accessor :adGroupId
120
+ attr_accessor :keywordIds
121
+ attr_accessor :maxCpc
122
+
123
+ def initialize(adGroupId = nil, keywordIds = [], maxCpc = nil)
124
+ @adGroupId = adGroupId
125
+ @keywordIds = keywordIds
126
+ @maxCpc = maxCpc
127
+ end
128
+ end
129
+
130
+ # {https://adwords.google.com/api/adwords/v3}setKeywordListSingleMaxCpcResponse
131
+ class SetKeywordListSingleMaxCpcResponse
132
+ @@schema_type = "setKeywordListSingleMaxCpcResponse"
133
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
134
+ @@schema_qualified = "true"
135
+ @@schema_element = []
136
+
137
+ def initialize
138
+ end
139
+ end
140
+
141
+ # {https://adwords.google.com/api/adwords/v3}updateKeyword
142
+ class UpdateKeyword
143
+ @@schema_type = "updateKeyword"
144
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
145
+ @@schema_qualified = "true"
146
+ @@schema_element = [
147
+ ["keyword", "Keyword"]
148
+ ]
149
+
150
+ attr_accessor :keyword
151
+
152
+ def initialize(keyword = nil)
153
+ @keyword = keyword
154
+ end
155
+ end
156
+
157
+ # {https://adwords.google.com/api/adwords/v3}updateKeywordResponse
158
+ class UpdateKeywordResponse
159
+ @@schema_type = "updateKeywordResponse"
160
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
161
+ @@schema_qualified = "true"
162
+ @@schema_element = []
163
+
164
+ def initialize
165
+ end
166
+ end
167
+
168
+ # {https://adwords.google.com/api/adwords/v3}updateKeywordList
169
+ class UpdateKeywordList < ::Array
170
+ @@schema_element = [
171
+ ["keywords", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "keywords")]]
172
+ ]
173
+ end
174
+
175
+ # {https://adwords.google.com/api/adwords/v3}updateKeywordListResponse
176
+ class UpdateKeywordListResponse
177
+ @@schema_type = "updateKeywordListResponse"
178
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
179
+ @@schema_qualified = "true"
180
+ @@schema_element = []
181
+
182
+ def initialize
183
+ end
184
+ end
185
+
186
+ # {https://adwords.google.com/api/adwords/v3}addKeyword
187
+ class AddKeyword
188
+ @@schema_type = "addKeyword"
189
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
190
+ @@schema_qualified = "true"
191
+ @@schema_element = [
192
+ ["newKeyword", "Keyword"]
193
+ ]
194
+
195
+ attr_accessor :newKeyword
196
+
197
+ def initialize(newKeyword = nil)
198
+ @newKeyword = newKeyword
199
+ end
200
+ end
201
+
202
+ # {https://adwords.google.com/api/adwords/v3}addKeywordResponse
203
+ class AddKeywordResponse
204
+ @@schema_type = "addKeywordResponse"
205
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
206
+ @@schema_qualified = "true"
207
+ @@schema_element = [
208
+ ["addKeywordReturn", "Keyword"]
209
+ ]
210
+
211
+ attr_accessor :addKeywordReturn
212
+
213
+ def initialize(addKeywordReturn = nil)
214
+ @addKeywordReturn = addKeywordReturn
215
+ end
216
+ end
217
+
218
+ # {https://adwords.google.com/api/adwords/v3}addKeywordList
219
+ class AddKeywordList
220
+ @@schema_type = "addKeywordList"
221
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
222
+ @@schema_qualified = "true"
223
+ @@schema_element = [
224
+ ["adGroupId", "SOAP::SOAPInt"],
225
+ ["newKeywords", "Keyword[]"]
226
+ ]
227
+
228
+ attr_accessor :adGroupId
229
+ attr_accessor :newKeywords
230
+
231
+ def initialize(adGroupId = nil, newKeywords = [])
232
+ @adGroupId = adGroupId
233
+ @newKeywords = newKeywords
234
+ end
235
+ end
236
+
237
+ # {https://adwords.google.com/api/adwords/v3}addKeywordListResponse
238
+ class AddKeywordListResponse < ::Array
239
+ @@schema_element = [
240
+ ["addKeywordListReturn", ["Keyword[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "addKeywordListReturn")]]
241
+ ]
242
+ end
243
+
244
+ # {https://adwords.google.com/api/adwords/v3}removeKeywordList
245
+ class RemoveKeywordList
246
+ @@schema_type = "removeKeywordList"
247
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
248
+ @@schema_qualified = "true"
249
+ @@schema_element = [
250
+ ["adGroupId", "SOAP::SOAPInt"],
251
+ ["keywordIds", "SOAP::SOAPLong[]"]
252
+ ]
253
+
254
+ attr_accessor :adGroupId
255
+ attr_accessor :keywordIds
256
+
257
+ def initialize(adGroupId = nil, keywordIds = [])
258
+ @adGroupId = adGroupId
259
+ @keywordIds = keywordIds
260
+ end
261
+ end
262
+
263
+ # {https://adwords.google.com/api/adwords/v3}removeKeywordListResponse
264
+ class RemoveKeywordListResponse
265
+ @@schema_type = "removeKeywordListResponse"
266
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
267
+ @@schema_qualified = "true"
268
+ @@schema_element = []
269
+
270
+ def initialize
271
+ end
272
+ end
273
+
274
+ # {https://adwords.google.com/api/adwords/v3}removeKeyword
275
+ class RemoveKeyword
276
+ @@schema_type = "removeKeyword"
277
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
278
+ @@schema_qualified = "true"
279
+ @@schema_element = [
280
+ ["adGroupId", "SOAP::SOAPInt"],
281
+ ["keywordId", "SOAP::SOAPLong"]
282
+ ]
283
+
284
+ attr_accessor :adGroupId
285
+ attr_accessor :keywordId
286
+
287
+ def initialize(adGroupId = nil, keywordId = nil)
288
+ @adGroupId = adGroupId
289
+ @keywordId = keywordId
290
+ end
291
+ end
292
+
293
+ # {https://adwords.google.com/api/adwords/v3}removeKeywordResponse
294
+ class RemoveKeywordResponse
295
+ @@schema_type = "removeKeywordResponse"
296
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
297
+ @@schema_qualified = "true"
298
+ @@schema_element = []
299
+
300
+ def initialize
301
+ end
302
+ end
303
+
304
+ # {https://adwords.google.com/api/adwords/v3}getKeywordStats
305
+ class GetKeywordStats
306
+ @@schema_type = "getKeywordStats"
307
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
308
+ @@schema_qualified = "true"
309
+ @@schema_element = [
310
+ ["adGroupId", "SOAP::SOAPInt"],
311
+ ["keywordIds", "SOAP::SOAPLong[]"],
312
+ ["start", "SOAP::SOAPDateTime"],
313
+ ["v_end", ["SOAP::SOAPDateTime", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "end")]]
314
+ ]
315
+
316
+ attr_accessor :adGroupId
317
+ attr_accessor :keywordIds
318
+ attr_accessor :start
319
+
320
+ def end
321
+ @v_end
322
+ end
323
+
324
+ def end=(value)
325
+ @v_end = value
326
+ end
327
+
328
+ def initialize(adGroupId = nil, keywordIds = [], start = nil, v_end = nil)
329
+ @adGroupId = adGroupId
330
+ @keywordIds = keywordIds
331
+ @start = start
332
+ @v_end = v_end
333
+ end
334
+ end
335
+
336
+ # {https://adwords.google.com/api/adwords/v3}getKeywordStatsResponse
337
+ class GetKeywordStatsResponse < ::Array
338
+ @@schema_element = [
339
+ ["getKeywordStatsReturn", ["StatsRecord[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "getKeywordStatsReturn")]]
340
+ ]
341
+ end
342
+
343
+ # {https://adwords.google.com/api/adwords/v3}Criterion
344
+ class Criterion
345
+ @@schema_type = "Criterion"
346
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
347
+ @@schema_element = [
348
+ ["id", "SOAP::SOAPLong"],
349
+ ["adGroupId", "SOAP::SOAPInt"],
350
+ ["exemptionRequest", "SOAP::SOAPString"],
351
+ ["criterionType", "SOAP::SOAPString"],
352
+ ["language", "SOAP::SOAPString"],
353
+ ["status", "CriterionStatus"],
354
+ ["negative", "SOAP::SOAPBoolean"],
355
+ ["destinationUrl", "SOAP::SOAPString"]
356
+ ]
357
+
358
+ attr_accessor :id
359
+ attr_accessor :adGroupId
360
+ attr_accessor :exemptionRequest
361
+ attr_accessor :criterionType
362
+ attr_accessor :language
363
+ attr_accessor :status
364
+ attr_accessor :negative
365
+ attr_accessor :destinationUrl
366
+
367
+ def initialize(id = nil, adGroupId = nil, exemptionRequest = nil, criterionType = nil, language = nil, status = nil, negative = nil, destinationUrl = nil)
368
+ @id = id
369
+ @adGroupId = adGroupId
370
+ @exemptionRequest = exemptionRequest
371
+ @criterionType = criterionType
372
+ @language = language
373
+ @status = status
374
+ @negative = negative
375
+ @destinationUrl = destinationUrl
376
+ end
377
+ end
378
+
379
+ # {https://adwords.google.com/api/adwords/v3}Keyword
380
+ class Keyword
381
+ @@schema_type = "Keyword"
382
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
383
+ @@schema_element = [
384
+ ["id", "SOAP::SOAPLong"],
385
+ ["adGroupId", "SOAP::SOAPInt"],
386
+ ["exemptionRequest", "SOAP::SOAPString"],
387
+ ["criterionType", "SOAP::SOAPString"],
388
+ ["language", "SOAP::SOAPString"],
389
+ ["status", "CriterionStatus"],
390
+ ["negative", "SOAP::SOAPBoolean"],
391
+ ["destinationUrl", "SOAP::SOAPString"],
392
+ ["type", "KeywordType"],
393
+ ["minCpc", "SOAP::SOAPLong"],
394
+ ["maxCpc", "SOAP::SOAPLong"],
395
+ ["text", "SOAP::SOAPString"]
396
+ ]
397
+
398
+ attr_accessor :id
399
+ attr_accessor :adGroupId
400
+ attr_accessor :exemptionRequest
401
+ attr_accessor :criterionType
402
+ attr_accessor :language
403
+ attr_accessor :status
404
+ attr_accessor :negative
405
+ attr_accessor :destinationUrl
406
+ attr_accessor :type
407
+ attr_accessor :minCpc
408
+ attr_accessor :maxCpc
409
+ attr_accessor :text
410
+
411
+ def initialize(id = nil, adGroupId = nil, exemptionRequest = nil, criterionType = nil, language = nil, status = nil, negative = nil, destinationUrl = nil, type = nil, minCpc = nil, maxCpc = nil, text = nil)
412
+ @id = id
413
+ @adGroupId = adGroupId
414
+ @exemptionRequest = exemptionRequest
415
+ @criterionType = criterionType
416
+ @language = language
417
+ @status = status
418
+ @negative = negative
419
+ @destinationUrl = destinationUrl
420
+ @type = type
421
+ @minCpc = minCpc
422
+ @maxCpc = maxCpc
423
+ @text = text
424
+ end
425
+ end
426
+
427
+ # {https://adwords.google.com/api/adwords/v3}ApiException
428
+ class ApiException
429
+ @@schema_type = "ApiException"
430
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
431
+ @@schema_element = [
432
+ ["code", "SOAP::SOAPInt"],
433
+ ["internal", "SOAP::SOAPBoolean"],
434
+ ["message", "SOAP::SOAPString"],
435
+ ["trigger", "SOAP::SOAPString"],
436
+ ["violations", "SOAP::SOAPString"]
437
+ ]
438
+
439
+ attr_accessor :code
440
+ attr_accessor :internal
441
+ attr_accessor :message
442
+ attr_accessor :trigger
443
+ attr_accessor :violations
444
+
445
+ def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
446
+ @code = code
447
+ @internal = internal
448
+ @message = message
449
+ @trigger = trigger
450
+ @violations = violations
451
+ end
452
+ end
453
+
454
+ # {https://adwords.google.com/api/adwords/v3}AdPolicyViolation
455
+ class AdPolicyViolation
456
+ @@schema_type = "AdPolicyViolation"
457
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
458
+ @@schema_element = [
459
+ ["index", "SOAP::SOAPInt"],
460
+ ["line", "SOAP::SOAPInt"],
461
+ ["textIndex", "SOAP::SOAPInt"],
462
+ ["textLength", "SOAP::SOAPInt"],
463
+ ["trigger", "SOAP::SOAPString"],
464
+ ["detail", "SOAP::SOAPString"],
465
+ ["isExemptable", "SOAP::SOAPBoolean"]
466
+ ]
467
+
468
+ attr_accessor :index
469
+ attr_accessor :line
470
+ attr_accessor :textIndex
471
+ attr_accessor :textLength
472
+ attr_accessor :trigger
473
+ attr_accessor :detail
474
+ attr_accessor :isExemptable
475
+
476
+ def initialize(index = nil, line = nil, textIndex = nil, textLength = nil, trigger = nil, detail = nil, isExemptable = nil)
477
+ @index = index
478
+ @line = line
479
+ @textIndex = textIndex
480
+ @textLength = textLength
481
+ @trigger = trigger
482
+ @detail = detail
483
+ @isExemptable = isExemptable
484
+ end
485
+ end
486
+
487
+ # {https://adwords.google.com/api/adwords/v3}StatsRecord
488
+ class StatsRecord
489
+ @@schema_type = "StatsRecord"
490
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
491
+ @@schema_element = [
492
+ ["averagePosition", "SOAP::SOAPDouble"],
493
+ ["clicks", "SOAP::SOAPLong"],
494
+ ["conversionRate", "SOAP::SOAPDouble"],
495
+ ["conversions", "SOAP::SOAPLong"],
496
+ ["cost", "SOAP::SOAPLong"],
497
+ ["id", "SOAP::SOAPLong"],
498
+ ["impressions", "SOAP::SOAPLong"]
499
+ ]
500
+
501
+ attr_accessor :averagePosition
502
+ attr_accessor :clicks
503
+ attr_accessor :conversionRate
504
+ attr_accessor :conversions
505
+ attr_accessor :cost
506
+ attr_accessor :id
507
+ attr_accessor :impressions
508
+
509
+ def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
510
+ @averagePosition = averagePosition
511
+ @clicks = clicks
512
+ @conversionRate = conversionRate
513
+ @conversions = conversions
514
+ @cost = cost
515
+ @id = id
516
+ @impressions = impressions
517
+ end
518
+ end
519
+
520
+ # {https://adwords.google.com/api/adwords/v3}CriterionStatus
521
+ class CriterionStatus < ::String
522
+ @@schema_type = "CriterionStatus"
523
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
524
+
525
+ Deleted = CriterionStatus.new("Deleted")
526
+ Disabled = CriterionStatus.new("Disabled")
527
+ Disapproved = CriterionStatus.new("Disapproved")
528
+ InTrial = CriterionStatus.new("InTrial")
529
+ Normal = CriterionStatus.new("Normal")
530
+ OnHold = CriterionStatus.new("OnHold")
531
+ end
532
+
533
+ # {https://adwords.google.com/api/adwords/v3}KeywordType
534
+ class KeywordType < ::String
535
+ @@schema_type = "KeywordType"
536
+ @@schema_ns = "https://adwords.google.com/api/adwords/v3"
537
+
538
+ Broad = KeywordType.new("Broad")
539
+ Exact = KeywordType.new("Exact")
540
+ Phrase = KeywordType.new("Phrase")
541
+ end