adwords4r 0.5 → 0.6

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 (57) hide show
  1. data/ChangeLog.txt +4 -0
  2. data/Rakefile +10 -10
  3. data/Readme.txt +78 -74
  4. data/Todo.txt +12 -0
  5. data/adwords.properties +2 -0
  6. data/examples/campaign.rb +1 -2
  7. data/examples/keyword_tool_demo.rb +27 -0
  8. data/examples/sandbox.rb +30 -0
  9. data/lib/adwords4r.rb +7 -1
  10. data/lib/adwords4r/credentials.rb +5 -3
  11. data/lib/adwords4r/services.rb +2 -2
  12. data/lib/adwords4r/v4/CreativeService.rb +0 -33
  13. data/lib/adwords4r/{v3 → v5}/AccountService.rb +311 -86
  14. data/lib/adwords4r/{v3 → v5}/AccountServiceDriver.rb +69 -34
  15. data/lib/adwords4r/{v3 → v5}/AdGroupService.rb +90 -58
  16. data/lib/adwords4r/{v3 → v5}/AdGroupServiceDriver.rb +18 -18
  17. data/lib/adwords4r/{v3 → v5}/CampaignService.rb +121 -89
  18. data/lib/adwords4r/{v3 → v5}/CampaignServiceDriver.rb +22 -22
  19. data/lib/adwords4r/{v3 → v5}/CreativeService.rb +84 -81
  20. data/lib/adwords4r/{v2 → v5}/CreativeServiceDriver.rb +20 -20
  21. data/lib/adwords4r/{v3 → v5}/CriterionService.rb +96 -64
  22. data/lib/adwords4r/{v3 → v5}/CriterionServiceDriver.rb +18 -18
  23. data/lib/adwords4r/{v3 → v5}/InfoService.rb +70 -34
  24. data/lib/adwords4r/{v2 → v5}/InfoServiceDriver.rb +16 -16
  25. data/lib/adwords4r/{v3 → v5}/KeywordToolService.rb +62 -26
  26. data/lib/adwords4r/{v3 → v5}/KeywordToolServiceDriver.rb +6 -6
  27. data/lib/adwords4r/v5/ReportService.rb +788 -0
  28. data/lib/adwords4r/{v2 → v5}/ReportServiceDriver.rb +14 -14
  29. data/lib/adwords4r/{v3 → v5}/TrafficEstimatorService.rb +95 -50
  30. data/lib/adwords4r/{v2 → v5}/TrafficEstimatorServiceDriver.rb +8 -8
  31. metadata +23 -46
  32. data/examples/report_demo.rb +0 -42
  33. data/lib/adwords4r/registry.rb +0 -31
  34. data/lib/adwords4r/v2/AccountService.rb +0 -628
  35. data/lib/adwords4r/v2/AccountServiceDriver.rb +0 -153
  36. data/lib/adwords4r/v2/AdGroupService.rb +0 -317
  37. data/lib/adwords4r/v2/AdGroupServiceDriver.rb +0 -97
  38. data/lib/adwords4r/v2/CampaignService.rb +0 -517
  39. data/lib/adwords4r/v2/CampaignServiceDriver.rb +0 -111
  40. data/lib/adwords4r/v2/CreativeService.rb +0 -401
  41. data/lib/adwords4r/v2/CriterionService.rb +0 -415
  42. data/lib/adwords4r/v2/CriterionServiceDriver.rb +0 -97
  43. data/lib/adwords4r/v2/InfoService.rb +0 -260
  44. data/lib/adwords4r/v2/KeywordService.rb +0 -543
  45. data/lib/adwords4r/v2/KeywordServiceDriver.rb +0 -125
  46. data/lib/adwords4r/v2/ReportService.rb +0 -569
  47. data/lib/adwords4r/v2/TrafficEstimatorService.rb +0 -251
  48. data/lib/adwords4r/v2/default.rb +0 -364
  49. data/lib/adwords4r/v2/defaultDriver.rb +0 -102
  50. data/lib/adwords4r/v3/CreativeServiceDriver.rb +0 -104
  51. data/lib/adwords4r/v3/InfoServiceDriver.rb +0 -90
  52. data/lib/adwords4r/v3/KeywordService.rb +0 -543
  53. data/lib/adwords4r/v3/KeywordServiceDriver.rb +0 -125
  54. data/lib/adwords4r/v3/ReportService.rb +0 -569
  55. data/lib/adwords4r/v3/ReportServiceDriver.rb +0 -83
  56. data/lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb +0 -62
  57. data/scripts/publish.rb +0 -16
@@ -1,251 +0,0 @@
1
- module AdWords
2
- require 'xsd/qname'
3
-
4
- # {https://adwords.google.com/api/adwords/v2}estimateCampaignList
5
- class EstimateCampaignList < ::Array
6
- @@schema_element = [
7
- ["campaignRequests", ["CampaignRequest[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "campaignRequests")]]
8
- ]
9
- end
10
-
11
- # {https://adwords.google.com/api/adwords/v2}estimateCampaignListResponse
12
- class EstimateCampaignListResponse < ::Array
13
- @@schema_element = [
14
- ["estimateCampaignListReturn", ["CampaignEstimate[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "estimateCampaignListReturn")]]
15
- ]
16
- end
17
-
18
- # {https://adwords.google.com/api/adwords/v2}estimateAdGroupList
19
- class EstimateAdGroupList < ::Array
20
- @@schema_element = [
21
- ["adGroupRequests", ["AdGroupRequest[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "adGroupRequests")]]
22
- ]
23
- end
24
-
25
- # {https://adwords.google.com/api/adwords/v2}estimateAdGroupListResponse
26
- class EstimateAdGroupListResponse < ::Array
27
- @@schema_element = [
28
- ["estimateAdGroupListReturn", ["AdGroupEstimate[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "estimateAdGroupListReturn")]]
29
- ]
30
- end
31
-
32
- # {https://adwords.google.com/api/adwords/v2}estimateKeywordList
33
- class EstimateKeywordList < ::Array
34
- @@schema_element = [
35
- ["keywordRequests", ["KeywordRequest[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "keywordRequests")]]
36
- ]
37
- end
38
-
39
- # {https://adwords.google.com/api/adwords/v2}estimateKeywordListResponse
40
- class EstimateKeywordListResponse < ::Array
41
- @@schema_element = [
42
- ["estimateKeywordListReturn", ["KeywordEstimate[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "estimateKeywordListReturn")]]
43
- ]
44
- end
45
-
46
- # {https://adwords.google.com/api/adwords/v2}ApiException
47
- class ApiException
48
- @@schema_type = "ApiException"
49
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
50
- @@schema_element = [
51
- ["code", "SOAP::SOAPInt"],
52
- ["internal", "SOAP::SOAPBoolean"],
53
- ["message", "SOAP::SOAPString"],
54
- ["trigger", "SOAP::SOAPString"],
55
- ["violations", "SOAP::SOAPString"]
56
- ]
57
-
58
- attr_accessor :code
59
- attr_accessor :internal
60
- attr_accessor :message
61
- attr_accessor :trigger
62
- attr_accessor :violations
63
-
64
- def initialize(code = nil, internal = nil, message = nil, trigger = nil, violations = nil)
65
- @code = code
66
- @internal = internal
67
- @message = message
68
- @trigger = trigger
69
- @violations = violations
70
- end
71
- end
72
-
73
- # {https://adwords.google.com/api/adwords/v2}CampaignRequest
74
- class CampaignRequest
75
- @@schema_type = "CampaignRequest"
76
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
77
- @@schema_element = [
78
- ["id", "SOAP::SOAPInt"],
79
- ["optInSearchNetwork", "SOAP::SOAPBoolean"],
80
- ["optInContentNetwork", "SOAP::SOAPBoolean"],
81
- ["geoTargeting", "GeoTarget"],
82
- ["languageTargeting", "LanguageTarget"],
83
- ["adGroupRequests", "AdGroupRequest[]"]
84
- ]
85
-
86
- attr_accessor :id
87
- attr_accessor :optInSearchNetwork
88
- attr_accessor :optInContentNetwork
89
- attr_accessor :geoTargeting
90
- attr_accessor :languageTargeting
91
- attr_accessor :adGroupRequests
92
-
93
- def initialize(id = nil, optInSearchNetwork = nil, optInContentNetwork = nil, geoTargeting = nil, languageTargeting = nil, adGroupRequests = [])
94
- @id = id
95
- @optInSearchNetwork = optInSearchNetwork
96
- @optInContentNetwork = optInContentNetwork
97
- @geoTargeting = geoTargeting
98
- @languageTargeting = languageTargeting
99
- @adGroupRequests = adGroupRequests
100
- end
101
- end
102
-
103
- # {https://adwords.google.com/api/adwords/v2}AdGroupRequest
104
- class AdGroupRequest
105
- @@schema_type = "AdGroupRequest"
106
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
107
- @@schema_element = [
108
- ["id", "SOAP::SOAPInt"],
109
- ["maxCpc", "SOAP::SOAPLong"],
110
- ["keywordRequests", "KeywordRequest[]"]
111
- ]
112
-
113
- attr_accessor :id
114
- attr_accessor :maxCpc
115
- attr_accessor :keywordRequests
116
-
117
- def initialize(id = nil, maxCpc = nil, keywordRequests = [])
118
- @id = id
119
- @maxCpc = maxCpc
120
- @keywordRequests = keywordRequests
121
- end
122
- end
123
-
124
- # {https://adwords.google.com/api/adwords/v2}KeywordRequest
125
- class KeywordRequest
126
- @@schema_type = "KeywordRequest"
127
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
128
- @@schema_element = [
129
- ["id", "SOAP::SOAPLong"],
130
- ["type", "SOAP::SOAPString"],
131
- ["text", "SOAP::SOAPString"],
132
- ["maxCpc", "SOAP::SOAPLong"],
133
- ["negative", "SOAP::SOAPBoolean"]
134
- ]
135
-
136
- attr_accessor :id
137
- attr_accessor :type
138
- attr_accessor :text
139
- attr_accessor :maxCpc
140
- attr_accessor :negative
141
-
142
- def initialize(id = nil, type = nil, text = nil, maxCpc = nil, negative = nil)
143
- @id = id
144
- @type = type
145
- @text = text
146
- @maxCpc = maxCpc
147
- @negative = negative
148
- end
149
- end
150
-
151
- # {https://adwords.google.com/api/adwords/v2}GeoTarget
152
- class GeoTarget
153
- @@schema_type = "GeoTarget"
154
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
155
- @@schema_element = [
156
- ["countries", "SOAP::SOAPString[]"],
157
- ["regions", "SOAP::SOAPString[]"],
158
- ["metros", "SOAP::SOAPString[]"],
159
- ["cities", "SOAP::SOAPString[]"]
160
- ]
161
-
162
- attr_accessor :countries
163
- attr_accessor :regions
164
- attr_accessor :metros
165
- attr_accessor :cities
166
-
167
- def initialize(countries = [], regions = [], metros = [], cities = [])
168
- @countries = countries
169
- @regions = regions
170
- @metros = metros
171
- @cities = cities
172
- end
173
- end
174
-
175
- # {https://adwords.google.com/api/adwords/v2}LanguageTarget
176
- class LanguageTarget < ::Array
177
- @@schema_element = [
178
- ["languages", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/v2", "languages")]]
179
- ]
180
- end
181
-
182
- # {https://adwords.google.com/api/adwords/v2}CampaignEstimate
183
- class CampaignEstimate
184
- @@schema_type = "CampaignEstimate"
185
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
186
- @@schema_element = [
187
- ["id", "SOAP::SOAPInt"],
188
- ["adGroupEstimates", "AdGroupEstimate[]"]
189
- ]
190
-
191
- attr_accessor :id
192
- attr_accessor :adGroupEstimates
193
-
194
- def initialize(id = nil, adGroupEstimates = [])
195
- @id = id
196
- @adGroupEstimates = adGroupEstimates
197
- end
198
- end
199
-
200
- # {https://adwords.google.com/api/adwords/v2}AdGroupEstimate
201
- class AdGroupEstimate
202
- @@schema_type = "AdGroupEstimate"
203
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
204
- @@schema_element = [
205
- ["id", "SOAP::SOAPInt"],
206
- ["keywordEstimates", "KeywordEstimate[]"]
207
- ]
208
-
209
- attr_accessor :id
210
- attr_accessor :keywordEstimates
211
-
212
- def initialize(id = nil, keywordEstimates = [])
213
- @id = id
214
- @keywordEstimates = keywordEstimates
215
- end
216
- end
217
-
218
- # {https://adwords.google.com/api/adwords/v2}KeywordEstimate
219
- class KeywordEstimate
220
- @@schema_type = "KeywordEstimate"
221
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
222
- @@schema_element = [
223
- ["id", "SOAP::SOAPLong"],
224
- ["clicksPerDay", "Float"],
225
- ["cpc", "SOAP::SOAPLong"],
226
- ["avgPosition", "Float"]
227
- ]
228
-
229
- attr_accessor :id
230
- attr_accessor :clicksPerDay
231
- attr_accessor :cpc
232
- attr_accessor :avgPosition
233
-
234
- def initialize(id = nil, clicksPerDay = nil, cpc = nil, avgPosition = nil)
235
- @id = id
236
- @clicksPerDay = clicksPerDay
237
- @cpc = cpc
238
- @avgPosition = avgPosition
239
- end
240
- end
241
-
242
- # {https://adwords.google.com/api/adwords/v2}KeywordType
243
- class KeywordType < ::String
244
- @@schema_type = "KeywordType"
245
- @@schema_ns = "https://adwords.google.com/api/adwords/v2"
246
-
247
- Broad = KeywordType.new("Broad")
248
- Exact = KeywordType.new("Exact")
249
- Phrase = KeywordType.new("Phrase")
250
- end
251
- end
@@ -1,364 +0,0 @@
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