adwords4r 0.4 → 0.5

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.
@@ -0,0 +1,125 @@
1
+ module AdWords
2
+ require 'adwords4r/v4/KeywordService'
3
+
4
+ require 'soap/rpc/driver'
5
+
6
+ class KeywordService < ::SOAP::RPC::Driver
7
+ DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v4/KeywordService"
8
+ MappingRegistry = ::SOAP::Mapping::Registry.new
9
+
10
+ Methods = [
11
+ [ "",
12
+ "getAllKeywords",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getAllKeywords"], true],
14
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getAllKeywordsResponse"], true] ],
15
+ { :request_style => :document, :request_use => :literal,
16
+ :response_style => :document, :response_use => :literal }
17
+ ],
18
+ [ "",
19
+ "getKeywordList",
20
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getKeywordList"], true],
21
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getKeywordListResponse"], true] ],
22
+ { :request_style => :document, :request_use => :literal,
23
+ :response_style => :document, :response_use => :literal }
24
+ ],
25
+ [ "",
26
+ "getActiveKeywords",
27
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getActiveKeywords"], true],
28
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getActiveKeywordsResponse"], true] ],
29
+ { :request_style => :document, :request_use => :literal,
30
+ :response_style => :document, :response_use => :literal }
31
+ ],
32
+ [ "",
33
+ "setKeywordListMaxCpc",
34
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "setKeywordListMaxCpc"], true],
35
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "setKeywordListMaxCpcResponse"], true] ],
36
+ { :request_style => :document, :request_use => :literal,
37
+ :response_style => :document, :response_use => :literal }
38
+ ],
39
+ [ "",
40
+ "setKeywordListSingleMaxCpc",
41
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "setKeywordListSingleMaxCpc"], true],
42
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "setKeywordListSingleMaxCpcResponse"], true] ],
43
+ { :request_style => :document, :request_use => :literal,
44
+ :response_style => :document, :response_use => :literal }
45
+ ],
46
+ [ "",
47
+ "updateKeyword",
48
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "updateKeyword"], true],
49
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "updateKeywordResponse"], true] ],
50
+ { :request_style => :document, :request_use => :literal,
51
+ :response_style => :document, :response_use => :literal }
52
+ ],
53
+ [ "",
54
+ "updateKeywordList",
55
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "updateKeywordList"], true],
56
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "updateKeywordListResponse"], true] ],
57
+ { :request_style => :document, :request_use => :literal,
58
+ :response_style => :document, :response_use => :literal }
59
+ ],
60
+ [ "",
61
+ "addKeyword",
62
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "addKeyword"], true],
63
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "addKeywordResponse"], true] ],
64
+ { :request_style => :document, :request_use => :literal,
65
+ :response_style => :document, :response_use => :literal }
66
+ ],
67
+ [ "",
68
+ "addKeywordList",
69
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "addKeywordList"], true],
70
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "addKeywordListResponse"], true] ],
71
+ { :request_style => :document, :request_use => :literal,
72
+ :response_style => :document, :response_use => :literal }
73
+ ],
74
+ [ "",
75
+ "removeKeywordList",
76
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "removeKeywordList"], true],
77
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "removeKeywordListResponse"], true] ],
78
+ { :request_style => :document, :request_use => :literal,
79
+ :response_style => :document, :response_use => :literal }
80
+ ],
81
+ [ "",
82
+ "removeKeyword",
83
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "removeKeyword"], true],
84
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "removeKeywordResponse"], true] ],
85
+ { :request_style => :document, :request_use => :literal,
86
+ :response_style => :document, :response_use => :literal }
87
+ ],
88
+ [ "",
89
+ "getKeywordStats",
90
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getKeywordStats"], true],
91
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getKeywordStatsResponse"], true] ],
92
+ { :request_style => :document, :request_use => :literal,
93
+ :response_style => :document, :response_use => :literal }
94
+ ]
95
+ ]
96
+
97
+ def initialize(endpoint_url = nil)
98
+ endpoint_url ||= DefaultEndpointUrl
99
+ super(endpoint_url, nil)
100
+ self.mapping_registry = MappingRegistry
101
+ init_methods
102
+ end
103
+
104
+ private
105
+
106
+ def init_methods
107
+ Methods.each do |definitions|
108
+ opt = definitions.last
109
+ if opt[:request_style] == :document
110
+ add_document_operation(*definitions)
111
+ else
112
+ add_rpc_operation(*definitions)
113
+ qname = definitions[0]
114
+ name = definitions[2]
115
+ if qname.name != name and qname.name.capitalize == name.capitalize
116
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
117
+ __send__(name, *arg)
118
+ end
119
+ end
120
+ end
121
+ end
122
+ end
123
+ end
124
+
125
+ end
@@ -0,0 +1,227 @@
1
+ module AdWords
2
+ require 'xsd/qname'
3
+
4
+ # {https://adwords.google.com/api/adwords/v4}getKeywordVariations
5
+ class GetKeywordVariations
6
+ @@schema_type = "getKeywordVariations"
7
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
8
+ @@schema_qualified = "true"
9
+ @@schema_element = [
10
+ ["seedKeywords", "SeedKeyword[]"],
11
+ ["useSynonyms", "SOAP::SOAPBoolean"],
12
+ ["languages", "SOAP::SOAPString[]"],
13
+ ["countries", "SOAP::SOAPString[]"]
14
+ ]
15
+
16
+ attr_accessor :seedKeywords
17
+ attr_accessor :useSynonyms
18
+ attr_accessor :languages
19
+ attr_accessor :countries
20
+
21
+ def initialize(seedKeywords = [], useSynonyms = nil, languages = [], countries = [])
22
+ @seedKeywords = seedKeywords
23
+ @useSynonyms = useSynonyms
24
+ @languages = languages
25
+ @countries = countries
26
+ end
27
+ end
28
+
29
+ # {https://adwords.google.com/api/adwords/v4}getKeywordVariationsResponse
30
+ class GetKeywordVariationsResponse
31
+ @@schema_type = "getKeywordVariationsResponse"
32
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
33
+ @@schema_qualified = "true"
34
+ @@schema_element = [
35
+ ["getKeywordVariationsReturn", "KeywordVariations"]
36
+ ]
37
+
38
+ attr_accessor :getKeywordVariationsReturn
39
+
40
+ def initialize(getKeywordVariationsReturn = nil)
41
+ @getKeywordVariationsReturn = getKeywordVariationsReturn
42
+ end
43
+ end
44
+
45
+ # {https://adwords.google.com/api/adwords/v4}getKeywordsFromSite
46
+ class GetKeywordsFromSite
47
+ @@schema_type = "getKeywordsFromSite"
48
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
49
+ @@schema_qualified = "true"
50
+ @@schema_element = [
51
+ ["url", "SOAP::SOAPString"],
52
+ ["includeLinkedPages", "SOAP::SOAPBoolean"],
53
+ ["languages", "SOAP::SOAPString[]"],
54
+ ["countries", "SOAP::SOAPString[]"]
55
+ ]
56
+
57
+ attr_accessor :url
58
+ attr_accessor :includeLinkedPages
59
+ attr_accessor :languages
60
+ attr_accessor :countries
61
+
62
+ def initialize(url = nil, includeLinkedPages = nil, languages = [], countries = [])
63
+ @url = url
64
+ @includeLinkedPages = includeLinkedPages
65
+ @languages = languages
66
+ @countries = countries
67
+ end
68
+ end
69
+
70
+ # {https://adwords.google.com/api/adwords/v4}getKeywordsFromSiteResponse
71
+ class GetKeywordsFromSiteResponse
72
+ @@schema_type = "getKeywordsFromSiteResponse"
73
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
74
+ @@schema_qualified = "true"
75
+ @@schema_element = [
76
+ ["getKeywordsFromSiteReturn", "SiteKeywordGroups"]
77
+ ]
78
+
79
+ attr_accessor :getKeywordsFromSiteReturn
80
+
81
+ def initialize(getKeywordsFromSiteReturn = nil)
82
+ @getKeywordsFromSiteReturn = getKeywordsFromSiteReturn
83
+ end
84
+ end
85
+
86
+ # {https://adwords.google.com/api/adwords/v4}ApiException
87
+ class ApiException
88
+ @@schema_type = "ApiException"
89
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
90
+ @@schema_element = [
91
+ ["code", "SOAP::SOAPInt"],
92
+ ["internal", "SOAP::SOAPBoolean"],
93
+ ["message", "SOAP::SOAPString"],
94
+ ["trigger", "SOAP::SOAPString"],
95
+ ["violations", "SOAP::SOAPString"]
96
+ ]
97
+
98
+ attr_accessor :code
99
+ attr_accessor :internal
100
+ attr_accessor :message
101
+ attr_accessor :trigger
102
+ attr_accessor :violations
103
+
104
+ def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
105
+ @code = code
106
+ @internal = internal
107
+ @message = message
108
+ @trigger = trigger
109
+ @violations = violations
110
+ end
111
+ end
112
+
113
+ # {https://adwords.google.com/api/adwords/v4}SeedKeyword
114
+ class SeedKeyword
115
+ @@schema_type = "SeedKeyword"
116
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
117
+ @@schema_element = [
118
+ ["negative", "SOAP::SOAPBoolean"],
119
+ ["text", "SOAP::SOAPString"],
120
+ ["type", "SOAP::SOAPString"]
121
+ ]
122
+
123
+ attr_accessor :negative
124
+ attr_accessor :text
125
+ attr_accessor :type
126
+
127
+ def initialize(negative = nil, text = nil, type = nil)
128
+ @negative = negative
129
+ @text = text
130
+ @type = type
131
+ end
132
+ end
133
+
134
+ # {https://adwords.google.com/api/adwords/v4}KeywordVariations
135
+ class KeywordVariations
136
+ @@schema_type = "KeywordVariations"
137
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
138
+ @@schema_element = [
139
+ ["additionalToConsider", "KeywordVariation[]"],
140
+ ["moreSpecific", "KeywordVariation[]"]
141
+ ]
142
+
143
+ attr_accessor :additionalToConsider
144
+ attr_accessor :moreSpecific
145
+
146
+ def initialize(additionalToConsider = [], moreSpecific = [])
147
+ @additionalToConsider = additionalToConsider
148
+ @moreSpecific = moreSpecific
149
+ end
150
+ end
151
+
152
+ # {https://adwords.google.com/api/adwords/v4}KeywordVariation
153
+ class KeywordVariation
154
+ @@schema_type = "KeywordVariation"
155
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
156
+ @@schema_element = [
157
+ ["advertiserCompetitionScale", "SOAP::SOAPInt"],
158
+ ["language", "SOAP::SOAPString"],
159
+ ["searchVolumeScale", "SOAP::SOAPInt"],
160
+ ["text", "SOAP::SOAPString"]
161
+ ]
162
+
163
+ attr_accessor :advertiserCompetitionScale
164
+ attr_accessor :language
165
+ attr_accessor :searchVolumeScale
166
+ attr_accessor :text
167
+
168
+ def initialize(advertiserCompetitionScale = nil, language = nil, searchVolumeScale = nil, text = nil)
169
+ @advertiserCompetitionScale = advertiserCompetitionScale
170
+ @language = language
171
+ @searchVolumeScale = searchVolumeScale
172
+ @text = text
173
+ end
174
+ end
175
+
176
+ # {https://adwords.google.com/api/adwords/v4}SiteKeywordGroups
177
+ class SiteKeywordGroups
178
+ @@schema_type = "SiteKeywordGroups"
179
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
180
+ @@schema_element = [
181
+ ["groups", "SOAP::SOAPString[]"],
182
+ ["keywords", "SiteKeyword[]"]
183
+ ]
184
+
185
+ attr_accessor :groups
186
+ attr_accessor :keywords
187
+
188
+ def initialize(groups = [], keywords = [])
189
+ @groups = groups
190
+ @keywords = keywords
191
+ end
192
+ end
193
+
194
+ # {https://adwords.google.com/api/adwords/v4}SiteKeyword
195
+ class SiteKeyword
196
+ @@schema_type = "SiteKeyword"
197
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
198
+ @@schema_element = [
199
+ ["advertiserCompetitionScale", "SOAP::SOAPInt"],
200
+ ["groupId", "SOAP::SOAPInt"],
201
+ ["searchVolumeScale", "SOAP::SOAPInt"],
202
+ ["text", "SOAP::SOAPString"]
203
+ ]
204
+
205
+ attr_accessor :advertiserCompetitionScale
206
+ attr_accessor :groupId
207
+ attr_accessor :searchVolumeScale
208
+ attr_accessor :text
209
+
210
+ def initialize(advertiserCompetitionScale = nil, groupId = nil, searchVolumeScale = nil, text = nil)
211
+ @advertiserCompetitionScale = advertiserCompetitionScale
212
+ @groupId = groupId
213
+ @searchVolumeScale = searchVolumeScale
214
+ @text = text
215
+ end
216
+ end
217
+
218
+ # {https://adwords.google.com/api/adwords/v4}KeywordType
219
+ class KeywordType < ::String
220
+ @@schema_type = "KeywordType"
221
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
222
+
223
+ Broad = KeywordType.new("Broad")
224
+ Exact = KeywordType.new("Exact")
225
+ Phrase = KeywordType.new("Phrase")
226
+ end
227
+ end
@@ -0,0 +1,55 @@
1
+ module AdWords
2
+ require 'adwords4r/v4/KeywordToolService'
3
+
4
+ require 'soap/rpc/driver'
5
+
6
+ class KeywordToolInterface < ::SOAP::RPC::Driver
7
+ DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v4/KeywordToolService"
8
+ MappingRegistry = ::SOAP::Mapping::Registry.new
9
+
10
+ Methods = [
11
+ [ "",
12
+ "getKeywordVariations",
13
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getKeywordVariations"], true],
14
+ ["out", "paramteters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getKeywordVariationsResponse"], true] ],
15
+ { :request_style => :document, :request_use => :literal,
16
+ :response_style => :document, :response_use => :literal }
17
+ ],
18
+ [ "",
19
+ "getKeywordsFromSite",
20
+ [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getKeywordsFromSite"], true],
21
+ ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v4", "getKeywordsFromSiteResponse"], true] ],
22
+ { :request_style => :document, :request_use => :literal,
23
+ :response_style => :document, :response_use => :literal }
24
+ ]
25
+ ]
26
+
27
+ def initialize(endpoint_url = nil)
28
+ endpoint_url ||= DefaultEndpointUrl
29
+ super(endpoint_url, nil)
30
+ self.mapping_registry = MappingRegistry
31
+ init_methods
32
+ end
33
+
34
+ private
35
+
36
+ def init_methods
37
+ Methods.each do |definitions|
38
+ opt = definitions.last
39
+ if opt[:request_style] == :document
40
+ add_document_operation(*definitions)
41
+ else
42
+ add_rpc_operation(*definitions)
43
+ qname = definitions[0]
44
+ name = definitions[2]
45
+ if qname.name != name and qname.name.capitalize == name.capitalize
46
+ ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
47
+ __send__(name, *arg)
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+
55
+ end
@@ -0,0 +1,575 @@
1
+ module AdWords
2
+ require 'xsd/qname'
3
+
4
+ # {https://adwords.google.com/api/adwords/v4}scheduleReportJob
5
+ class ScheduleReportJob
6
+ @@schema_type = "scheduleReportJob"
7
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
8
+ @@schema_qualified = "true"
9
+ @@schema_element = [
10
+ ["job", "ReportJob"]
11
+ ]
12
+
13
+ attr_accessor :job
14
+
15
+ def initialize(job = nil)
16
+ @job = job
17
+ end
18
+ end
19
+
20
+ # {https://adwords.google.com/api/adwords/v4}scheduleReportJobResponse
21
+ class ScheduleReportJobResponse
22
+ @@schema_type = "scheduleReportJobResponse"
23
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
24
+ @@schema_qualified = "true"
25
+ @@schema_element = [
26
+ ["scheduleReportJobReturn", "SOAP::SOAPLong"]
27
+ ]
28
+
29
+ attr_accessor :scheduleReportJobReturn
30
+
31
+ def initialize(scheduleReportJobReturn = nil)
32
+ @scheduleReportJobReturn = scheduleReportJobReturn
33
+ end
34
+ end
35
+
36
+ # {https://adwords.google.com/api/adwords/v4}getReportJobStatus
37
+ class GetReportJobStatus
38
+ @@schema_type = "getReportJobStatus"
39
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
40
+ @@schema_qualified = "true"
41
+ @@schema_element = [
42
+ ["reportJobId", "SOAP::SOAPLong"]
43
+ ]
44
+
45
+ attr_accessor :reportJobId
46
+
47
+ def initialize(reportJobId = nil)
48
+ @reportJobId = reportJobId
49
+ end
50
+ end
51
+
52
+ # {https://adwords.google.com/api/adwords/v4}getReportJobStatusResponse
53
+ class GetReportJobStatusResponse
54
+ @@schema_type = "getReportJobStatusResponse"
55
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
56
+ @@schema_qualified = "true"
57
+ @@schema_element = [
58
+ ["getReportJobStatusReturn", "SOAP::SOAPString"]
59
+ ]
60
+
61
+ attr_accessor :getReportJobStatusReturn
62
+
63
+ def initialize(getReportJobStatusReturn = nil)
64
+ @getReportJobStatusReturn = getReportJobStatusReturn
65
+ end
66
+ end
67
+
68
+ # {https://adwords.google.com/api/adwords/v4}getReportDownloadUrl
69
+ class GetReportDownloadUrl
70
+ @@schema_type = "getReportDownloadUrl"
71
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
72
+ @@schema_qualified = "true"
73
+ @@schema_element = [
74
+ ["reportJobId", "SOAP::SOAPLong"]
75
+ ]
76
+
77
+ attr_accessor :reportJobId
78
+
79
+ def initialize(reportJobId = nil)
80
+ @reportJobId = reportJobId
81
+ end
82
+ end
83
+
84
+ # {https://adwords.google.com/api/adwords/v4}getReportDownloadUrlResponse
85
+ class GetReportDownloadUrlResponse
86
+ @@schema_type = "getReportDownloadUrlResponse"
87
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
88
+ @@schema_qualified = "true"
89
+ @@schema_element = [
90
+ ["getReportDownloadUrlReturn", "SOAP::SOAPString"]
91
+ ]
92
+
93
+ attr_accessor :getReportDownloadUrlReturn
94
+
95
+ def initialize(getReportDownloadUrlReturn = nil)
96
+ @getReportDownloadUrlReturn = getReportDownloadUrlReturn
97
+ end
98
+ end
99
+
100
+ # {https://adwords.google.com/api/adwords/v4}getGzipReportDownloadUrl
101
+ class GetGzipReportDownloadUrl
102
+ @@schema_type = "getGzipReportDownloadUrl"
103
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
104
+ @@schema_qualified = "true"
105
+ @@schema_element = [
106
+ ["reportJobId", "SOAP::SOAPLong"]
107
+ ]
108
+
109
+ attr_accessor :reportJobId
110
+
111
+ def initialize(reportJobId = nil)
112
+ @reportJobId = reportJobId
113
+ end
114
+ end
115
+
116
+ # {https://adwords.google.com/api/adwords/v4}getGzipReportDownloadUrlResponse
117
+ class GetGzipReportDownloadUrlResponse
118
+ @@schema_type = "getGzipReportDownloadUrlResponse"
119
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
120
+ @@schema_qualified = "true"
121
+ @@schema_element = [
122
+ ["getGzipReportDownloadUrlReturn", "SOAP::SOAPString"]
123
+ ]
124
+
125
+ attr_accessor :getGzipReportDownloadUrlReturn
126
+
127
+ def initialize(getGzipReportDownloadUrlReturn = nil)
128
+ @getGzipReportDownloadUrlReturn = getGzipReportDownloadUrlReturn
129
+ end
130
+ end
131
+
132
+ # {https://adwords.google.com/api/adwords/v4}getAllJobs
133
+ class GetAllJobs
134
+ @@schema_type = "getAllJobs"
135
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
136
+ @@schema_qualified = "true"
137
+ @@schema_element = []
138
+
139
+ def initialize
140
+ end
141
+ end
142
+
143
+ # {https://adwords.google.com/api/adwords/v4}getAllJobsResponse
144
+ class GetAllJobsResponse < ::Array
145
+ @@schema_element = [
146
+ ["getAllJobsReturn", ["ReportJob[]", XSD::QName.new("https://adwords.google.com/api/adwords/v4", "getAllJobsReturn")]]
147
+ ]
148
+ end
149
+
150
+ # {https://adwords.google.com/api/adwords/v4}deleteReport
151
+ class DeleteReport
152
+ @@schema_type = "deleteReport"
153
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
154
+ @@schema_qualified = "true"
155
+ @@schema_element = [
156
+ ["reportJobId", "SOAP::SOAPLong"]
157
+ ]
158
+
159
+ attr_accessor :reportJobId
160
+
161
+ def initialize(reportJobId = nil)
162
+ @reportJobId = reportJobId
163
+ end
164
+ end
165
+
166
+ # {https://adwords.google.com/api/adwords/v4}deleteReportResponse
167
+ class DeleteReportResponse
168
+ @@schema_type = "deleteReportResponse"
169
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
170
+ @@schema_qualified = "true"
171
+ @@schema_element = []
172
+
173
+ def initialize
174
+ end
175
+ end
176
+
177
+ # {https://adwords.google.com/api/adwords/v4}ApiException
178
+ class ApiException
179
+ @@schema_type = "ApiException"
180
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
181
+ @@schema_element = [
182
+ ["code", "SOAP::SOAPInt"],
183
+ ["internal", "SOAP::SOAPBoolean"],
184
+ ["message", "SOAP::SOAPString"],
185
+ ["trigger", "SOAP::SOAPString"],
186
+ ["violations", "SOAP::SOAPString"]
187
+ ]
188
+
189
+ attr_accessor :code
190
+ attr_accessor :internal
191
+ attr_accessor :message
192
+ attr_accessor :trigger
193
+ attr_accessor :violations
194
+
195
+ def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
196
+ @code = code
197
+ @internal = internal
198
+ @message = message
199
+ @trigger = trigger
200
+ @violations = violations
201
+ end
202
+ end
203
+
204
+ # {https://adwords.google.com/api/adwords/v4}ReportJob
205
+ class ReportJob
206
+ @@schema_type = "ReportJob"
207
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
208
+ @@schema_element = [
209
+ ["aggregationType", "SOAP::SOAPString"],
210
+ ["clientEmails", "SOAP::SOAPString[]"],
211
+ ["crossClient", "SOAP::SOAPBoolean"],
212
+ ["endDay", "SOAP::SOAPDate"],
213
+ ["id", "SOAP::SOAPLong"],
214
+ ["name", "SOAP::SOAPString"],
215
+ ["startDay", "SOAP::SOAPDate"],
216
+ ["status", "SOAP::SOAPString"]
217
+ ]
218
+
219
+ attr_accessor :aggregationType
220
+ attr_accessor :clientEmails
221
+ attr_accessor :crossClient
222
+ attr_accessor :endDay
223
+ attr_accessor :id
224
+ attr_accessor :name
225
+ attr_accessor :startDay
226
+ attr_accessor :status
227
+
228
+ def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil)
229
+ @aggregationType = aggregationType
230
+ @clientEmails = clientEmails
231
+ @crossClient = crossClient
232
+ @endDay = endDay
233
+ @id = id
234
+ @name = name
235
+ @startDay = startDay
236
+ @status = status
237
+ end
238
+ end
239
+
240
+ # {https://adwords.google.com/api/adwords/v4}KeywordReportJob
241
+ class KeywordReportJob
242
+ @@schema_type = "KeywordReportJob"
243
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
244
+ @@schema_element = [
245
+ ["aggregationType", "SOAP::SOAPString"],
246
+ ["clientEmails", "SOAP::SOAPString[]"],
247
+ ["crossClient", "SOAP::SOAPBoolean"],
248
+ ["endDay", "SOAP::SOAPDate"],
249
+ ["id", "SOAP::SOAPLong"],
250
+ ["name", "SOAP::SOAPString"],
251
+ ["startDay", "SOAP::SOAPDate"],
252
+ ["status", "SOAP::SOAPString"],
253
+ ["adWordsType", "SOAP::SOAPString"],
254
+ ["campaigns", "SOAP::SOAPInt[]"],
255
+ ["keywordStatuses", "SOAP::SOAPString[]"],
256
+ ["keywordType", "SOAP::SOAPString"],
257
+ ["includeZeroImpression", "SOAP::SOAPBoolean"]
258
+ ]
259
+
260
+ attr_accessor :aggregationType
261
+ attr_accessor :clientEmails
262
+ attr_accessor :crossClient
263
+ attr_accessor :endDay
264
+ attr_accessor :id
265
+ attr_accessor :name
266
+ attr_accessor :startDay
267
+ attr_accessor :status
268
+ attr_accessor :adWordsType
269
+ attr_accessor :campaigns
270
+ attr_accessor :keywordStatuses
271
+ attr_accessor :keywordType
272
+ attr_accessor :includeZeroImpression
273
+
274
+ def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adWordsType = nil, campaigns = [], keywordStatuses = [], keywordType = nil, includeZeroImpression = nil)
275
+ @aggregationType = aggregationType
276
+ @clientEmails = clientEmails
277
+ @crossClient = crossClient
278
+ @endDay = endDay
279
+ @id = id
280
+ @name = name
281
+ @startDay = startDay
282
+ @status = status
283
+ @adWordsType = adWordsType
284
+ @campaigns = campaigns
285
+ @keywordStatuses = keywordStatuses
286
+ @keywordType = keywordType
287
+ @includeZeroImpression = includeZeroImpression
288
+ end
289
+ end
290
+
291
+ # {https://adwords.google.com/api/adwords/v4}AdTextReportJob
292
+ class AdTextReportJob
293
+ @@schema_type = "AdTextReportJob"
294
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
295
+ @@schema_element = [
296
+ ["aggregationType", "SOAP::SOAPString"],
297
+ ["clientEmails", "SOAP::SOAPString[]"],
298
+ ["crossClient", "SOAP::SOAPBoolean"],
299
+ ["endDay", "SOAP::SOAPDate"],
300
+ ["id", "SOAP::SOAPLong"],
301
+ ["name", "SOAP::SOAPString"],
302
+ ["startDay", "SOAP::SOAPDate"],
303
+ ["status", "SOAP::SOAPString"],
304
+ ["adWordsType", "SOAP::SOAPString"],
305
+ ["campaigns", "SOAP::SOAPInt[]"]
306
+ ]
307
+
308
+ attr_accessor :aggregationType
309
+ attr_accessor :clientEmails
310
+ attr_accessor :crossClient
311
+ attr_accessor :endDay
312
+ attr_accessor :id
313
+ attr_accessor :name
314
+ attr_accessor :startDay
315
+ attr_accessor :status
316
+ attr_accessor :adWordsType
317
+ attr_accessor :campaigns
318
+
319
+ def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adWordsType = nil, campaigns = [])
320
+ @aggregationType = aggregationType
321
+ @clientEmails = clientEmails
322
+ @crossClient = crossClient
323
+ @endDay = endDay
324
+ @id = id
325
+ @name = name
326
+ @startDay = startDay
327
+ @status = status
328
+ @adWordsType = adWordsType
329
+ @campaigns = campaigns
330
+ end
331
+ end
332
+
333
+ # {https://adwords.google.com/api/adwords/v4}UrlReportJob
334
+ class UrlReportJob
335
+ @@schema_type = "UrlReportJob"
336
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
337
+ @@schema_element = [
338
+ ["aggregationType", "SOAP::SOAPString"],
339
+ ["clientEmails", "SOAP::SOAPString[]"],
340
+ ["crossClient", "SOAP::SOAPBoolean"],
341
+ ["endDay", "SOAP::SOAPDate"],
342
+ ["id", "SOAP::SOAPLong"],
343
+ ["name", "SOAP::SOAPString"],
344
+ ["startDay", "SOAP::SOAPDate"],
345
+ ["status", "SOAP::SOAPString"],
346
+ ["adWordsType", "SOAP::SOAPString"],
347
+ ["campaigns", "SOAP::SOAPInt[]"]
348
+ ]
349
+
350
+ attr_accessor :aggregationType
351
+ attr_accessor :clientEmails
352
+ attr_accessor :crossClient
353
+ attr_accessor :endDay
354
+ attr_accessor :id
355
+ attr_accessor :name
356
+ attr_accessor :startDay
357
+ attr_accessor :status
358
+ attr_accessor :adWordsType
359
+ attr_accessor :campaigns
360
+
361
+ def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adWordsType = nil, campaigns = [])
362
+ @aggregationType = aggregationType
363
+ @clientEmails = clientEmails
364
+ @crossClient = crossClient
365
+ @endDay = endDay
366
+ @id = id
367
+ @name = name
368
+ @startDay = startDay
369
+ @status = status
370
+ @adWordsType = adWordsType
371
+ @campaigns = campaigns
372
+ end
373
+ end
374
+
375
+ # {https://adwords.google.com/api/adwords/v4}CustomReportJob
376
+ class CustomReportJob
377
+ @@schema_type = "CustomReportJob"
378
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
379
+ @@schema_element = [
380
+ ["aggregationType", "SOAP::SOAPString"],
381
+ ["clientEmails", "SOAP::SOAPString[]"],
382
+ ["crossClient", "SOAP::SOAPBoolean"],
383
+ ["endDay", "SOAP::SOAPDate"],
384
+ ["id", "SOAP::SOAPLong"],
385
+ ["name", "SOAP::SOAPString"],
386
+ ["startDay", "SOAP::SOAPDate"],
387
+ ["status", "SOAP::SOAPString"],
388
+ ["adGroupStatuses", "SOAP::SOAPString[]"],
389
+ ["adGroups", "SOAP::SOAPInt[]"],
390
+ ["adWordsType", "SOAP::SOAPString"],
391
+ ["campaignStatuses", "SOAP::SOAPString[]"],
392
+ ["campaigns", "SOAP::SOAPInt[]"],
393
+ ["customOptions", "SOAP::SOAPString[]"],
394
+ ["keywordStatuses", "SOAP::SOAPString[]"],
395
+ ["keywordType", "SOAP::SOAPString"],
396
+ ["keywords", "SOAP::SOAPString[]"],
397
+ ["includeZeroImpression", "SOAP::SOAPBoolean"]
398
+ ]
399
+
400
+ attr_accessor :aggregationType
401
+ attr_accessor :clientEmails
402
+ attr_accessor :crossClient
403
+ attr_accessor :endDay
404
+ attr_accessor :id
405
+ attr_accessor :name
406
+ attr_accessor :startDay
407
+ attr_accessor :status
408
+ attr_accessor :adGroupStatuses
409
+ attr_accessor :adGroups
410
+ attr_accessor :adWordsType
411
+ attr_accessor :campaignStatuses
412
+ attr_accessor :campaigns
413
+ attr_accessor :customOptions
414
+ attr_accessor :keywordStatuses
415
+ attr_accessor :keywordType
416
+ attr_accessor :keywords
417
+ attr_accessor :includeZeroImpression
418
+
419
+ def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adGroupStatuses = [], adGroups = [], adWordsType = nil, campaignStatuses = [], campaigns = [], customOptions = [], keywordStatuses = [], keywordType = nil, keywords = [], includeZeroImpression = nil)
420
+ @aggregationType = aggregationType
421
+ @clientEmails = clientEmails
422
+ @crossClient = crossClient
423
+ @endDay = endDay
424
+ @id = id
425
+ @name = name
426
+ @startDay = startDay
427
+ @status = status
428
+ @adGroupStatuses = adGroupStatuses
429
+ @adGroups = adGroups
430
+ @adWordsType = adWordsType
431
+ @campaignStatuses = campaignStatuses
432
+ @campaigns = campaigns
433
+ @customOptions = customOptions
434
+ @keywordStatuses = keywordStatuses
435
+ @keywordType = keywordType
436
+ @keywords = keywords
437
+ @includeZeroImpression = includeZeroImpression
438
+ end
439
+ end
440
+
441
+ # {https://adwords.google.com/api/adwords/v4}ReportJobStatus
442
+ class ReportJobStatus < ::String
443
+ @@schema_type = "ReportJobStatus"
444
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
445
+
446
+ Completed = ReportJobStatus.new("Completed")
447
+ Failed = ReportJobStatus.new("Failed")
448
+ InProgress = ReportJobStatus.new("InProgress")
449
+ Pending = ReportJobStatus.new("Pending")
450
+ end
451
+
452
+ # {https://adwords.google.com/api/adwords/v4}AggregationType
453
+ class AggregationType < ::String
454
+ @@schema_type = "AggregationType"
455
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
456
+
457
+ Daily = AggregationType.new("Daily")
458
+ Monthly = AggregationType.new("Monthly")
459
+ Quarterly = AggregationType.new("Quarterly")
460
+ Summary = AggregationType.new("Summary")
461
+ Yearly = AggregationType.new("Yearly")
462
+ end
463
+
464
+ # {https://adwords.google.com/api/adwords/v4}AdWordsType
465
+ class AdWordsType < ::String
466
+ @@schema_type = "AdWordsType"
467
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
468
+
469
+ ContentOnly = AdWordsType.new("ContentOnly")
470
+ SearchOnly = AdWordsType.new("SearchOnly")
471
+ end
472
+
473
+ # {https://adwords.google.com/api/adwords/v4}KeywordStatus
474
+ class KeywordStatus < ::String
475
+ @@schema_type = "KeywordStatus"
476
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
477
+
478
+ Deleted = KeywordStatus.new("Deleted")
479
+ Disabled = KeywordStatus.new("Disabled")
480
+ Disapproved = KeywordStatus.new("Disapproved")
481
+ InTrial = KeywordStatus.new("InTrial")
482
+ Normal = KeywordStatus.new("Normal")
483
+ OnHold = KeywordStatus.new("OnHold")
484
+ end
485
+
486
+ # {https://adwords.google.com/api/adwords/v4}KeywordType
487
+ class KeywordType < ::String
488
+ @@schema_type = "KeywordType"
489
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
490
+
491
+ Broad = KeywordType.new("Broad")
492
+ Exact = KeywordType.new("Exact")
493
+ Phrase = KeywordType.new("Phrase")
494
+ end
495
+
496
+ # {https://adwords.google.com/api/adwords/v4}CampaignStatus
497
+ class CampaignStatus < ::String
498
+ @@schema_type = "CampaignStatus"
499
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
500
+
501
+ Active = CampaignStatus.new("Active")
502
+ Deleted = CampaignStatus.new("Deleted")
503
+ Ended = CampaignStatus.new("Ended")
504
+ Paused = CampaignStatus.new("Paused")
505
+ Pending = CampaignStatus.new("Pending")
506
+ Suspended = CampaignStatus.new("Suspended")
507
+ end
508
+
509
+ # {https://adwords.google.com/api/adwords/v4}CustomReportOption
510
+ class CustomReportOption < ::String
511
+ @@schema_type = "CustomReportOption"
512
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
513
+
514
+ AccountName = CustomReportOption.new("AccountName")
515
+ AdGroup = CustomReportOption.new("AdGroup")
516
+ AdGroupId = CustomReportOption.new("AdGroupId")
517
+ AdGroupStatus = CustomReportOption.new("AdGroupStatus")
518
+ AdWordsType = CustomReportOption.new("AdWordsType")
519
+ AverageConversionValue = CustomReportOption.new("AverageConversionValue")
520
+ AveragePosition = CustomReportOption.new("AveragePosition")
521
+ Campaign = CustomReportOption.new("Campaign")
522
+ CampaignEndDate = CustomReportOption.new("CampaignEndDate")
523
+ CampaignId = CustomReportOption.new("CampaignId")
524
+ CampaignStatus = CustomReportOption.new("CampaignStatus")
525
+ Clicks = CustomReportOption.new("Clicks")
526
+ ConversionRate = CustomReportOption.new("ConversionRate")
527
+ ConversionValuePerClick = CustomReportOption.new("ConversionValuePerClick")
528
+ ConversionValuePerCost = CustomReportOption.new("ConversionValuePerCost")
529
+ Conversions = CustomReportOption.new("Conversions")
530
+ Cost = CustomReportOption.new("Cost")
531
+ CostPerConversion = CustomReportOption.new("CostPerConversion")
532
+ CostPerTransaction = CustomReportOption.new("CostPerTransaction")
533
+ Cpc = CustomReportOption.new("Cpc")
534
+ CreativeDestinationUrl = CustomReportOption.new("CreativeDestinationUrl")
535
+ CreativeId = CustomReportOption.new("CreativeId")
536
+ CreativeStatus = CustomReportOption.new("CreativeStatus")
537
+ Ctr = CustomReportOption.new("Ctr")
538
+ DailyBudget = CustomReportOption.new("DailyBudget")
539
+ DefaultConversionCount = CustomReportOption.new("DefaultConversionCount")
540
+ DefaultConversionValue = CustomReportOption.new("DefaultConversionValue")
541
+ DescriptionLine1 = CustomReportOption.new("DescriptionLine1")
542
+ DescriptionLine2 = CustomReportOption.new("DescriptionLine2")
543
+ DescriptionLine3 = CustomReportOption.new("DescriptionLine3")
544
+ DestinationUrl = CustomReportOption.new("DestinationUrl")
545
+ Impressions = CustomReportOption.new("Impressions")
546
+ Keyword = CustomReportOption.new("Keyword")
547
+ KeywordDestinationUrl = CustomReportOption.new("KeywordDestinationUrl")
548
+ KeywordId = CustomReportOption.new("KeywordId")
549
+ KeywordStatus = CustomReportOption.new("KeywordStatus")
550
+ KeywordType = CustomReportOption.new("KeywordType")
551
+ LeadCount = CustomReportOption.new("LeadCount")
552
+ LeadValue = CustomReportOption.new("LeadValue")
553
+ MaximumCpc = CustomReportOption.new("MaximumCpc")
554
+ MinimumCpc = CustomReportOption.new("MinimumCpc")
555
+ PageViewCount = CustomReportOption.new("PageViewCount")
556
+ PageViewValue = CustomReportOption.new("PageViewValue")
557
+ SaleCount = CustomReportOption.new("SaleCount")
558
+ SaleValue = CustomReportOption.new("SaleValue")
559
+ SignupCount = CustomReportOption.new("SignupCount")
560
+ SignupValue = CustomReportOption.new("SignupValue")
561
+ TotalConversionValue = CustomReportOption.new("TotalConversionValue")
562
+ Transactions = CustomReportOption.new("Transactions")
563
+ VisibleUrl = CustomReportOption.new("VisibleUrl")
564
+ end
565
+
566
+ # {https://adwords.google.com/api/adwords/v4}AdGroupStatus
567
+ class AdGroupStatus < ::String
568
+ @@schema_type = "AdGroupStatus"
569
+ @@schema_ns = "https://adwords.google.com/api/adwords/v4"
570
+
571
+ Deleted = AdGroupStatus.new("Deleted")
572
+ Enabled = AdGroupStatus.new("Enabled")
573
+ Paused = AdGroupStatus.new("Paused")
574
+ end
575
+ end