adwords4r 12.1.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. data/ChangeLog.txt +3 -0
  2. data/Rakefile +1 -1
  3. data/examples/account_info.rb +2 -2
  4. data/examples/create_all.rb +2 -2
  5. data/examples/keyword_suggestions.rb +14 -8
  6. data/examples/reports.rb +2 -2
  7. data/lib/adwords4r/services.rb +2 -0
  8. data/lib/adwords4r/v12/AccountServiceDriver.rb +3 -3
  9. data/lib/adwords4r/v12/AdGroupServiceDriver.rb +8 -8
  10. data/lib/adwords4r/v12/AdServiceDriver.rb +10 -10
  11. data/lib/adwords4r/v12/CampaignServiceDriver.rb +11 -11
  12. data/lib/adwords4r/v12/CriterionServiceDriver.rb +9 -9
  13. data/lib/adwords4r/v12/InfoServiceDriver.rb +8 -8
  14. data/lib/adwords4r/v12/KeywordToolServiceDriver.rb +2 -2
  15. data/lib/adwords4r/v12/ReportServiceDriver.rb +7 -7
  16. data/lib/adwords4r/v12/ReportServiceMappingRegistry.rb +2 -2
  17. data/lib/adwords4r/v12/SiteSuggestionServiceDriver.rb +4 -4
  18. data/lib/adwords4r/v12/TrafficEstimatorService.rb +1 -1
  19. data/lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb +4 -4
  20. data/lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb +2 -2
  21. data/lib/adwords4r/v13/AccountService.rb +297 -0
  22. data/lib/adwords4r/v13/AccountServiceDriver.rb +85 -0
  23. data/lib/adwords4r/v13/AccountServiceMappingRegistry.rb +337 -0
  24. data/lib/adwords4r/v13/AdGroupService.rb +277 -0
  25. data/lib/adwords4r/v13/AdGroupServiceDriver.rb +117 -0
  26. data/lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb +296 -0
  27. data/lib/adwords4r/v13/AdService.rb +846 -0
  28. data/lib/adwords4r/v13/AdServiceDriver.rb +125 -0
  29. data/lib/adwords4r/v13/AdServiceMappingRegistry.rb +859 -0
  30. data/lib/adwords4r/v13/CampaignService.rb +562 -0
  31. data/lib/adwords4r/v13/CampaignServiceDriver.rb +149 -0
  32. data/lib/adwords4r/v13/CampaignServiceMappingRegistry.rb +696 -0
  33. data/lib/adwords4r/v13/CriterionService.rb +484 -0
  34. data/lib/adwords4r/v13/CriterionServiceDriver.rb +117 -0
  35. data/lib/adwords4r/v13/CriterionServiceMappingRegistry.rb +519 -0
  36. data/lib/adwords4r/v13/InfoService.rb +242 -0
  37. data/lib/adwords4r/v13/InfoServiceDriver.rb +109 -0
  38. data/lib/adwords4r/v13/InfoServiceMappingRegistry.rb +228 -0
  39. data/lib/adwords4r/v13/KeywordToolService.rb +211 -0
  40. data/lib/adwords4r/v13/KeywordToolServiceDriver.rb +61 -0
  41. data/lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb +231 -0
  42. data/lib/adwords4r/v13/ReportService.rb +322 -0
  43. data/lib/adwords4r/v13/ReportServiceDriver.rb +101 -0
  44. data/lib/adwords4r/v13/ReportServiceMappingRegistry.rb +298 -0
  45. data/lib/adwords4r/v13/SiteSuggestionService.rb +242 -0
  46. data/lib/adwords4r/v13/SiteSuggestionServiceDriver.rb +77 -0
  47. data/lib/adwords4r/v13/SiteSuggestionServiceMappingRegistry.rb +271 -0
  48. data/lib/adwords4r/v13/TrafficEstimatorService.rb +348 -0
  49. data/lib/adwords4r/v13/TrafficEstimatorServiceDriver.rb +77 -0
  50. data/lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb +491 -0
  51. data/setup.rb +0 -0
  52. metadata +93 -54
@@ -0,0 +1,117 @@
1
+ require 'adwords4r/v13/AdGroupService'
2
+ require 'adwords4r/v13/AdGroupServiceMappingRegistry'
3
+ require 'soap/rpc/driver'
4
+
5
+ module AdWords
6
+ module AdGroupService
7
+
8
+ class AdGroupInterface < ::SOAP::RPC::Driver
9
+ DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v13/AdGroupService"
10
+
11
+ Methods = [
12
+ [ "",
13
+ "addAdGroup",
14
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "addAdGroup"]],
15
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "addAdGroupResponse"]] ],
16
+ { :request_style => :document, :request_use => :literal,
17
+ :response_style => :document, :response_use => :literal,
18
+ :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
19
+ ],
20
+ [ "",
21
+ "addAdGroupList",
22
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "addAdGroupList"]],
23
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "addAdGroupListResponse"]] ],
24
+ { :request_style => :document, :request_use => :literal,
25
+ :response_style => :document, :response_use => :literal,
26
+ :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
27
+ ],
28
+ [ "",
29
+ "getActiveAdGroups",
30
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getActiveAdGroups"]],
31
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getActiveAdGroupsResponse"]] ],
32
+ { :request_style => :document, :request_use => :literal,
33
+ :response_style => :document, :response_use => :literal,
34
+ :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
35
+ ],
36
+ [ "",
37
+ "getAdGroup",
38
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAdGroup"]],
39
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAdGroupResponse"]] ],
40
+ { :request_style => :document, :request_use => :literal,
41
+ :response_style => :document, :response_use => :literal,
42
+ :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
43
+ ],
44
+ [ "",
45
+ "getAdGroupList",
46
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAdGroupList"]],
47
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAdGroupListResponse"]] ],
48
+ { :request_style => :document, :request_use => :literal,
49
+ :response_style => :document, :response_use => :literal,
50
+ :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
51
+ ],
52
+ [ "",
53
+ "getAdGroupStats",
54
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAdGroupStats"]],
55
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAdGroupStatsResponse"]] ],
56
+ { :request_style => :document, :request_use => :literal,
57
+ :response_style => :document, :response_use => :literal,
58
+ :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
59
+ ],
60
+ [ "",
61
+ "getAllAdGroups",
62
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAllAdGroups"]],
63
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "getAllAdGroupsResponse"]] ],
64
+ { :request_style => :document, :request_use => :literal,
65
+ :response_style => :document, :response_use => :literal,
66
+ :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
67
+ ],
68
+ [ "",
69
+ "updateAdGroup",
70
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "updateAdGroup"]],
71
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "updateAdGroupResponse"]] ],
72
+ { :request_style => :document, :request_use => :literal,
73
+ :response_style => :document, :response_use => :literal,
74
+ :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
75
+ ],
76
+ [ "",
77
+ "updateAdGroupList",
78
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "updateAdGroupList"]],
79
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v13", "updateAdGroupListResponse"]] ],
80
+ { :request_style => :document, :request_use => :literal,
81
+ :response_style => :document, :response_use => :literal,
82
+ :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v13", :use=>"literal"}} }
83
+ ]
84
+ ]
85
+
86
+ def initialize(endpoint_url = nil)
87
+ endpoint_url ||= DefaultEndpointUrl
88
+ super(endpoint_url, nil)
89
+ self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
90
+ self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
91
+ init_methods
92
+ end
93
+
94
+ private
95
+
96
+ def init_methods
97
+ Methods.each do |definitions|
98
+ opt = definitions.last
99
+ if opt[:request_style] == :document
100
+ add_document_operation(*definitions)
101
+ else
102
+ add_rpc_operation(*definitions)
103
+ qname = definitions[0]
104
+ name = definitions[2]
105
+ if qname.name != name and qname.name.capitalize == name.capitalize
106
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
107
+ __send__(name, *arg)
108
+ end
109
+ end
110
+ end
111
+ end
112
+ end
113
+ end
114
+
115
+
116
+ end
117
+ end
@@ -0,0 +1,296 @@
1
+ require 'adwords4r/v13/AdGroupService'
2
+ require 'soap/mapping'
3
+
4
+ module AdWords; module AdGroupService
5
+
6
+ module DefaultMappingRegistry
7
+ EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
8
+ LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
9
+ NsV13 = "https://adwords.google.com/api/adwords/v13"
10
+
11
+ EncodedRegistry.register(
12
+ :class => AdWords::AdGroupService::AdGroup,
13
+ :schema_type => XSD::QName.new(NsV13, "AdGroup"),
14
+ :schema_element => [
15
+ ["campaignId", "SOAP::SOAPInt"],
16
+ ["id", "SOAP::SOAPLong"],
17
+ ["keywordContentMaxCpc", "SOAP::SOAPLong", [0, 1]],
18
+ ["keywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
19
+ ["maxCpa", "SOAP::SOAPLong", [0, 1]],
20
+ ["name", "SOAP::SOAPString"],
21
+ ["proxyKeywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
22
+ ["siteMaxCpc", "SOAP::SOAPLong", [0, 1]],
23
+ ["siteMaxCpm", "SOAP::SOAPLong", [0, 1]],
24
+ ["status", "AdWords::AdGroupService::AdGroupStatus", [0, 1]]
25
+ ]
26
+ )
27
+
28
+ EncodedRegistry.register(
29
+ :class => AdWords::AdGroupService::ApiError,
30
+ :schema_type => XSD::QName.new(NsV13, "ApiError"),
31
+ :schema_element => [
32
+ ["code", "SOAP::SOAPInt"],
33
+ ["detail", "SOAP::SOAPString"],
34
+ ["field", "SOAP::SOAPString", [0, 1]],
35
+ ["index", "SOAP::SOAPInt"],
36
+ ["isExemptable", "SOAP::SOAPBoolean"],
37
+ ["textIndex", "SOAP::SOAPInt", [0, 1]],
38
+ ["textLength", "SOAP::SOAPInt", [0, 1]],
39
+ ["trigger", "SOAP::SOAPString", [0, 1]]
40
+ ]
41
+ )
42
+
43
+ EncodedRegistry.register(
44
+ :class => AdWords::AdGroupService::ApiException,
45
+ :schema_type => XSD::QName.new(NsV13, "ApiException"),
46
+ :schema_element => [
47
+ ["code", "SOAP::SOAPInt"],
48
+ ["errors", "AdWords::AdGroupService::ApiError[]", [1, nil]],
49
+ ["internal", "SOAP::SOAPBoolean"],
50
+ ["message", "SOAP::SOAPString"],
51
+ ["trigger", "SOAP::SOAPString"]
52
+ ]
53
+ )
54
+
55
+ EncodedRegistry.register(
56
+ :class => AdWords::AdGroupService::StatsRecord,
57
+ :schema_type => XSD::QName.new(NsV13, "StatsRecord"),
58
+ :schema_element => [
59
+ ["averagePosition", "SOAP::SOAPDouble"],
60
+ ["clicks", "SOAP::SOAPLong"],
61
+ ["conversionRate", "SOAP::SOAPDouble"],
62
+ ["conversions", "SOAP::SOAPLong"],
63
+ ["cost", "SOAP::SOAPLong"],
64
+ ["id", "SOAP::SOAPLong"],
65
+ ["impressions", "SOAP::SOAPLong"]
66
+ ]
67
+ )
68
+
69
+ EncodedRegistry.register(
70
+ :class => AdWords::AdGroupService::AdGroupStatus,
71
+ :schema_type => XSD::QName.new(NsV13, "AdGroupStatus")
72
+ )
73
+
74
+ LiteralRegistry.register(
75
+ :class => AdWords::AdGroupService::AdGroup,
76
+ :schema_type => XSD::QName.new(NsV13, "AdGroup"),
77
+ :schema_element => [
78
+ ["campaignId", "SOAP::SOAPInt"],
79
+ ["id", "SOAP::SOAPLong"],
80
+ ["keywordContentMaxCpc", "SOAP::SOAPLong", [0, 1]],
81
+ ["keywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
82
+ ["maxCpa", "SOAP::SOAPLong", [0, 1]],
83
+ ["name", "SOAP::SOAPString"],
84
+ ["proxyKeywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
85
+ ["siteMaxCpc", "SOAP::SOAPLong", [0, 1]],
86
+ ["siteMaxCpm", "SOAP::SOAPLong", [0, 1]],
87
+ ["status", "AdWords::AdGroupService::AdGroupStatus", [0, 1]]
88
+ ]
89
+ )
90
+
91
+ LiteralRegistry.register(
92
+ :class => AdWords::AdGroupService::ApiError,
93
+ :schema_type => XSD::QName.new(NsV13, "ApiError"),
94
+ :schema_element => [
95
+ ["code", "SOAP::SOAPInt"],
96
+ ["detail", "SOAP::SOAPString"],
97
+ ["field", "SOAP::SOAPString", [0, 1]],
98
+ ["index", "SOAP::SOAPInt"],
99
+ ["isExemptable", "SOAP::SOAPBoolean"],
100
+ ["textIndex", "SOAP::SOAPInt", [0, 1]],
101
+ ["textLength", "SOAP::SOAPInt", [0, 1]],
102
+ ["trigger", "SOAP::SOAPString", [0, 1]]
103
+ ]
104
+ )
105
+
106
+ LiteralRegistry.register(
107
+ :class => AdWords::AdGroupService::ApiException,
108
+ :schema_type => XSD::QName.new(NsV13, "ApiException"),
109
+ :schema_element => [
110
+ ["code", "SOAP::SOAPInt"],
111
+ ["errors", "AdWords::AdGroupService::ApiError[]", [1, nil]],
112
+ ["internal", "SOAP::SOAPBoolean"],
113
+ ["message", "SOAP::SOAPString"],
114
+ ["trigger", "SOAP::SOAPString"]
115
+ ]
116
+ )
117
+
118
+ LiteralRegistry.register(
119
+ :class => AdWords::AdGroupService::StatsRecord,
120
+ :schema_type => XSD::QName.new(NsV13, "StatsRecord"),
121
+ :schema_element => [
122
+ ["averagePosition", "SOAP::SOAPDouble"],
123
+ ["clicks", "SOAP::SOAPLong"],
124
+ ["conversionRate", "SOAP::SOAPDouble"],
125
+ ["conversions", "SOAP::SOAPLong"],
126
+ ["cost", "SOAP::SOAPLong"],
127
+ ["id", "SOAP::SOAPLong"],
128
+ ["impressions", "SOAP::SOAPLong"]
129
+ ]
130
+ )
131
+
132
+ LiteralRegistry.register(
133
+ :class => AdWords::AdGroupService::AdGroupStatus,
134
+ :schema_type => XSD::QName.new(NsV13, "AdGroupStatus")
135
+ )
136
+
137
+ LiteralRegistry.register(
138
+ :class => AdWords::AdGroupService::AddAdGroup,
139
+ :schema_name => XSD::QName.new(NsV13, "addAdGroup"),
140
+ :schema_element => [
141
+ ["campaignID", "SOAP::SOAPInt"],
142
+ ["newData", "AdWords::AdGroupService::AdGroup"]
143
+ ]
144
+ )
145
+
146
+ LiteralRegistry.register(
147
+ :class => AdWords::AdGroupService::AddAdGroupList,
148
+ :schema_name => XSD::QName.new(NsV13, "addAdGroupList"),
149
+ :schema_element => [
150
+ ["campaignID", "SOAP::SOAPInt"],
151
+ ["newData", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
152
+ ]
153
+ )
154
+
155
+ LiteralRegistry.register(
156
+ :class => AdWords::AdGroupService::AddAdGroupListResponse,
157
+ :schema_name => XSD::QName.new(NsV13, "addAdGroupListResponse"),
158
+ :schema_element => [
159
+ ["addAdGroupListReturn", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
160
+ ]
161
+ )
162
+
163
+ LiteralRegistry.register(
164
+ :class => AdWords::AdGroupService::AddAdGroupResponse,
165
+ :schema_name => XSD::QName.new(NsV13, "addAdGroupResponse"),
166
+ :schema_element => [
167
+ ["addAdGroupReturn", "AdWords::AdGroupService::AdGroup"]
168
+ ]
169
+ )
170
+
171
+ LiteralRegistry.register(
172
+ :class => AdWords::AdGroupService::ApiException,
173
+ :schema_name => XSD::QName.new(NsV13, "fault"),
174
+ :schema_element => [
175
+ ["code", "SOAP::SOAPInt"],
176
+ ["errors", "AdWords::AdGroupService::ApiError[]", [1, nil]],
177
+ ["internal", "SOAP::SOAPBoolean"],
178
+ ["message", "SOAP::SOAPString"],
179
+ ["trigger", "SOAP::SOAPString"]
180
+ ]
181
+ )
182
+
183
+ LiteralRegistry.register(
184
+ :class => AdWords::AdGroupService::GetActiveAdGroups,
185
+ :schema_name => XSD::QName.new(NsV13, "getActiveAdGroups"),
186
+ :schema_element => [
187
+ ["campaignID", "SOAP::SOAPInt"]
188
+ ]
189
+ )
190
+
191
+ LiteralRegistry.register(
192
+ :class => AdWords::AdGroupService::GetActiveAdGroupsResponse,
193
+ :schema_name => XSD::QName.new(NsV13, "getActiveAdGroupsResponse"),
194
+ :schema_element => [
195
+ ["getActiveAdGroupsReturn", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
196
+ ]
197
+ )
198
+
199
+ LiteralRegistry.register(
200
+ :class => AdWords::AdGroupService::GetAdGroup,
201
+ :schema_name => XSD::QName.new(NsV13, "getAdGroup"),
202
+ :schema_element => [
203
+ ["adGroupId", "SOAP::SOAPLong"]
204
+ ]
205
+ )
206
+
207
+ LiteralRegistry.register(
208
+ :class => AdWords::AdGroupService::GetAdGroupList,
209
+ :schema_name => XSD::QName.new(NsV13, "getAdGroupList"),
210
+ :schema_element => [
211
+ ["adgroupIDs", "SOAP::SOAPLong[]", [1, nil]]
212
+ ]
213
+ )
214
+
215
+ LiteralRegistry.register(
216
+ :class => AdWords::AdGroupService::GetAdGroupListResponse,
217
+ :schema_name => XSD::QName.new(NsV13, "getAdGroupListResponse"),
218
+ :schema_element => [
219
+ ["getAdGroupListReturn", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
220
+ ]
221
+ )
222
+
223
+ LiteralRegistry.register(
224
+ :class => AdWords::AdGroupService::GetAdGroupResponse,
225
+ :schema_name => XSD::QName.new(NsV13, "getAdGroupResponse"),
226
+ :schema_element => [
227
+ ["getAdGroupReturn", "AdWords::AdGroupService::AdGroup"]
228
+ ]
229
+ )
230
+
231
+ LiteralRegistry.register(
232
+ :class => AdWords::AdGroupService::GetAdGroupStats,
233
+ :schema_name => XSD::QName.new(NsV13, "getAdGroupStats"),
234
+ :schema_element => [
235
+ ["campaignId", "SOAP::SOAPInt"],
236
+ ["adGroupIds", "SOAP::SOAPLong[]", [1, nil]],
237
+ ["startDay", "SOAP::SOAPDate"],
238
+ ["endDay", "SOAP::SOAPDate"]
239
+ ]
240
+ )
241
+
242
+ LiteralRegistry.register(
243
+ :class => AdWords::AdGroupService::GetAdGroupStatsResponse,
244
+ :schema_name => XSD::QName.new(NsV13, "getAdGroupStatsResponse"),
245
+ :schema_element => [
246
+ ["getAdGroupStatsReturn", "AdWords::AdGroupService::StatsRecord[]", [1, nil]]
247
+ ]
248
+ )
249
+
250
+ LiteralRegistry.register(
251
+ :class => AdWords::AdGroupService::GetAllAdGroups,
252
+ :schema_name => XSD::QName.new(NsV13, "getAllAdGroups"),
253
+ :schema_element => [
254
+ ["campaignID", "SOAP::SOAPInt"]
255
+ ]
256
+ )
257
+
258
+ LiteralRegistry.register(
259
+ :class => AdWords::AdGroupService::GetAllAdGroupsResponse,
260
+ :schema_name => XSD::QName.new(NsV13, "getAllAdGroupsResponse"),
261
+ :schema_element => [
262
+ ["getAllAdGroupsReturn", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
263
+ ]
264
+ )
265
+
266
+ LiteralRegistry.register(
267
+ :class => AdWords::AdGroupService::UpdateAdGroup,
268
+ :schema_name => XSD::QName.new(NsV13, "updateAdGroup"),
269
+ :schema_element => [
270
+ ["changedData", "AdWords::AdGroupService::AdGroup"]
271
+ ]
272
+ )
273
+
274
+ LiteralRegistry.register(
275
+ :class => AdWords::AdGroupService::UpdateAdGroupList,
276
+ :schema_name => XSD::QName.new(NsV13, "updateAdGroupList"),
277
+ :schema_element => [
278
+ ["changedData", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
279
+ ]
280
+ )
281
+
282
+ LiteralRegistry.register(
283
+ :class => AdWords::AdGroupService::UpdateAdGroupListResponse,
284
+ :schema_name => XSD::QName.new(NsV13, "updateAdGroupListResponse"),
285
+ :schema_element => []
286
+ )
287
+
288
+ LiteralRegistry.register(
289
+ :class => AdWords::AdGroupService::UpdateAdGroupResponse,
290
+ :schema_name => XSD::QName.new(NsV13, "updateAdGroupResponse"),
291
+ :schema_element => []
292
+ )
293
+
294
+ end
295
+
296
+ end; end
@@ -0,0 +1,846 @@
1
+ require 'xsd/qname'
2
+
3
+ module AdWords; module AdService
4
+
5
+
6
+ # {https://adwords.google.com/api/adwords/v13}Ad
7
+ # abstract
8
+ # adGroupId - SOAP::SOAPLong
9
+ # adType - AdWords::AdService::AdType
10
+ # destinationUrl - SOAP::SOAPString
11
+ # disapproved - SOAP::SOAPBoolean
12
+ # displayUrl - SOAP::SOAPString
13
+ # exemptionRequest - SOAP::SOAPString
14
+ # id - SOAP::SOAPLong
15
+ # status - AdWords::AdService::AdStatus
16
+ class Ad
17
+ attr_accessor :adGroupId
18
+ attr_accessor :adType
19
+ attr_accessor :destinationUrl
20
+ attr_accessor :disapproved
21
+ attr_accessor :displayUrl
22
+ attr_accessor :exemptionRequest
23
+ attr_accessor :id
24
+ attr_accessor :status
25
+
26
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil)
27
+ @adGroupId = adGroupId
28
+ @adType = adType
29
+ @destinationUrl = destinationUrl
30
+ @disapproved = disapproved
31
+ @displayUrl = displayUrl
32
+ @exemptionRequest = exemptionRequest
33
+ @id = id
34
+ @status = status
35
+ end
36
+ end
37
+
38
+ # {https://adwords.google.com/api/adwords/v13}CommerceAd
39
+ # adGroupId - SOAP::SOAPLong
40
+ # adType - AdWords::AdService::AdType
41
+ # destinationUrl - SOAP::SOAPString
42
+ # disapproved - SOAP::SOAPBoolean
43
+ # displayUrl - SOAP::SOAPString
44
+ # exemptionRequest - SOAP::SOAPString
45
+ # id - SOAP::SOAPLong
46
+ # status - AdWords::AdService::AdStatus
47
+ # description1 - SOAP::SOAPString
48
+ # description2 - SOAP::SOAPString
49
+ # headline - SOAP::SOAPString
50
+ # postPriceAnnotation - SOAP::SOAPString
51
+ # prePriceAnnotation - SOAP::SOAPString
52
+ # priceString - SOAP::SOAPString
53
+ # productImage - AdWords::AdService::Image
54
+ class CommerceAd < Ad
55
+ attr_accessor :adGroupId
56
+ attr_accessor :adType
57
+ attr_accessor :destinationUrl
58
+ attr_accessor :disapproved
59
+ attr_accessor :displayUrl
60
+ attr_accessor :exemptionRequest
61
+ attr_accessor :id
62
+ attr_accessor :status
63
+ attr_accessor :description1
64
+ attr_accessor :description2
65
+ attr_accessor :headline
66
+ attr_accessor :postPriceAnnotation
67
+ attr_accessor :prePriceAnnotation
68
+ attr_accessor :priceString
69
+ attr_accessor :productImage
70
+
71
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, description1 = nil, description2 = nil, headline = nil, postPriceAnnotation = nil, prePriceAnnotation = nil, priceString = nil, productImage = nil)
72
+ @adGroupId = adGroupId
73
+ @adType = adType
74
+ @destinationUrl = destinationUrl
75
+ @disapproved = disapproved
76
+ @displayUrl = displayUrl
77
+ @exemptionRequest = exemptionRequest
78
+ @id = id
79
+ @status = status
80
+ @description1 = description1
81
+ @description2 = description2
82
+ @headline = headline
83
+ @postPriceAnnotation = postPriceAnnotation
84
+ @prePriceAnnotation = prePriceAnnotation
85
+ @priceString = priceString
86
+ @productImage = productImage
87
+ end
88
+ end
89
+
90
+ # {https://adwords.google.com/api/adwords/v13}ImageAd
91
+ # adGroupId - SOAP::SOAPLong
92
+ # adType - AdWords::AdService::AdType
93
+ # destinationUrl - SOAP::SOAPString
94
+ # disapproved - SOAP::SOAPBoolean
95
+ # displayUrl - SOAP::SOAPString
96
+ # exemptionRequest - SOAP::SOAPString
97
+ # id - SOAP::SOAPLong
98
+ # status - AdWords::AdService::AdStatus
99
+ # image - AdWords::AdService::Image
100
+ class ImageAd < Ad
101
+ attr_accessor :adGroupId
102
+ attr_accessor :adType
103
+ attr_accessor :destinationUrl
104
+ attr_accessor :disapproved
105
+ attr_accessor :displayUrl
106
+ attr_accessor :exemptionRequest
107
+ attr_accessor :id
108
+ attr_accessor :status
109
+ attr_accessor :image
110
+
111
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, image = nil)
112
+ @adGroupId = adGroupId
113
+ @adType = adType
114
+ @destinationUrl = destinationUrl
115
+ @disapproved = disapproved
116
+ @displayUrl = displayUrl
117
+ @exemptionRequest = exemptionRequest
118
+ @id = id
119
+ @status = status
120
+ @image = image
121
+ end
122
+ end
123
+
124
+ # {https://adwords.google.com/api/adwords/v13}LocalBusinessAd
125
+ # adGroupId - SOAP::SOAPLong
126
+ # adType - AdWords::AdService::AdType
127
+ # destinationUrl - SOAP::SOAPString
128
+ # disapproved - SOAP::SOAPBoolean
129
+ # displayUrl - SOAP::SOAPString
130
+ # exemptionRequest - SOAP::SOAPString
131
+ # id - SOAP::SOAPLong
132
+ # status - AdWords::AdService::AdStatus
133
+ # address - SOAP::SOAPString
134
+ # businessImage - AdWords::AdService::Image
135
+ # businessKey - SOAP::SOAPString
136
+ # businessName - SOAP::SOAPString
137
+ # city - SOAP::SOAPString
138
+ # countryCode - SOAP::SOAPString
139
+ # customIcon - AdWords::AdService::Image
140
+ # customIconId - SOAP::SOAPLong
141
+ # description1 - SOAP::SOAPString
142
+ # description2 - SOAP::SOAPString
143
+ # fullBusinessName - SOAP::SOAPString
144
+ # latitude - SOAP::SOAPInt
145
+ # longitude - SOAP::SOAPInt
146
+ # phoneNumber - SOAP::SOAPString
147
+ # postalCode - SOAP::SOAPString
148
+ # region - SOAP::SOAPString
149
+ # stockIcon - AdWords::AdService::StockIcon
150
+ # targetRadiusInKm - SOAP::SOAPDouble
151
+ class LocalBusinessAd < Ad
152
+ attr_accessor :adGroupId
153
+ attr_accessor :adType
154
+ attr_accessor :destinationUrl
155
+ attr_accessor :disapproved
156
+ attr_accessor :displayUrl
157
+ attr_accessor :exemptionRequest
158
+ attr_accessor :id
159
+ attr_accessor :status
160
+ attr_accessor :address
161
+ attr_accessor :businessImage
162
+ attr_accessor :businessKey
163
+ attr_accessor :businessName
164
+ attr_accessor :city
165
+ attr_accessor :countryCode
166
+ attr_accessor :customIcon
167
+ attr_accessor :customIconId
168
+ attr_accessor :description1
169
+ attr_accessor :description2
170
+ attr_accessor :fullBusinessName
171
+ attr_accessor :latitude
172
+ attr_accessor :longitude
173
+ attr_accessor :phoneNumber
174
+ attr_accessor :postalCode
175
+ attr_accessor :region
176
+ attr_accessor :stockIcon
177
+ attr_accessor :targetRadiusInKm
178
+
179
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, address = nil, businessImage = nil, businessKey = nil, businessName = nil, city = nil, countryCode = nil, customIcon = nil, customIconId = nil, description1 = nil, description2 = nil, fullBusinessName = nil, latitude = nil, longitude = nil, phoneNumber = nil, postalCode = nil, region = nil, stockIcon = nil, targetRadiusInKm = nil)
180
+ @adGroupId = adGroupId
181
+ @adType = adType
182
+ @destinationUrl = destinationUrl
183
+ @disapproved = disapproved
184
+ @displayUrl = displayUrl
185
+ @exemptionRequest = exemptionRequest
186
+ @id = id
187
+ @status = status
188
+ @address = address
189
+ @businessImage = businessImage
190
+ @businessKey = businessKey
191
+ @businessName = businessName
192
+ @city = city
193
+ @countryCode = countryCode
194
+ @customIcon = customIcon
195
+ @customIconId = customIconId
196
+ @description1 = description1
197
+ @description2 = description2
198
+ @fullBusinessName = fullBusinessName
199
+ @latitude = latitude
200
+ @longitude = longitude
201
+ @phoneNumber = phoneNumber
202
+ @postalCode = postalCode
203
+ @region = region
204
+ @stockIcon = stockIcon
205
+ @targetRadiusInKm = targetRadiusInKm
206
+ end
207
+ end
208
+
209
+ # {https://adwords.google.com/api/adwords/v13}MobileAd
210
+ # adGroupId - SOAP::SOAPLong
211
+ # adType - AdWords::AdService::AdType
212
+ # destinationUrl - SOAP::SOAPString
213
+ # disapproved - SOAP::SOAPBoolean
214
+ # displayUrl - SOAP::SOAPString
215
+ # exemptionRequest - SOAP::SOAPString
216
+ # id - SOAP::SOAPLong
217
+ # status - AdWords::AdService::AdStatus
218
+ # businessName - SOAP::SOAPString
219
+ # countryCode - SOAP::SOAPString
220
+ # description - SOAP::SOAPString
221
+ # headline - SOAP::SOAPString
222
+ # markupLanguages - SOAP::SOAPString
223
+ # mobileCarriers - SOAP::SOAPString
224
+ # phoneNumber - SOAP::SOAPString
225
+ class MobileAd < Ad
226
+ attr_accessor :adGroupId
227
+ attr_accessor :adType
228
+ attr_accessor :destinationUrl
229
+ attr_accessor :disapproved
230
+ attr_accessor :displayUrl
231
+ attr_accessor :exemptionRequest
232
+ attr_accessor :id
233
+ attr_accessor :status
234
+ attr_accessor :businessName
235
+ attr_accessor :countryCode
236
+ attr_accessor :description
237
+ attr_accessor :headline
238
+ attr_accessor :markupLanguages
239
+ attr_accessor :mobileCarriers
240
+ attr_accessor :phoneNumber
241
+
242
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, businessName = nil, countryCode = nil, description = nil, headline = nil, markupLanguages = [], mobileCarriers = [], phoneNumber = nil)
243
+ @adGroupId = adGroupId
244
+ @adType = adType
245
+ @destinationUrl = destinationUrl
246
+ @disapproved = disapproved
247
+ @displayUrl = displayUrl
248
+ @exemptionRequest = exemptionRequest
249
+ @id = id
250
+ @status = status
251
+ @businessName = businessName
252
+ @countryCode = countryCode
253
+ @description = description
254
+ @headline = headline
255
+ @markupLanguages = markupLanguages
256
+ @mobileCarriers = mobileCarriers
257
+ @phoneNumber = phoneNumber
258
+ end
259
+ end
260
+
261
+ # {https://adwords.google.com/api/adwords/v13}MobileImageAd
262
+ # adGroupId - SOAP::SOAPLong
263
+ # adType - AdWords::AdService::AdType
264
+ # destinationUrl - SOAP::SOAPString
265
+ # disapproved - SOAP::SOAPBoolean
266
+ # displayUrl - SOAP::SOAPString
267
+ # exemptionRequest - SOAP::SOAPString
268
+ # id - SOAP::SOAPLong
269
+ # status - AdWords::AdService::AdStatus
270
+ # image - AdWords::AdService::Image
271
+ # markupLanguages - SOAP::SOAPString
272
+ # mobileCarriers - SOAP::SOAPString
273
+ class MobileImageAd < Ad
274
+ attr_accessor :adGroupId
275
+ attr_accessor :adType
276
+ attr_accessor :destinationUrl
277
+ attr_accessor :disapproved
278
+ attr_accessor :displayUrl
279
+ attr_accessor :exemptionRequest
280
+ attr_accessor :id
281
+ attr_accessor :status
282
+ attr_accessor :image
283
+ attr_accessor :markupLanguages
284
+ attr_accessor :mobileCarriers
285
+
286
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, image = nil, markupLanguages = [], mobileCarriers = [])
287
+ @adGroupId = adGroupId
288
+ @adType = adType
289
+ @destinationUrl = destinationUrl
290
+ @disapproved = disapproved
291
+ @displayUrl = displayUrl
292
+ @exemptionRequest = exemptionRequest
293
+ @id = id
294
+ @status = status
295
+ @image = image
296
+ @markupLanguages = markupLanguages
297
+ @mobileCarriers = mobileCarriers
298
+ end
299
+ end
300
+
301
+ # {https://adwords.google.com/api/adwords/v13}TextAd
302
+ # adGroupId - SOAP::SOAPLong
303
+ # adType - AdWords::AdService::AdType
304
+ # destinationUrl - SOAP::SOAPString
305
+ # disapproved - SOAP::SOAPBoolean
306
+ # displayUrl - SOAP::SOAPString
307
+ # exemptionRequest - SOAP::SOAPString
308
+ # id - SOAP::SOAPLong
309
+ # status - AdWords::AdService::AdStatus
310
+ # description1 - SOAP::SOAPString
311
+ # description2 - SOAP::SOAPString
312
+ # headline - SOAP::SOAPString
313
+ class TextAd < Ad
314
+ attr_accessor :adGroupId
315
+ attr_accessor :adType
316
+ attr_accessor :destinationUrl
317
+ attr_accessor :disapproved
318
+ attr_accessor :displayUrl
319
+ attr_accessor :exemptionRequest
320
+ attr_accessor :id
321
+ attr_accessor :status
322
+ attr_accessor :description1
323
+ attr_accessor :description2
324
+ attr_accessor :headline
325
+
326
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, description1 = nil, description2 = nil, headline = nil)
327
+ @adGroupId = adGroupId
328
+ @adType = adType
329
+ @destinationUrl = destinationUrl
330
+ @disapproved = disapproved
331
+ @displayUrl = displayUrl
332
+ @exemptionRequest = exemptionRequest
333
+ @id = id
334
+ @status = status
335
+ @description1 = description1
336
+ @description2 = description2
337
+ @headline = headline
338
+ end
339
+ end
340
+
341
+ # {https://adwords.google.com/api/adwords/v13}VideoAd
342
+ # adGroupId - SOAP::SOAPLong
343
+ # adType - AdWords::AdService::AdType
344
+ # destinationUrl - SOAP::SOAPString
345
+ # disapproved - SOAP::SOAPBoolean
346
+ # displayUrl - SOAP::SOAPString
347
+ # exemptionRequest - SOAP::SOAPString
348
+ # id - SOAP::SOAPLong
349
+ # status - AdWords::AdService::AdStatus
350
+ # image - AdWords::AdService::Image
351
+ # name - SOAP::SOAPString
352
+ # video - AdWords::AdService::Video
353
+ class VideoAd < Ad
354
+ attr_accessor :adGroupId
355
+ attr_accessor :adType
356
+ attr_accessor :destinationUrl
357
+ attr_accessor :disapproved
358
+ attr_accessor :displayUrl
359
+ attr_accessor :exemptionRequest
360
+ attr_accessor :id
361
+ attr_accessor :status
362
+ attr_accessor :image
363
+ attr_accessor :name
364
+ attr_accessor :video
365
+
366
+ def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, image = nil, name = nil, video = nil)
367
+ @adGroupId = adGroupId
368
+ @adType = adType
369
+ @destinationUrl = destinationUrl
370
+ @disapproved = disapproved
371
+ @displayUrl = displayUrl
372
+ @exemptionRequest = exemptionRequest
373
+ @id = id
374
+ @status = status
375
+ @image = image
376
+ @name = name
377
+ @video = video
378
+ end
379
+ end
380
+
381
+ # {https://adwords.google.com/api/adwords/v13}ApiError
382
+ # code - SOAP::SOAPInt
383
+ # detail - SOAP::SOAPString
384
+ # field - SOAP::SOAPString
385
+ # index - SOAP::SOAPInt
386
+ # isExemptable - SOAP::SOAPBoolean
387
+ # textIndex - SOAP::SOAPInt
388
+ # textLength - SOAP::SOAPInt
389
+ # trigger - SOAP::SOAPString
390
+ class ApiError
391
+ attr_accessor :code
392
+ attr_accessor :detail
393
+ attr_accessor :field
394
+ attr_accessor :index
395
+ attr_accessor :isExemptable
396
+ attr_accessor :textIndex
397
+ attr_accessor :textLength
398
+ attr_accessor :trigger
399
+
400
+ def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
401
+ @code = code
402
+ @detail = detail
403
+ @field = field
404
+ @index = index
405
+ @isExemptable = isExemptable
406
+ @textIndex = textIndex
407
+ @textLength = textLength
408
+ @trigger = trigger
409
+ end
410
+ end
411
+
412
+ # {https://adwords.google.com/api/adwords/v13}ApiException
413
+ # code - SOAP::SOAPInt
414
+ # errors - AdWords::AdService::ApiError
415
+ # internal - SOAP::SOAPBoolean
416
+ # message - SOAP::SOAPString
417
+ # trigger - SOAP::SOAPString
418
+ class ApiException
419
+ attr_accessor :code
420
+ attr_accessor :errors
421
+ attr_accessor :internal
422
+ attr_accessor :message
423
+ attr_accessor :trigger
424
+
425
+ def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
426
+ @code = code
427
+ @errors = errors
428
+ @internal = internal
429
+ @message = message
430
+ @trigger = trigger
431
+ end
432
+ end
433
+
434
+ # {https://adwords.google.com/api/adwords/v13}Business
435
+ # address - SOAP::SOAPString
436
+ # city - SOAP::SOAPString
437
+ # countryCode - SOAP::SOAPString
438
+ # key - SOAP::SOAPString
439
+ # latitude - SOAP::SOAPString
440
+ # longitude - SOAP::SOAPString
441
+ # name - SOAP::SOAPString
442
+ # phoneNumber - SOAP::SOAPString
443
+ # postalCode - SOAP::SOAPString
444
+ # region - SOAP::SOAPString
445
+ # timestamp - SOAP::SOAPLong
446
+ class Business
447
+ attr_accessor :address
448
+ attr_accessor :city
449
+ attr_accessor :countryCode
450
+ attr_accessor :key
451
+ attr_accessor :latitude
452
+ attr_accessor :longitude
453
+ attr_accessor :name
454
+ attr_accessor :phoneNumber
455
+ attr_accessor :postalCode
456
+ attr_accessor :region
457
+ attr_accessor :timestamp
458
+
459
+ def initialize(address = nil, city = nil, countryCode = nil, key = nil, latitude = nil, longitude = nil, name = nil, phoneNumber = nil, postalCode = nil, region = nil, timestamp = nil)
460
+ @address = address
461
+ @city = city
462
+ @countryCode = countryCode
463
+ @key = key
464
+ @latitude = latitude
465
+ @longitude = longitude
466
+ @name = name
467
+ @phoneNumber = phoneNumber
468
+ @postalCode = postalCode
469
+ @region = region
470
+ @timestamp = timestamp
471
+ end
472
+ end
473
+
474
+ # {https://adwords.google.com/api/adwords/v13}Circle
475
+ # latitudeMicroDegrees - SOAP::SOAPInt
476
+ # longitudeMicroDegrees - SOAP::SOAPInt
477
+ # radiusMeters - SOAP::SOAPInt
478
+ class Circle
479
+ attr_accessor :latitudeMicroDegrees
480
+ attr_accessor :longitudeMicroDegrees
481
+ attr_accessor :radiusMeters
482
+
483
+ def initialize(latitudeMicroDegrees = nil, longitudeMicroDegrees = nil, radiusMeters = nil)
484
+ @latitudeMicroDegrees = latitudeMicroDegrees
485
+ @longitudeMicroDegrees = longitudeMicroDegrees
486
+ @radiusMeters = radiusMeters
487
+ end
488
+ end
489
+
490
+ # {https://adwords.google.com/api/adwords/v13}CityTargets
491
+ # cities - SOAP::SOAPString
492
+ # excludedCities - SOAP::SOAPString
493
+ class CityTargets
494
+ attr_accessor :cities
495
+ attr_accessor :excludedCities
496
+
497
+ def initialize(cities = [], excludedCities = [])
498
+ @cities = cities
499
+ @excludedCities = excludedCities
500
+ end
501
+ end
502
+
503
+ # {https://adwords.google.com/api/adwords/v13}CountryTargets
504
+ # countries - SOAP::SOAPString
505
+ # excludedCountries - SOAP::SOAPString
506
+ class CountryTargets
507
+ attr_accessor :countries
508
+ attr_accessor :excludedCountries
509
+
510
+ def initialize(countries = [], excludedCountries = [])
511
+ @countries = countries
512
+ @excludedCountries = excludedCountries
513
+ end
514
+ end
515
+
516
+ # {https://adwords.google.com/api/adwords/v13}GeoTarget
517
+ # cityTargets - AdWords::AdService::CityTargets
518
+ # countryTargets - AdWords::AdService::CountryTargets
519
+ # metroTargets - AdWords::AdService::MetroTargets
520
+ # proximityTargets - AdWords::AdService::ProximityTargets
521
+ # regionTargets - AdWords::AdService::RegionTargets
522
+ # targetAll - SOAP::SOAPBoolean
523
+ class GeoTarget
524
+ attr_accessor :cityTargets
525
+ attr_accessor :countryTargets
526
+ attr_accessor :metroTargets
527
+ attr_accessor :proximityTargets
528
+ attr_accessor :regionTargets
529
+ attr_accessor :targetAll
530
+
531
+ def initialize(cityTargets = nil, countryTargets = nil, metroTargets = nil, proximityTargets = nil, regionTargets = nil, targetAll = nil)
532
+ @cityTargets = cityTargets
533
+ @countryTargets = countryTargets
534
+ @metroTargets = metroTargets
535
+ @proximityTargets = proximityTargets
536
+ @regionTargets = regionTargets
537
+ @targetAll = targetAll
538
+ end
539
+ end
540
+
541
+ # {https://adwords.google.com/api/adwords/v13}Image
542
+ # data - SOAP::SOAPBase64
543
+ # height - SOAP::SOAPInt
544
+ # imageUrl - SOAP::SOAPString
545
+ # mimeType - SOAP::SOAPString
546
+ # name - SOAP::SOAPString
547
+ # shrunkenUrl - SOAP::SOAPString
548
+ # thumbnailUrl - SOAP::SOAPString
549
+ # type - AdWords::AdService::ImageType
550
+ # width - SOAP::SOAPInt
551
+ class Image
552
+ attr_accessor :data
553
+ attr_accessor :height
554
+ attr_accessor :imageUrl
555
+ attr_accessor :mimeType
556
+ attr_accessor :name
557
+ attr_accessor :shrunkenUrl
558
+ attr_accessor :thumbnailUrl
559
+ attr_accessor :type
560
+ attr_accessor :width
561
+
562
+ def initialize(data = nil, height = nil, imageUrl = nil, mimeType = nil, name = nil, shrunkenUrl = nil, thumbnailUrl = nil, type = nil, width = nil)
563
+ @data = data
564
+ @height = height
565
+ @imageUrl = imageUrl
566
+ @mimeType = mimeType
567
+ @name = name
568
+ @shrunkenUrl = shrunkenUrl
569
+ @thumbnailUrl = thumbnailUrl
570
+ @type = type
571
+ @width = width
572
+ end
573
+ end
574
+
575
+ # {https://adwords.google.com/api/adwords/v13}LanguageTarget
576
+ class LanguageTarget < ::Array
577
+ end
578
+
579
+ # {https://adwords.google.com/api/adwords/v13}MetroTargets
580
+ # excludedMetros - SOAP::SOAPString
581
+ # metros - SOAP::SOAPString
582
+ class MetroTargets
583
+ attr_accessor :excludedMetros
584
+ attr_accessor :metros
585
+
586
+ def initialize(excludedMetros = [], metros = [])
587
+ @excludedMetros = excludedMetros
588
+ @metros = metros
589
+ end
590
+ end
591
+
592
+ # {https://adwords.google.com/api/adwords/v13}ProximityTargets
593
+ class ProximityTargets < ::Array
594
+ end
595
+
596
+ # {https://adwords.google.com/api/adwords/v13}RegionTargets
597
+ # excludedRegions - SOAP::SOAPString
598
+ # regions - SOAP::SOAPString
599
+ class RegionTargets
600
+ attr_accessor :excludedRegions
601
+ attr_accessor :regions
602
+
603
+ def initialize(excludedRegions = [], regions = [])
604
+ @excludedRegions = excludedRegions
605
+ @regions = regions
606
+ end
607
+ end
608
+
609
+ # {https://adwords.google.com/api/adwords/v13}StatsRecord
610
+ # averagePosition - SOAP::SOAPDouble
611
+ # clicks - SOAP::SOAPLong
612
+ # conversionRate - SOAP::SOAPDouble
613
+ # conversions - SOAP::SOAPLong
614
+ # cost - SOAP::SOAPLong
615
+ # id - SOAP::SOAPLong
616
+ # impressions - SOAP::SOAPLong
617
+ class StatsRecord
618
+ attr_accessor :averagePosition
619
+ attr_accessor :clicks
620
+ attr_accessor :conversionRate
621
+ attr_accessor :conversions
622
+ attr_accessor :cost
623
+ attr_accessor :id
624
+ attr_accessor :impressions
625
+
626
+ def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
627
+ @averagePosition = averagePosition
628
+ @clicks = clicks
629
+ @conversionRate = conversionRate
630
+ @conversions = conversions
631
+ @cost = cost
632
+ @id = id
633
+ @impressions = impressions
634
+ end
635
+ end
636
+
637
+ # {https://adwords.google.com/api/adwords/v13}Video
638
+ # duration - SOAP::SOAPLong
639
+ # filename - SOAP::SOAPString
640
+ # preview - SOAP::SOAPString
641
+ # title - SOAP::SOAPString
642
+ # videoId - SOAP::SOAPLong
643
+ class Video
644
+ attr_accessor :duration
645
+ attr_accessor :filename
646
+ attr_accessor :preview
647
+ attr_accessor :title
648
+ attr_accessor :videoId
649
+
650
+ def initialize(duration = nil, filename = nil, preview = nil, title = nil, videoId = nil)
651
+ @duration = duration
652
+ @filename = filename
653
+ @preview = preview
654
+ @title = title
655
+ @videoId = videoId
656
+ end
657
+ end
658
+
659
+ # {https://adwords.google.com/api/adwords/v13}AdStatus
660
+ class AdStatus < ::String
661
+ Disabled = AdStatus.new("Disabled")
662
+ Enabled = AdStatus.new("Enabled")
663
+ Paused = AdStatus.new("Paused")
664
+ end
665
+
666
+ # {https://adwords.google.com/api/adwords/v13}AdType
667
+ class AdType < ::String
668
+ CommerceAd = AdType.new("CommerceAd")
669
+ ImageAd = AdType.new("ImageAd")
670
+ LocalBusinessAd = AdType.new("LocalBusinessAd")
671
+ MobileAd = AdType.new("MobileAd")
672
+ MobileImageAd = AdType.new("MobileImageAd")
673
+ TextAd = AdType.new("TextAd")
674
+ VideoAd = AdType.new("VideoAd")
675
+ end
676
+
677
+ # {https://adwords.google.com/api/adwords/v13}ImageType
678
+ class ImageType < ::String
679
+ DynamicImage = ImageType.new("dynamicImage")
680
+ Flash = ImageType.new("flash")
681
+ Image = ImageType.new("image")
682
+ end
683
+
684
+ # {https://adwords.google.com/api/adwords/v13}StockIcon
685
+ class StockIcon < ::String
686
+ Standard_1 = StockIcon.new("Standard_1")
687
+ Standard_10 = StockIcon.new("Standard_10")
688
+ Standard_11 = StockIcon.new("Standard_11")
689
+ Standard_12 = StockIcon.new("Standard_12")
690
+ Standard_13 = StockIcon.new("Standard_13")
691
+ Standard_14 = StockIcon.new("Standard_14")
692
+ Standard_15 = StockIcon.new("Standard_15")
693
+ Standard_16 = StockIcon.new("Standard_16")
694
+ Standard_17 = StockIcon.new("Standard_17")
695
+ Standard_2 = StockIcon.new("Standard_2")
696
+ Standard_3 = StockIcon.new("Standard_3")
697
+ Standard_4 = StockIcon.new("Standard_4")
698
+ Standard_5 = StockIcon.new("Standard_5")
699
+ Standard_6 = StockIcon.new("Standard_6")
700
+ Standard_7 = StockIcon.new("Standard_7")
701
+ Standard_8 = StockIcon.new("Standard_8")
702
+ Standard_9 = StockIcon.new("Standard_9")
703
+ end
704
+
705
+ # {https://adwords.google.com/api/adwords/v13}addAds
706
+ class AddAds < ::Array
707
+ end
708
+
709
+ # {https://adwords.google.com/api/adwords/v13}addAdsResponse
710
+ class AddAdsResponse < ::Array
711
+ end
712
+
713
+ # {https://adwords.google.com/api/adwords/v13}checkAds
714
+ # ads - AdWords::AdService::Ad
715
+ # languageTarget - AdWords::AdService::LanguageTarget
716
+ # geoTarget - AdWords::AdService::GeoTarget
717
+ class CheckAds
718
+ attr_accessor :ads
719
+ attr_accessor :languageTarget
720
+ attr_accessor :geoTarget
721
+
722
+ def initialize(ads = [], languageTarget = nil, geoTarget = nil)
723
+ @ads = ads
724
+ @languageTarget = languageTarget
725
+ @geoTarget = geoTarget
726
+ end
727
+ end
728
+
729
+ # {https://adwords.google.com/api/adwords/v13}checkAdsResponse
730
+ class CheckAdsResponse < ::Array
731
+ end
732
+
733
+ # {https://adwords.google.com/api/adwords/v13}findBusinesses
734
+ # name - SOAP::SOAPString
735
+ # address - SOAP::SOAPString
736
+ # countryCode - SOAP::SOAPString
737
+ class FindBusinesses
738
+ attr_accessor :name
739
+ attr_accessor :address
740
+ attr_accessor :countryCode
741
+
742
+ def initialize(name = nil, address = nil, countryCode = nil)
743
+ @name = name
744
+ @address = address
745
+ @countryCode = countryCode
746
+ end
747
+ end
748
+
749
+ # {https://adwords.google.com/api/adwords/v13}findBusinessesResponse
750
+ class FindBusinessesResponse < ::Array
751
+ end
752
+
753
+ # {https://adwords.google.com/api/adwords/v13}getActiveAds
754
+ class GetActiveAds < ::Array
755
+ end
756
+
757
+ # {https://adwords.google.com/api/adwords/v13}getActiveAdsResponse
758
+ class GetActiveAdsResponse < ::Array
759
+ end
760
+
761
+ # {https://adwords.google.com/api/adwords/v13}getAd
762
+ # adGroupId - SOAP::SOAPLong
763
+ # adId - SOAP::SOAPLong
764
+ class GetAd
765
+ attr_accessor :adGroupId
766
+ attr_accessor :adId
767
+
768
+ def initialize(adGroupId = nil, adId = nil)
769
+ @adGroupId = adGroupId
770
+ @adId = adId
771
+ end
772
+ end
773
+
774
+ # {https://adwords.google.com/api/adwords/v13}getAdResponse
775
+ # getAdReturn - AdWords::AdService::Ad
776
+ class GetAdResponse
777
+ attr_accessor :getAdReturn
778
+
779
+ def initialize(getAdReturn = nil)
780
+ @getAdReturn = getAdReturn
781
+ end
782
+ end
783
+
784
+ # {https://adwords.google.com/api/adwords/v13}getAdStats
785
+ # adGroupId - SOAP::SOAPLong
786
+ # adIds - SOAP::SOAPLong
787
+ # startDay - SOAP::SOAPDate
788
+ # endDay - SOAP::SOAPDate
789
+ class GetAdStats
790
+ attr_accessor :adGroupId
791
+ attr_accessor :adIds
792
+ attr_accessor :startDay
793
+ attr_accessor :endDay
794
+
795
+ def initialize(adGroupId = nil, adIds = [], startDay = nil, endDay = nil)
796
+ @adGroupId = adGroupId
797
+ @adIds = adIds
798
+ @startDay = startDay
799
+ @endDay = endDay
800
+ end
801
+ end
802
+
803
+ # {https://adwords.google.com/api/adwords/v13}getAdStatsResponse
804
+ class GetAdStatsResponse < ::Array
805
+ end
806
+
807
+ # {https://adwords.google.com/api/adwords/v13}getAllAds
808
+ class GetAllAds < ::Array
809
+ end
810
+
811
+ # {https://adwords.google.com/api/adwords/v13}getAllAdsResponse
812
+ class GetAllAdsResponse < ::Array
813
+ end
814
+
815
+ # {https://adwords.google.com/api/adwords/v13}getMyBusinesses
816
+ class GetMyBusinesses
817
+ def initialize
818
+ end
819
+ end
820
+
821
+ # {https://adwords.google.com/api/adwords/v13}getMyBusinessesResponse
822
+ class GetMyBusinessesResponse < ::Array
823
+ end
824
+
825
+ # {https://adwords.google.com/api/adwords/v13}getMyVideos
826
+ class GetMyVideos
827
+ def initialize
828
+ end
829
+ end
830
+
831
+ # {https://adwords.google.com/api/adwords/v13}getMyVideosResponse
832
+ class GetMyVideosResponse < ::Array
833
+ end
834
+
835
+ # {https://adwords.google.com/api/adwords/v13}updateAds
836
+ class UpdateAds < ::Array
837
+ end
838
+
839
+ # {https://adwords.google.com/api/adwords/v13}updateAdsResponse
840
+ class UpdateAdsResponse
841
+ def initialize
842
+ end
843
+ end
844
+
845
+
846
+ end; end