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,111 @@
|
|
1
|
+
require 'adwords4r/v2/CampaignService'
|
2
|
+
|
3
|
+
require 'soap/rpc/driver'
|
4
|
+
module AdWordsV2
|
5
|
+
|
6
|
+
class CampaignService < ::SOAP::RPC::Driver
|
7
|
+
DefaultEndpointUrl = "https://adwords.google.com:443/api/adwords/v2/CampaignService"
|
8
|
+
MappingRegistry = ::SOAP::Mapping::Registry.new
|
9
|
+
|
10
|
+
Methods = [
|
11
|
+
[ "",
|
12
|
+
"getCampaign",
|
13
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getCampaign"], true],
|
14
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getCampaignResponse"], true] ],
|
15
|
+
{ :request_style => :document, :request_use => :literal,
|
16
|
+
:response_style => :document, :response_use => :literal }
|
17
|
+
],
|
18
|
+
[ "",
|
19
|
+
"getCampaignList",
|
20
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getCampaignList"], true],
|
21
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getCampaignListResponse"], true] ],
|
22
|
+
{ :request_style => :document, :request_use => :literal,
|
23
|
+
:response_style => :document, :response_use => :literal }
|
24
|
+
],
|
25
|
+
[ "",
|
26
|
+
"getAllAdWordsCampaigns",
|
27
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getAllAdWordsCampaigns"], true],
|
28
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getAllAdWordsCampaignsResponse"], true] ],
|
29
|
+
{ :request_style => :document, :request_use => :literal,
|
30
|
+
:response_style => :document, :response_use => :literal }
|
31
|
+
],
|
32
|
+
[ "",
|
33
|
+
"addCampaign",
|
34
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "addCampaign"], true],
|
35
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "addCampaignResponse"], true] ],
|
36
|
+
{ :request_style => :document, :request_use => :literal,
|
37
|
+
:response_style => :document, :response_use => :literal }
|
38
|
+
],
|
39
|
+
[ "",
|
40
|
+
"addCampaignList",
|
41
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "addCampaignList"], true],
|
42
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "addCampaignListResponse"], true] ],
|
43
|
+
{ :request_style => :document, :request_use => :literal,
|
44
|
+
:response_style => :document, :response_use => :literal }
|
45
|
+
],
|
46
|
+
[ "",
|
47
|
+
"updateCampaign",
|
48
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "updateCampaign"], true],
|
49
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "updateCampaignResponse"], true] ],
|
50
|
+
{ :request_style => :document, :request_use => :literal,
|
51
|
+
:response_style => :document, :response_use => :literal }
|
52
|
+
],
|
53
|
+
[ "",
|
54
|
+
"updateCampaignList",
|
55
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "updateCampaignList"], true],
|
56
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "updateCampaignListResponse"], true] ],
|
57
|
+
{ :request_style => :document, :request_use => :literal,
|
58
|
+
:response_style => :document, :response_use => :literal }
|
59
|
+
],
|
60
|
+
[ "",
|
61
|
+
"getOptimizeAdServing",
|
62
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getOptimizeAdServing"], true],
|
63
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getOptimizeAdServingResponse"], true] ],
|
64
|
+
{ :request_style => :document, :request_use => :literal,
|
65
|
+
:response_style => :document, :response_use => :literal }
|
66
|
+
],
|
67
|
+
[ "",
|
68
|
+
"setOptimizeAdServing",
|
69
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "setOptimizeAdServing"], true],
|
70
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "setOptimizeAdServingResponse"], true] ],
|
71
|
+
{ :request_style => :document, :request_use => :literal,
|
72
|
+
:response_style => :document, :response_use => :literal }
|
73
|
+
],
|
74
|
+
[ "",
|
75
|
+
"getCampaignStats",
|
76
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getCampaignStats"], true],
|
77
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v2", "getCampaignStatsResponse"], true] ],
|
78
|
+
{ :request_style => :document, :request_use => :literal,
|
79
|
+
:response_style => :document, :response_use => :literal }
|
80
|
+
]
|
81
|
+
]
|
82
|
+
|
83
|
+
def initialize(endpoint_url = nil)
|
84
|
+
endpoint_url ||= DefaultEndpointUrl
|
85
|
+
super(endpoint_url, nil)
|
86
|
+
self.mapping_registry = MappingRegistry
|
87
|
+
init_methods
|
88
|
+
end
|
89
|
+
|
90
|
+
private
|
91
|
+
|
92
|
+
def init_methods
|
93
|
+
Methods.each do |definitions|
|
94
|
+
opt = definitions.last
|
95
|
+
if opt[:request_style] == :document
|
96
|
+
add_document_operation(*definitions)
|
97
|
+
else
|
98
|
+
add_rpc_operation(*definitions)
|
99
|
+
qname = definitions[0]
|
100
|
+
name = definitions[2]
|
101
|
+
if qname.name != name and qname.name.capitalize == name.capitalize
|
102
|
+
::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
|
103
|
+
__send__(name, *arg)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
@@ -0,0 +1,399 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
# {https://adwords.google.com/api/adwords/v2}getAllCreatives
|
4
|
+
class GetAllCreatives
|
5
|
+
@@schema_type = "getAllCreatives"
|
6
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
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/v2}getAllCreativesResponse
|
20
|
+
class GetAllCreativesResponse < ::Array
|
21
|
+
@@schema_element = [
|
22
|
+
["getAllCreativesReturn", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "getAllCreativesReturn")]]
|
23
|
+
]
|
24
|
+
end
|
25
|
+
|
26
|
+
# {https://adwords.google.com/api/adwords/v2}getActiveCreatives
|
27
|
+
class GetActiveCreatives
|
28
|
+
@@schema_type = "getActiveCreatives"
|
29
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
30
|
+
@@schema_qualified = "true"
|
31
|
+
@@schema_element = [
|
32
|
+
["adGroupId", "SOAP::SOAPInt"]
|
33
|
+
]
|
34
|
+
|
35
|
+
attr_accessor :adGroupId
|
36
|
+
|
37
|
+
def initialize(adGroupId = nil)
|
38
|
+
@adGroupId = adGroupId
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
# {https://adwords.google.com/api/adwords/v2}getActiveCreativesResponse
|
43
|
+
class GetActiveCreativesResponse < ::Array
|
44
|
+
@@schema_element = [
|
45
|
+
["getActiveCreativesReturn", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "getActiveCreativesReturn")]]
|
46
|
+
]
|
47
|
+
end
|
48
|
+
|
49
|
+
# {https://adwords.google.com/api/adwords/v2}getCreative
|
50
|
+
class GetCreative
|
51
|
+
@@schema_type = "getCreative"
|
52
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
53
|
+
@@schema_qualified = "true"
|
54
|
+
@@schema_element = [
|
55
|
+
["adGroupId", "SOAP::SOAPInt"],
|
56
|
+
["creativeId", "SOAP::SOAPInt"]
|
57
|
+
]
|
58
|
+
|
59
|
+
attr_accessor :adGroupId
|
60
|
+
attr_accessor :creativeId
|
61
|
+
|
62
|
+
def initialize(adGroupId = nil, creativeId = nil)
|
63
|
+
@adGroupId = adGroupId
|
64
|
+
@creativeId = creativeId
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# {https://adwords.google.com/api/adwords/v2}getCreativeResponse
|
69
|
+
class GetCreativeResponse
|
70
|
+
@@schema_type = "getCreativeResponse"
|
71
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
72
|
+
@@schema_qualified = "true"
|
73
|
+
@@schema_element = [
|
74
|
+
["getCreativeReturn", "Creative"]
|
75
|
+
]
|
76
|
+
|
77
|
+
attr_accessor :getCreativeReturn
|
78
|
+
|
79
|
+
def initialize(getCreativeReturn = nil)
|
80
|
+
@getCreativeReturn = getCreativeReturn
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# {https://adwords.google.com/api/adwords/v2}addCreative
|
85
|
+
class AddCreative
|
86
|
+
@@schema_type = "addCreative"
|
87
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
88
|
+
@@schema_qualified = "true"
|
89
|
+
@@schema_element = [
|
90
|
+
["creative", "Creative"]
|
91
|
+
]
|
92
|
+
|
93
|
+
attr_accessor :creative
|
94
|
+
|
95
|
+
def initialize(creative = nil)
|
96
|
+
@creative = creative
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# {https://adwords.google.com/api/adwords/v2}addCreativeResponse
|
101
|
+
class AddCreativeResponse
|
102
|
+
@@schema_type = "addCreativeResponse"
|
103
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
104
|
+
@@schema_qualified = "true"
|
105
|
+
@@schema_element = [
|
106
|
+
["addCreativeReturn", "Creative"]
|
107
|
+
]
|
108
|
+
|
109
|
+
attr_accessor :addCreativeReturn
|
110
|
+
|
111
|
+
def initialize(addCreativeReturn = nil)
|
112
|
+
@addCreativeReturn = addCreativeReturn
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# {https://adwords.google.com/api/adwords/v2}addCreativeList
|
117
|
+
class AddCreativeList < ::Array
|
118
|
+
@@schema_element = [
|
119
|
+
["creatives", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "creatives")]]
|
120
|
+
]
|
121
|
+
end
|
122
|
+
|
123
|
+
# {https://adwords.google.com/api/adwords/v2}addCreativeListResponse
|
124
|
+
class AddCreativeListResponse < ::Array
|
125
|
+
@@schema_element = [
|
126
|
+
["addCreativeListReturn", ["Creative[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "addCreativeListReturn")]]
|
127
|
+
]
|
128
|
+
end
|
129
|
+
|
130
|
+
# {https://adwords.google.com/api/adwords/v2}deleteCreative
|
131
|
+
class DeleteCreative
|
132
|
+
@@schema_type = "deleteCreative"
|
133
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
134
|
+
@@schema_qualified = "true"
|
135
|
+
@@schema_element = [
|
136
|
+
["adGroupId", "SOAP::SOAPInt"],
|
137
|
+
["creativeId", "SOAP::SOAPInt"]
|
138
|
+
]
|
139
|
+
|
140
|
+
attr_accessor :adGroupId
|
141
|
+
attr_accessor :creativeId
|
142
|
+
|
143
|
+
def initialize(adGroupId = nil, creativeId = nil)
|
144
|
+
@adGroupId = adGroupId
|
145
|
+
@creativeId = creativeId
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# {https://adwords.google.com/api/adwords/v2}deleteCreativeResponse
|
150
|
+
class DeleteCreativeResponse
|
151
|
+
@@schema_type = "deleteCreativeResponse"
|
152
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
153
|
+
@@schema_qualified = "true"
|
154
|
+
@@schema_element = []
|
155
|
+
|
156
|
+
def initialize
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# {https://adwords.google.com/api/adwords/v2}deleteCreativeList
|
161
|
+
class DeleteCreativeList
|
162
|
+
@@schema_type = "deleteCreativeList"
|
163
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
164
|
+
@@schema_qualified = "true"
|
165
|
+
@@schema_element = [
|
166
|
+
["adGroupIds", "SOAP::SOAPInt[]"],
|
167
|
+
["creativeIds", "SOAP::SOAPInt[]"]
|
168
|
+
]
|
169
|
+
|
170
|
+
attr_accessor :adGroupIds
|
171
|
+
attr_accessor :creativeIds
|
172
|
+
|
173
|
+
def initialize(adGroupIds = [], creativeIds = [])
|
174
|
+
@adGroupIds = adGroupIds
|
175
|
+
@creativeIds = creativeIds
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# {https://adwords.google.com/api/adwords/v2}deleteCreativeListResponse
|
180
|
+
class DeleteCreativeListResponse
|
181
|
+
@@schema_type = "deleteCreativeListResponse"
|
182
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
183
|
+
@@schema_qualified = "true"
|
184
|
+
@@schema_element = []
|
185
|
+
|
186
|
+
def initialize
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# {https://adwords.google.com/api/adwords/v2}activateCreative
|
191
|
+
class ActivateCreative
|
192
|
+
@@schema_type = "activateCreative"
|
193
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
194
|
+
@@schema_qualified = "true"
|
195
|
+
@@schema_element = [
|
196
|
+
["adGroupId", "SOAP::SOAPInt"],
|
197
|
+
["creativeId", "SOAP::SOAPInt"]
|
198
|
+
]
|
199
|
+
|
200
|
+
attr_accessor :adGroupId
|
201
|
+
attr_accessor :creativeId
|
202
|
+
|
203
|
+
def initialize(adGroupId = nil, creativeId = nil)
|
204
|
+
@adGroupId = adGroupId
|
205
|
+
@creativeId = creativeId
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
# {https://adwords.google.com/api/adwords/v2}activateCreativeResponse
|
210
|
+
class ActivateCreativeResponse
|
211
|
+
@@schema_type = "activateCreativeResponse"
|
212
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
213
|
+
@@schema_qualified = "true"
|
214
|
+
@@schema_element = []
|
215
|
+
|
216
|
+
def initialize
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
# {https://adwords.google.com/api/adwords/v2}activateCreativeList
|
221
|
+
class ActivateCreativeList
|
222
|
+
@@schema_type = "activateCreativeList"
|
223
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
224
|
+
@@schema_qualified = "true"
|
225
|
+
@@schema_element = [
|
226
|
+
["adGroupIds", "SOAP::SOAPInt[]"],
|
227
|
+
["creativeIds", "SOAP::SOAPInt[]"]
|
228
|
+
]
|
229
|
+
|
230
|
+
attr_accessor :adGroupIds
|
231
|
+
attr_accessor :creativeIds
|
232
|
+
|
233
|
+
def initialize(adGroupIds = [], creativeIds = [])
|
234
|
+
@adGroupIds = adGroupIds
|
235
|
+
@creativeIds = creativeIds
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
# {https://adwords.google.com/api/adwords/v2}activateCreativeListResponse
|
240
|
+
class ActivateCreativeListResponse
|
241
|
+
@@schema_type = "activateCreativeListResponse"
|
242
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
243
|
+
@@schema_qualified = "true"
|
244
|
+
@@schema_element = []
|
245
|
+
|
246
|
+
def initialize
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
# {https://adwords.google.com/api/adwords/v2}Image
|
251
|
+
class Image
|
252
|
+
@@schema_type = "Image"
|
253
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
254
|
+
@@schema_element = [
|
255
|
+
["name", "SOAP::SOAPString"],
|
256
|
+
["data", "SOAP::SOAPBase64"],
|
257
|
+
["width", "SOAP::SOAPInt"],
|
258
|
+
["height", "SOAP::SOAPInt"],
|
259
|
+
["type", "ImageType"],
|
260
|
+
["mimeType", "SOAP::SOAPString"],
|
261
|
+
["imageUrl", "SOAP::SOAPString"],
|
262
|
+
["thumbnailUrl", "SOAP::SOAPString"]
|
263
|
+
]
|
264
|
+
|
265
|
+
attr_accessor :name
|
266
|
+
attr_accessor :data
|
267
|
+
attr_accessor :width
|
268
|
+
attr_accessor :height
|
269
|
+
attr_accessor :type
|
270
|
+
attr_accessor :mimeType
|
271
|
+
attr_accessor :imageUrl
|
272
|
+
attr_accessor :thumbnailUrl
|
273
|
+
|
274
|
+
def initialize(name = nil, data = nil, width = nil, height = nil, type = nil, mimeType = nil, imageUrl = nil, thumbnailUrl = nil)
|
275
|
+
@name = name
|
276
|
+
@data = data
|
277
|
+
@width = width
|
278
|
+
@height = height
|
279
|
+
@type = type
|
280
|
+
@mimeType = mimeType
|
281
|
+
@imageUrl = imageUrl
|
282
|
+
@thumbnailUrl = thumbnailUrl
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
# {https://adwords.google.com/api/adwords/v2}Creative
|
287
|
+
class Creative
|
288
|
+
@@schema_type = "Creative"
|
289
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
290
|
+
@@schema_element = [
|
291
|
+
["id", "SOAP::SOAPInt"],
|
292
|
+
["adGroupId", "SOAP::SOAPInt"],
|
293
|
+
["headline", "SOAP::SOAPString"],
|
294
|
+
["description1", "SOAP::SOAPString"],
|
295
|
+
["description2", "SOAP::SOAPString"],
|
296
|
+
["destinationUrl", "SOAP::SOAPString"],
|
297
|
+
["displayUrl", "SOAP::SOAPString"],
|
298
|
+
["deleted", "SOAP::SOAPBoolean"],
|
299
|
+
["disapproved", "SOAP::SOAPBoolean"],
|
300
|
+
["image", "Image"],
|
301
|
+
["exemptionRequest", "SOAP::SOAPString"]
|
302
|
+
]
|
303
|
+
|
304
|
+
attr_accessor :id
|
305
|
+
attr_accessor :adGroupId
|
306
|
+
attr_accessor :headline
|
307
|
+
attr_accessor :description1
|
308
|
+
attr_accessor :description2
|
309
|
+
attr_accessor :destinationUrl
|
310
|
+
attr_accessor :displayUrl
|
311
|
+
attr_accessor :deleted
|
312
|
+
attr_accessor :disapproved
|
313
|
+
attr_accessor :image
|
314
|
+
attr_accessor :exemptionRequest
|
315
|
+
|
316
|
+
def initialize(id = nil, adGroupId = nil, headline = nil, description1 = nil, description2 = nil, destinationUrl = nil, displayUrl = nil, deleted = nil, disapproved = nil, image = nil, exemptionRequest = nil)
|
317
|
+
@id = id
|
318
|
+
@adGroupId = adGroupId
|
319
|
+
@headline = headline
|
320
|
+
@description1 = description1
|
321
|
+
@description2 = description2
|
322
|
+
@destinationUrl = destinationUrl
|
323
|
+
@displayUrl = displayUrl
|
324
|
+
@deleted = deleted
|
325
|
+
@disapproved = disapproved
|
326
|
+
@image = image
|
327
|
+
@exemptionRequest = exemptionRequest
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
# {https://adwords.google.com/api/adwords/v2}AdPolicyViolation
|
332
|
+
class AdPolicyViolation
|
333
|
+
@@schema_type = "AdPolicyViolation"
|
334
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
335
|
+
@@schema_element = [
|
336
|
+
["index", "SOAP::SOAPInt"],
|
337
|
+
["line", "SOAP::SOAPInt"],
|
338
|
+
["textIndex", "SOAP::SOAPInt"],
|
339
|
+
["textLength", "SOAP::SOAPInt"],
|
340
|
+
["trigger", "SOAP::SOAPString"],
|
341
|
+
["detail", "SOAP::SOAPString"],
|
342
|
+
["isExemptable", "SOAP::SOAPBoolean"]
|
343
|
+
]
|
344
|
+
|
345
|
+
attr_accessor :index
|
346
|
+
attr_accessor :line
|
347
|
+
attr_accessor :textIndex
|
348
|
+
attr_accessor :textLength
|
349
|
+
attr_accessor :trigger
|
350
|
+
attr_accessor :detail
|
351
|
+
attr_accessor :isExemptable
|
352
|
+
|
353
|
+
def initialize(index = nil, line = nil, textIndex = nil, textLength = nil, trigger = nil, detail = nil, isExemptable = nil)
|
354
|
+
@index = index
|
355
|
+
@line = line
|
356
|
+
@textIndex = textIndex
|
357
|
+
@textLength = textLength
|
358
|
+
@trigger = trigger
|
359
|
+
@detail = detail
|
360
|
+
@isExemptable = isExemptable
|
361
|
+
end
|
362
|
+
end
|
363
|
+
|
364
|
+
# {https://adwords.google.com/api/adwords/v2}ApiException
|
365
|
+
class ApiException
|
366
|
+
@@schema_type = "ApiException"
|
367
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
368
|
+
@@schema_element = [
|
369
|
+
["code", "SOAP::SOAPInt"],
|
370
|
+
["internal", "SOAP::SOAPBoolean"],
|
371
|
+
["message", "SOAP::SOAPString"],
|
372
|
+
["trigger", "SOAP::SOAPString"],
|
373
|
+
["violations", "SOAP::SOAPString"]
|
374
|
+
]
|
375
|
+
|
376
|
+
attr_accessor :code
|
377
|
+
attr_accessor :internal
|
378
|
+
attr_accessor :message
|
379
|
+
attr_accessor :trigger
|
380
|
+
attr_accessor :violations
|
381
|
+
|
382
|
+
def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
|
383
|
+
@code = code
|
384
|
+
@internal = internal
|
385
|
+
@message = message
|
386
|
+
@trigger = trigger
|
387
|
+
@violations = violations
|
388
|
+
end
|
389
|
+
end
|
390
|
+
|
391
|
+
# {https://adwords.google.com/api/adwords/v2}ImageType
|
392
|
+
class ImageType < ::String
|
393
|
+
@@schema_type = "ImageType"
|
394
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v2"
|
395
|
+
|
396
|
+
DynamicImage = ImageType.new("dynamicImage")
|
397
|
+
Flash = ImageType.new("flash")
|
398
|
+
Image = ImageType.new("image")
|
399
|
+
end
|