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