adwords4r 11.1.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog.txt +4 -0
- data/Rakefile +76 -70
- data/examples/campaign.rb +40 -0
- data/examples/{old/framework.rb → framework.rb} +0 -0
- data/examples/{old/get_free_usage_this_month.rb → get_free_usage_this_month.rb} +8 -6
- data/examples/get_unit_count.rb +21 -0
- data/examples/keyword_suggestions.rb +179 -0
- data/examples/keyword_tool_demo.rb +31 -0
- data/examples/reports.rb +6 -6
- data/examples/traffic_estimator.rb +34 -0
- data/lib/adwords4r.rb +26 -19
- data/lib/adwords4r/credentials.rb +4 -2
- data/lib/adwords4r/services.rb +4 -2
- data/lib/adwords4r/v11/AccountServiceDriver.rb +3 -3
- data/lib/adwords4r/v11/AdGroupServiceDriver.rb +8 -8
- data/lib/adwords4r/v11/AdServiceDriver.rb +10 -10
- data/lib/adwords4r/v11/CampaignServiceDriver.rb +10 -10
- data/lib/adwords4r/v11/CriterionServiceDriver.rb +9 -9
- data/lib/adwords4r/v11/InfoServiceDriver.rb +8 -8
- data/lib/adwords4r/v11/KeywordToolServiceDriver.rb +2 -2
- data/lib/adwords4r/v11/ReportServiceDriver.rb +7 -7
- data/lib/adwords4r/v11/SiteSuggestionServiceDriver.rb +4 -4
- data/lib/adwords4r/v11/TrafficEstimatorServiceDriver.rb +4 -4
- data/lib/adwords4r/{v10 → v12}/AccountService.rb +13 -32
- data/lib/adwords4r/{v10 → v12}/AccountServiceDriver.rb +12 -20
- data/lib/adwords4r/{v10 → v12}/AccountServiceMappingRegistry.rb +23 -38
- data/lib/adwords4r/{v10 → v12}/AdGroupService.rb +43 -37
- data/lib/adwords4r/{v10 → v12}/AdGroupServiceDriver.rb +27 -27
- data/lib/adwords4r/{v10 → v12}/AdGroupServiceMappingRegistry.rb +46 -42
- data/lib/adwords4r/{v10 → v12}/AdService.rb +68 -56
- data/lib/adwords4r/{v10 → v12}/AdServiceDriver.rb +33 -33
- data/lib/adwords4r/{v10 → v12}/AdServiceMappingRegistry.rb +113 -105
- data/lib/adwords4r/{v10 → v12}/CampaignService.rb +99 -44
- data/lib/adwords4r/{v10 → v12}/CampaignServiceDriver.rb +41 -33
- data/lib/adwords4r/{v10 → v12}/CampaignServiceMappingRegistry.rb +143 -65
- data/lib/adwords4r/{v10 → v12}/CriterionService.rb +46 -43
- data/lib/adwords4r/{v10 → v12}/CriterionServiceDriver.rb +30 -30
- data/lib/adwords4r/{v10 → v12}/CriterionServiceMappingRegistry.rb +67 -65
- data/lib/adwords4r/{v10 → v12}/InfoService.rb +19 -19
- data/lib/adwords4r/{v10 → v12}/InfoServiceDriver.rb +27 -27
- data/lib/adwords4r/{v10 → v12}/InfoServiceMappingRegistry.rb +25 -25
- data/lib/adwords4r/{v10 → v12}/KeywordToolService.rb +12 -12
- data/lib/adwords4r/{v10 → v12}/KeywordToolServiceDriver.rb +9 -9
- data/lib/adwords4r/{v10 → v12}/KeywordToolServiceMappingRegistry.rb +23 -23
- data/lib/adwords4r/v12/ReportService.rb +322 -0
- data/lib/adwords4r/{v10 → v12}/ReportServiceDriver.rb +29 -21
- data/lib/adwords4r/v12/ReportServiceMappingRegistry.rb +298 -0
- data/lib/adwords4r/{v10 → v12}/SiteSuggestionService.rb +18 -18
- data/lib/adwords4r/{v10 → v12}/SiteSuggestionServiceDriver.rb +15 -15
- data/lib/adwords4r/{v10 → v12}/SiteSuggestionServiceMappingRegistry.rb +45 -45
- data/lib/adwords4r/{v10 → v12}/TrafficEstimatorService.rb +29 -29
- data/lib/adwords4r/{v10 → v12}/TrafficEstimatorServiceDriver.rb +15 -15
- data/lib/adwords4r/{v10 → v12}/TrafficEstimatorServiceMappingRegistry.rb +55 -55
- data/svn-commit.2.tmp +60 -0
- data/svn-commit.tmp +60 -0
- metadata +41 -38
- data/examples/old/campaign.rb +0 -40
- data/examples/old/get_unit_count.rb +0 -21
- data/examples/old/keyword_tool_demo.rb +0 -30
- data/examples/old/traffic_estimator.rb +0 -34
- data/lib/adwords4r/v10/ReportService.rb +0 -652
- data/lib/adwords4r/v10/ReportServiceMappingRegistry.rb +0 -559
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'adwords4r/
|
1
|
+
require 'adwords4r/v12/AdGroupService'
|
2
2
|
require 'soap/mapping'
|
3
3
|
|
4
4
|
module AdWords; module AdGroupService
|
@@ -6,26 +6,28 @@ module AdWords; module AdGroupService
|
|
6
6
|
module DefaultMappingRegistry
|
7
7
|
EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
|
8
8
|
LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
|
9
|
-
|
9
|
+
NsV12 = "https://adwords.google.com/api/adwords/v12"
|
10
10
|
|
11
11
|
EncodedRegistry.register(
|
12
12
|
:class => AdWords::AdGroupService::AdGroup,
|
13
|
-
:schema_type => XSD::QName.new(
|
13
|
+
:schema_type => XSD::QName.new(NsV12, "AdGroup"),
|
14
14
|
:schema_element => [
|
15
15
|
["campaignId", "SOAP::SOAPInt"],
|
16
|
-
["id", "SOAP::
|
17
|
-
["
|
18
|
-
["
|
19
|
-
["
|
16
|
+
["id", "SOAP::SOAPLong"],
|
17
|
+
["keywordContentMaxCpc", "SOAP::SOAPLong", [0, 1]],
|
18
|
+
["keywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
|
19
|
+
["maxCpa", "SOAP::SOAPLong", [0, 1]],
|
20
20
|
["name", "SOAP::SOAPString"],
|
21
|
-
["
|
21
|
+
["proxyKeywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
|
22
|
+
["siteMaxCpc", "SOAP::SOAPLong", [0, 1]],
|
23
|
+
["siteMaxCpm", "SOAP::SOAPLong", [0, 1]],
|
22
24
|
["status", "AdWords::AdGroupService::AdGroupStatus", [0, 1]]
|
23
25
|
]
|
24
26
|
)
|
25
27
|
|
26
28
|
EncodedRegistry.register(
|
27
29
|
:class => AdWords::AdGroupService::ApiError,
|
28
|
-
:schema_type => XSD::QName.new(
|
30
|
+
:schema_type => XSD::QName.new(NsV12, "ApiError"),
|
29
31
|
:schema_element => [
|
30
32
|
["code", "SOAP::SOAPInt"],
|
31
33
|
["detail", "SOAP::SOAPString"],
|
@@ -40,7 +42,7 @@ module DefaultMappingRegistry
|
|
40
42
|
|
41
43
|
EncodedRegistry.register(
|
42
44
|
:class => AdWords::AdGroupService::ApiException,
|
43
|
-
:schema_type => XSD::QName.new(
|
45
|
+
:schema_type => XSD::QName.new(NsV12, "ApiException"),
|
44
46
|
:schema_element => [
|
45
47
|
["code", "SOAP::SOAPInt"],
|
46
48
|
["errors", "AdWords::AdGroupService::ApiError[]", [1, nil]],
|
@@ -52,7 +54,7 @@ module DefaultMappingRegistry
|
|
52
54
|
|
53
55
|
EncodedRegistry.register(
|
54
56
|
:class => AdWords::AdGroupService::StatsRecord,
|
55
|
-
:schema_type => XSD::QName.new(
|
57
|
+
:schema_type => XSD::QName.new(NsV12, "StatsRecord"),
|
56
58
|
:schema_element => [
|
57
59
|
["averagePosition", "SOAP::SOAPDouble"],
|
58
60
|
["clicks", "SOAP::SOAPLong"],
|
@@ -66,27 +68,29 @@ module DefaultMappingRegistry
|
|
66
68
|
|
67
69
|
EncodedRegistry.register(
|
68
70
|
:class => AdWords::AdGroupService::AdGroupStatus,
|
69
|
-
:schema_type => XSD::QName.new(
|
71
|
+
:schema_type => XSD::QName.new(NsV12, "AdGroupStatus")
|
70
72
|
)
|
71
73
|
|
72
74
|
LiteralRegistry.register(
|
73
75
|
:class => AdWords::AdGroupService::AdGroup,
|
74
|
-
:schema_type => XSD::QName.new(
|
76
|
+
:schema_type => XSD::QName.new(NsV12, "AdGroup"),
|
75
77
|
:schema_element => [
|
76
78
|
["campaignId", "SOAP::SOAPInt"],
|
77
|
-
["id", "SOAP::
|
78
|
-
["
|
79
|
-
["
|
80
|
-
["
|
79
|
+
["id", "SOAP::SOAPLong"],
|
80
|
+
["keywordContentMaxCpc", "SOAP::SOAPLong", [0, 1]],
|
81
|
+
["keywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
|
82
|
+
["maxCpa", "SOAP::SOAPLong", [0, 1]],
|
81
83
|
["name", "SOAP::SOAPString"],
|
82
|
-
["
|
84
|
+
["proxyKeywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
|
85
|
+
["siteMaxCpc", "SOAP::SOAPLong", [0, 1]],
|
86
|
+
["siteMaxCpm", "SOAP::SOAPLong", [0, 1]],
|
83
87
|
["status", "AdWords::AdGroupService::AdGroupStatus", [0, 1]]
|
84
88
|
]
|
85
89
|
)
|
86
90
|
|
87
91
|
LiteralRegistry.register(
|
88
92
|
:class => AdWords::AdGroupService::ApiError,
|
89
|
-
:schema_type => XSD::QName.new(
|
93
|
+
:schema_type => XSD::QName.new(NsV12, "ApiError"),
|
90
94
|
:schema_element => [
|
91
95
|
["code", "SOAP::SOAPInt"],
|
92
96
|
["detail", "SOAP::SOAPString"],
|
@@ -101,7 +105,7 @@ module DefaultMappingRegistry
|
|
101
105
|
|
102
106
|
LiteralRegistry.register(
|
103
107
|
:class => AdWords::AdGroupService::ApiException,
|
104
|
-
:schema_type => XSD::QName.new(
|
108
|
+
:schema_type => XSD::QName.new(NsV12, "ApiException"),
|
105
109
|
:schema_element => [
|
106
110
|
["code", "SOAP::SOAPInt"],
|
107
111
|
["errors", "AdWords::AdGroupService::ApiError[]", [1, nil]],
|
@@ -113,7 +117,7 @@ module DefaultMappingRegistry
|
|
113
117
|
|
114
118
|
LiteralRegistry.register(
|
115
119
|
:class => AdWords::AdGroupService::StatsRecord,
|
116
|
-
:schema_type => XSD::QName.new(
|
120
|
+
:schema_type => XSD::QName.new(NsV12, "StatsRecord"),
|
117
121
|
:schema_element => [
|
118
122
|
["averagePosition", "SOAP::SOAPDouble"],
|
119
123
|
["clicks", "SOAP::SOAPLong"],
|
@@ -127,12 +131,12 @@ module DefaultMappingRegistry
|
|
127
131
|
|
128
132
|
LiteralRegistry.register(
|
129
133
|
:class => AdWords::AdGroupService::AdGroupStatus,
|
130
|
-
:schema_type => XSD::QName.new(
|
134
|
+
:schema_type => XSD::QName.new(NsV12, "AdGroupStatus")
|
131
135
|
)
|
132
136
|
|
133
137
|
LiteralRegistry.register(
|
134
138
|
:class => AdWords::AdGroupService::AddAdGroup,
|
135
|
-
:schema_name => XSD::QName.new(
|
139
|
+
:schema_name => XSD::QName.new(NsV12, "addAdGroup"),
|
136
140
|
:schema_element => [
|
137
141
|
["campaignID", "SOAP::SOAPInt"],
|
138
142
|
["newData", "AdWords::AdGroupService::AdGroup"]
|
@@ -141,7 +145,7 @@ module DefaultMappingRegistry
|
|
141
145
|
|
142
146
|
LiteralRegistry.register(
|
143
147
|
:class => AdWords::AdGroupService::AddAdGroupList,
|
144
|
-
:schema_name => XSD::QName.new(
|
148
|
+
:schema_name => XSD::QName.new(NsV12, "addAdGroupList"),
|
145
149
|
:schema_element => [
|
146
150
|
["campaignID", "SOAP::SOAPInt"],
|
147
151
|
["newData", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
|
@@ -150,7 +154,7 @@ module DefaultMappingRegistry
|
|
150
154
|
|
151
155
|
LiteralRegistry.register(
|
152
156
|
:class => AdWords::AdGroupService::AddAdGroupListResponse,
|
153
|
-
:schema_name => XSD::QName.new(
|
157
|
+
:schema_name => XSD::QName.new(NsV12, "addAdGroupListResponse"),
|
154
158
|
:schema_element => [
|
155
159
|
["addAdGroupListReturn", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
|
156
160
|
]
|
@@ -158,7 +162,7 @@ module DefaultMappingRegistry
|
|
158
162
|
|
159
163
|
LiteralRegistry.register(
|
160
164
|
:class => AdWords::AdGroupService::AddAdGroupResponse,
|
161
|
-
:schema_name => XSD::QName.new(
|
165
|
+
:schema_name => XSD::QName.new(NsV12, "addAdGroupResponse"),
|
162
166
|
:schema_element => [
|
163
167
|
["addAdGroupReturn", "AdWords::AdGroupService::AdGroup"]
|
164
168
|
]
|
@@ -166,7 +170,7 @@ module DefaultMappingRegistry
|
|
166
170
|
|
167
171
|
LiteralRegistry.register(
|
168
172
|
:class => AdWords::AdGroupService::ApiException,
|
169
|
-
:schema_name => XSD::QName.new(
|
173
|
+
:schema_name => XSD::QName.new(NsV12, "fault"),
|
170
174
|
:schema_element => [
|
171
175
|
["code", "SOAP::SOAPInt"],
|
172
176
|
["errors", "AdWords::AdGroupService::ApiError[]", [1, nil]],
|
@@ -178,23 +182,23 @@ module DefaultMappingRegistry
|
|
178
182
|
|
179
183
|
LiteralRegistry.register(
|
180
184
|
:class => AdWords::AdGroupService::GetAdGroup,
|
181
|
-
:schema_name => XSD::QName.new(
|
185
|
+
:schema_name => XSD::QName.new(NsV12, "getAdGroup"),
|
182
186
|
:schema_element => [
|
183
|
-
["adGroupId", "SOAP::
|
187
|
+
["adGroupId", "SOAP::SOAPLong"]
|
184
188
|
]
|
185
189
|
)
|
186
190
|
|
187
191
|
LiteralRegistry.register(
|
188
192
|
:class => AdWords::AdGroupService::GetAdGroupList,
|
189
|
-
:schema_name => XSD::QName.new(
|
193
|
+
:schema_name => XSD::QName.new(NsV12, "getAdGroupList"),
|
190
194
|
:schema_element => [
|
191
|
-
["adgroupIDs", "SOAP::
|
195
|
+
["adgroupIDs", "SOAP::SOAPLong[]", [1, nil]]
|
192
196
|
]
|
193
197
|
)
|
194
198
|
|
195
199
|
LiteralRegistry.register(
|
196
200
|
:class => AdWords::AdGroupService::GetAdGroupListResponse,
|
197
|
-
:schema_name => XSD::QName.new(
|
201
|
+
:schema_name => XSD::QName.new(NsV12, "getAdGroupListResponse"),
|
198
202
|
:schema_element => [
|
199
203
|
["getAdGroupListReturn", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
|
200
204
|
]
|
@@ -202,7 +206,7 @@ module DefaultMappingRegistry
|
|
202
206
|
|
203
207
|
LiteralRegistry.register(
|
204
208
|
:class => AdWords::AdGroupService::GetAdGroupResponse,
|
205
|
-
:schema_name => XSD::QName.new(
|
209
|
+
:schema_name => XSD::QName.new(NsV12, "getAdGroupResponse"),
|
206
210
|
:schema_element => [
|
207
211
|
["getAdGroupReturn", "AdWords::AdGroupService::AdGroup"]
|
208
212
|
]
|
@@ -210,10 +214,10 @@ module DefaultMappingRegistry
|
|
210
214
|
|
211
215
|
LiteralRegistry.register(
|
212
216
|
:class => AdWords::AdGroupService::GetAdGroupStats,
|
213
|
-
:schema_name => XSD::QName.new(
|
217
|
+
:schema_name => XSD::QName.new(NsV12, "getAdGroupStats"),
|
214
218
|
:schema_element => [
|
215
219
|
["campaignId", "SOAP::SOAPInt"],
|
216
|
-
["adGroupIds", "SOAP::
|
220
|
+
["adGroupIds", "SOAP::SOAPLong[]", [1, nil]],
|
217
221
|
["startDay", "SOAP::SOAPDate"],
|
218
222
|
["endDay", "SOAP::SOAPDate"]
|
219
223
|
]
|
@@ -221,7 +225,7 @@ module DefaultMappingRegistry
|
|
221
225
|
|
222
226
|
LiteralRegistry.register(
|
223
227
|
:class => AdWords::AdGroupService::GetAdGroupStatsResponse,
|
224
|
-
:schema_name => XSD::QName.new(
|
228
|
+
:schema_name => XSD::QName.new(NsV12, "getAdGroupStatsResponse"),
|
225
229
|
:schema_element => [
|
226
230
|
["getAdGroupStatsReturn", "AdWords::AdGroupService::StatsRecord[]", [1, nil]]
|
227
231
|
]
|
@@ -229,7 +233,7 @@ module DefaultMappingRegistry
|
|
229
233
|
|
230
234
|
LiteralRegistry.register(
|
231
235
|
:class => AdWords::AdGroupService::GetAllAdGroups,
|
232
|
-
:schema_name => XSD::QName.new(
|
236
|
+
:schema_name => XSD::QName.new(NsV12, "getAllAdGroups"),
|
233
237
|
:schema_element => [
|
234
238
|
["campaignID", "SOAP::SOAPInt"]
|
235
239
|
]
|
@@ -237,7 +241,7 @@ module DefaultMappingRegistry
|
|
237
241
|
|
238
242
|
LiteralRegistry.register(
|
239
243
|
:class => AdWords::AdGroupService::GetAllAdGroupsResponse,
|
240
|
-
:schema_name => XSD::QName.new(
|
244
|
+
:schema_name => XSD::QName.new(NsV12, "getAllAdGroupsResponse"),
|
241
245
|
:schema_element => [
|
242
246
|
["getAllAdGroupsReturn", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
|
243
247
|
]
|
@@ -245,7 +249,7 @@ module DefaultMappingRegistry
|
|
245
249
|
|
246
250
|
LiteralRegistry.register(
|
247
251
|
:class => AdWords::AdGroupService::UpdateAdGroup,
|
248
|
-
:schema_name => XSD::QName.new(
|
252
|
+
:schema_name => XSD::QName.new(NsV12, "updateAdGroup"),
|
249
253
|
:schema_element => [
|
250
254
|
["changedData", "AdWords::AdGroupService::AdGroup"]
|
251
255
|
]
|
@@ -253,7 +257,7 @@ module DefaultMappingRegistry
|
|
253
257
|
|
254
258
|
LiteralRegistry.register(
|
255
259
|
:class => AdWords::AdGroupService::UpdateAdGroupList,
|
256
|
-
:schema_name => XSD::QName.new(
|
260
|
+
:schema_name => XSD::QName.new(NsV12, "updateAdGroupList"),
|
257
261
|
:schema_element => [
|
258
262
|
["changedData", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
|
259
263
|
]
|
@@ -261,13 +265,13 @@ module DefaultMappingRegistry
|
|
261
265
|
|
262
266
|
LiteralRegistry.register(
|
263
267
|
:class => AdWords::AdGroupService::UpdateAdGroupListResponse,
|
264
|
-
:schema_name => XSD::QName.new(
|
268
|
+
:schema_name => XSD::QName.new(NsV12, "updateAdGroupListResponse"),
|
265
269
|
:schema_element => []
|
266
270
|
)
|
267
271
|
|
268
272
|
LiteralRegistry.register(
|
269
273
|
:class => AdWords::AdGroupService::UpdateAdGroupResponse,
|
270
|
-
:schema_name => XSD::QName.new(
|
274
|
+
:schema_name => XSD::QName.new(NsV12, "updateAdGroupResponse"),
|
271
275
|
:schema_element => []
|
272
276
|
)
|
273
277
|
|
@@ -3,9 +3,9 @@ require 'xsd/qname'
|
|
3
3
|
module AdWords; module AdService
|
4
4
|
|
5
5
|
|
6
|
-
# {https://adwords.google.com/api/adwords/
|
6
|
+
# {https://adwords.google.com/api/adwords/v12}Ad
|
7
7
|
# abstract
|
8
|
-
# adGroupId - SOAP::
|
8
|
+
# adGroupId - SOAP::SOAPLong
|
9
9
|
# adType - AdWords::AdService::AdType
|
10
10
|
# destinationUrl - SOAP::SOAPString
|
11
11
|
# disapproved - SOAP::SOAPBoolean
|
@@ -35,8 +35,8 @@ class Ad
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
# {https://adwords.google.com/api/adwords/
|
39
|
-
# adGroupId - SOAP::
|
38
|
+
# {https://adwords.google.com/api/adwords/v12}CommerceAd
|
39
|
+
# adGroupId - SOAP::SOAPLong
|
40
40
|
# adType - AdWords::AdService::AdType
|
41
41
|
# destinationUrl - SOAP::SOAPString
|
42
42
|
# disapproved - SOAP::SOAPBoolean
|
@@ -87,8 +87,8 @@ class CommerceAd < Ad
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
-
# {https://adwords.google.com/api/adwords/
|
91
|
-
# adGroupId - SOAP::
|
90
|
+
# {https://adwords.google.com/api/adwords/v12}ImageAd
|
91
|
+
# adGroupId - SOAP::SOAPLong
|
92
92
|
# adType - AdWords::AdService::AdType
|
93
93
|
# destinationUrl - SOAP::SOAPString
|
94
94
|
# disapproved - SOAP::SOAPBoolean
|
@@ -121,8 +121,8 @@ class ImageAd < Ad
|
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
|
-
# {https://adwords.google.com/api/adwords/
|
125
|
-
# adGroupId - SOAP::
|
124
|
+
# {https://adwords.google.com/api/adwords/v12}LocalBusinessAd
|
125
|
+
# adGroupId - SOAP::SOAPLong
|
126
126
|
# adType - AdWords::AdService::AdType
|
127
127
|
# destinationUrl - SOAP::SOAPString
|
128
128
|
# disapproved - SOAP::SOAPBoolean
|
@@ -140,6 +140,9 @@ end
|
|
140
140
|
# customIconId - SOAP::SOAPLong
|
141
141
|
# description1 - SOAP::SOAPString
|
142
142
|
# description2 - SOAP::SOAPString
|
143
|
+
# fullBusinessName - SOAP::SOAPString
|
144
|
+
# latitude - SOAP::SOAPInt
|
145
|
+
# longitude - SOAP::SOAPInt
|
143
146
|
# phoneNumber - SOAP::SOAPString
|
144
147
|
# postalCode - SOAP::SOAPString
|
145
148
|
# region - SOAP::SOAPString
|
@@ -164,13 +167,16 @@ class LocalBusinessAd < Ad
|
|
164
167
|
attr_accessor :customIconId
|
165
168
|
attr_accessor :description1
|
166
169
|
attr_accessor :description2
|
170
|
+
attr_accessor :fullBusinessName
|
171
|
+
attr_accessor :latitude
|
172
|
+
attr_accessor :longitude
|
167
173
|
attr_accessor :phoneNumber
|
168
174
|
attr_accessor :postalCode
|
169
175
|
attr_accessor :region
|
170
176
|
attr_accessor :stockIcon
|
171
177
|
attr_accessor :targetRadiusInKm
|
172
178
|
|
173
|
-
def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, address = nil, businessImage = nil, businessKey = nil, businessName = nil, city = nil, countryCode = nil, customIcon = nil, customIconId = nil, description1 = nil, description2 = nil, phoneNumber = nil, postalCode = nil, region = nil, stockIcon = nil, targetRadiusInKm = nil)
|
179
|
+
def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, address = nil, businessImage = nil, businessKey = nil, businessName = nil, city = nil, countryCode = nil, customIcon = nil, customIconId = nil, description1 = nil, description2 = nil, fullBusinessName = nil, latitude = nil, longitude = nil, phoneNumber = nil, postalCode = nil, region = nil, stockIcon = nil, targetRadiusInKm = nil)
|
174
180
|
@adGroupId = adGroupId
|
175
181
|
@adType = adType
|
176
182
|
@destinationUrl = destinationUrl
|
@@ -189,6 +195,9 @@ class LocalBusinessAd < Ad
|
|
189
195
|
@customIconId = customIconId
|
190
196
|
@description1 = description1
|
191
197
|
@description2 = description2
|
198
|
+
@fullBusinessName = fullBusinessName
|
199
|
+
@latitude = latitude
|
200
|
+
@longitude = longitude
|
192
201
|
@phoneNumber = phoneNumber
|
193
202
|
@postalCode = postalCode
|
194
203
|
@region = region
|
@@ -197,8 +206,8 @@ class LocalBusinessAd < Ad
|
|
197
206
|
end
|
198
207
|
end
|
199
208
|
|
200
|
-
# {https://adwords.google.com/api/adwords/
|
201
|
-
# adGroupId - SOAP::
|
209
|
+
# {https://adwords.google.com/api/adwords/v12}MobileAd
|
210
|
+
# adGroupId - SOAP::SOAPLong
|
202
211
|
# adType - AdWords::AdService::AdType
|
203
212
|
# destinationUrl - SOAP::SOAPString
|
204
213
|
# disapproved - SOAP::SOAPBoolean
|
@@ -249,8 +258,8 @@ class MobileAd < Ad
|
|
249
258
|
end
|
250
259
|
end
|
251
260
|
|
252
|
-
# {https://adwords.google.com/api/adwords/
|
253
|
-
# adGroupId - SOAP::
|
261
|
+
# {https://adwords.google.com/api/adwords/v12}TextAd
|
262
|
+
# adGroupId - SOAP::SOAPLong
|
254
263
|
# adType - AdWords::AdService::AdType
|
255
264
|
# destinationUrl - SOAP::SOAPString
|
256
265
|
# disapproved - SOAP::SOAPBoolean
|
@@ -289,8 +298,8 @@ class TextAd < Ad
|
|
289
298
|
end
|
290
299
|
end
|
291
300
|
|
292
|
-
# {https://adwords.google.com/api/adwords/
|
293
|
-
# adGroupId - SOAP::
|
301
|
+
# {https://adwords.google.com/api/adwords/v12}VideoAd
|
302
|
+
# adGroupId - SOAP::SOAPLong
|
294
303
|
# adType - AdWords::AdService::AdType
|
295
304
|
# destinationUrl - SOAP::SOAPString
|
296
305
|
# disapproved - SOAP::SOAPBoolean
|
@@ -329,7 +338,7 @@ class VideoAd < Ad
|
|
329
338
|
end
|
330
339
|
end
|
331
340
|
|
332
|
-
# {https://adwords.google.com/api/adwords/
|
341
|
+
# {https://adwords.google.com/api/adwords/v12}ApiError
|
333
342
|
# code - SOAP::SOAPInt
|
334
343
|
# detail - SOAP::SOAPString
|
335
344
|
# field - SOAP::SOAPString
|
@@ -360,7 +369,7 @@ class ApiError
|
|
360
369
|
end
|
361
370
|
end
|
362
371
|
|
363
|
-
# {https://adwords.google.com/api/adwords/
|
372
|
+
# {https://adwords.google.com/api/adwords/v12}ApiException
|
364
373
|
# code - SOAP::SOAPInt
|
365
374
|
# errors - AdWords::AdService::ApiError
|
366
375
|
# internal - SOAP::SOAPBoolean
|
@@ -382,7 +391,7 @@ class ApiException
|
|
382
391
|
end
|
383
392
|
end
|
384
393
|
|
385
|
-
# {https://adwords.google.com/api/adwords/
|
394
|
+
# {https://adwords.google.com/api/adwords/v12}Business
|
386
395
|
# address - SOAP::SOAPString
|
387
396
|
# city - SOAP::SOAPString
|
388
397
|
# countryCode - SOAP::SOAPString
|
@@ -422,7 +431,7 @@ class Business
|
|
422
431
|
end
|
423
432
|
end
|
424
433
|
|
425
|
-
# {https://adwords.google.com/api/adwords/
|
434
|
+
# {https://adwords.google.com/api/adwords/v12}Circle
|
426
435
|
# latitudeMicroDegrees - SOAP::SOAPInt
|
427
436
|
# longitudeMicroDegrees - SOAP::SOAPInt
|
428
437
|
# radiusMeters - SOAP::SOAPInt
|
@@ -438,15 +447,15 @@ class Circle
|
|
438
447
|
end
|
439
448
|
end
|
440
449
|
|
441
|
-
# {https://adwords.google.com/api/adwords/
|
450
|
+
# {https://adwords.google.com/api/adwords/v12}CityTargets
|
442
451
|
class CityTargets < ::Array
|
443
452
|
end
|
444
453
|
|
445
|
-
# {https://adwords.google.com/api/adwords/
|
454
|
+
# {https://adwords.google.com/api/adwords/v12}CountryTargets
|
446
455
|
class CountryTargets < ::Array
|
447
456
|
end
|
448
457
|
|
449
|
-
# {https://adwords.google.com/api/adwords/
|
458
|
+
# {https://adwords.google.com/api/adwords/v12}GeoTarget
|
450
459
|
# cityTargets - AdWords::AdService::CityTargets
|
451
460
|
# countryTargets - AdWords::AdService::CountryTargets
|
452
461
|
# metroTargets - AdWords::AdService::MetroTargets
|
@@ -471,12 +480,13 @@ class GeoTarget
|
|
471
480
|
end
|
472
481
|
end
|
473
482
|
|
474
|
-
# {https://adwords.google.com/api/adwords/
|
483
|
+
# {https://adwords.google.com/api/adwords/v12}Image
|
475
484
|
# data - SOAP::SOAPBase64
|
476
485
|
# height - SOAP::SOAPInt
|
477
486
|
# imageUrl - SOAP::SOAPString
|
478
487
|
# mimeType - SOAP::SOAPString
|
479
488
|
# name - SOAP::SOAPString
|
489
|
+
# shrunkenUrl - SOAP::SOAPString
|
480
490
|
# thumbnailUrl - SOAP::SOAPString
|
481
491
|
# type - AdWords::AdService::ImageType
|
482
492
|
# width - SOAP::SOAPInt
|
@@ -486,39 +496,41 @@ class Image
|
|
486
496
|
attr_accessor :imageUrl
|
487
497
|
attr_accessor :mimeType
|
488
498
|
attr_accessor :name
|
499
|
+
attr_accessor :shrunkenUrl
|
489
500
|
attr_accessor :thumbnailUrl
|
490
501
|
attr_accessor :type
|
491
502
|
attr_accessor :width
|
492
503
|
|
493
|
-
def initialize(data = nil, height = nil, imageUrl = nil, mimeType = nil, name = nil, thumbnailUrl = nil, type = nil, width = nil)
|
504
|
+
def initialize(data = nil, height = nil, imageUrl = nil, mimeType = nil, name = nil, shrunkenUrl = nil, thumbnailUrl = nil, type = nil, width = nil)
|
494
505
|
@data = data
|
495
506
|
@height = height
|
496
507
|
@imageUrl = imageUrl
|
497
508
|
@mimeType = mimeType
|
498
509
|
@name = name
|
510
|
+
@shrunkenUrl = shrunkenUrl
|
499
511
|
@thumbnailUrl = thumbnailUrl
|
500
512
|
@type = type
|
501
513
|
@width = width
|
502
514
|
end
|
503
515
|
end
|
504
516
|
|
505
|
-
# {https://adwords.google.com/api/adwords/
|
517
|
+
# {https://adwords.google.com/api/adwords/v12}LanguageTarget
|
506
518
|
class LanguageTarget < ::Array
|
507
519
|
end
|
508
520
|
|
509
|
-
# {https://adwords.google.com/api/adwords/
|
521
|
+
# {https://adwords.google.com/api/adwords/v12}MetroTargets
|
510
522
|
class MetroTargets < ::Array
|
511
523
|
end
|
512
524
|
|
513
|
-
# {https://adwords.google.com/api/adwords/
|
525
|
+
# {https://adwords.google.com/api/adwords/v12}ProximityTargets
|
514
526
|
class ProximityTargets < ::Array
|
515
527
|
end
|
516
528
|
|
517
|
-
# {https://adwords.google.com/api/adwords/
|
529
|
+
# {https://adwords.google.com/api/adwords/v12}RegionTargets
|
518
530
|
class RegionTargets < ::Array
|
519
531
|
end
|
520
532
|
|
521
|
-
# {https://adwords.google.com/api/adwords/
|
533
|
+
# {https://adwords.google.com/api/adwords/v12}StatsRecord
|
522
534
|
# averagePosition - SOAP::SOAPDouble
|
523
535
|
# clicks - SOAP::SOAPLong
|
524
536
|
# conversionRate - SOAP::SOAPDouble
|
@@ -546,7 +558,7 @@ class StatsRecord
|
|
546
558
|
end
|
547
559
|
end
|
548
560
|
|
549
|
-
# {https://adwords.google.com/api/adwords/
|
561
|
+
# {https://adwords.google.com/api/adwords/v12}Video
|
550
562
|
# duration - SOAP::SOAPLong
|
551
563
|
# filename - SOAP::SOAPString
|
552
564
|
# preview - SOAP::SOAPString
|
@@ -568,14 +580,14 @@ class Video
|
|
568
580
|
end
|
569
581
|
end
|
570
582
|
|
571
|
-
# {https://adwords.google.com/api/adwords/
|
583
|
+
# {https://adwords.google.com/api/adwords/v12}AdStatus
|
572
584
|
class AdStatus < ::String
|
573
585
|
Disabled = AdStatus.new("Disabled")
|
574
586
|
Enabled = AdStatus.new("Enabled")
|
575
587
|
Paused = AdStatus.new("Paused")
|
576
588
|
end
|
577
589
|
|
578
|
-
# {https://adwords.google.com/api/adwords/
|
590
|
+
# {https://adwords.google.com/api/adwords/v12}AdType
|
579
591
|
class AdType < ::String
|
580
592
|
CommerceAd = AdType.new("CommerceAd")
|
581
593
|
ImageAd = AdType.new("ImageAd")
|
@@ -585,14 +597,14 @@ class AdType < ::String
|
|
585
597
|
VideoAd = AdType.new("VideoAd")
|
586
598
|
end
|
587
599
|
|
588
|
-
# {https://adwords.google.com/api/adwords/
|
600
|
+
# {https://adwords.google.com/api/adwords/v12}ImageType
|
589
601
|
class ImageType < ::String
|
590
602
|
DynamicImage = ImageType.new("dynamicImage")
|
591
603
|
Flash = ImageType.new("flash")
|
592
604
|
Image = ImageType.new("image")
|
593
605
|
end
|
594
606
|
|
595
|
-
# {https://adwords.google.com/api/adwords/
|
607
|
+
# {https://adwords.google.com/api/adwords/v12}StockIcon
|
596
608
|
class StockIcon < ::String
|
597
609
|
Standard_1 = StockIcon.new("Standard_1")
|
598
610
|
Standard_10 = StockIcon.new("Standard_10")
|
@@ -613,15 +625,15 @@ class StockIcon < ::String
|
|
613
625
|
Standard_9 = StockIcon.new("Standard_9")
|
614
626
|
end
|
615
627
|
|
616
|
-
# {https://adwords.google.com/api/adwords/
|
628
|
+
# {https://adwords.google.com/api/adwords/v12}addAds
|
617
629
|
class AddAds < ::Array
|
618
630
|
end
|
619
631
|
|
620
|
-
# {https://adwords.google.com/api/adwords/
|
632
|
+
# {https://adwords.google.com/api/adwords/v12}addAdsResponse
|
621
633
|
class AddAdsResponse < ::Array
|
622
634
|
end
|
623
635
|
|
624
|
-
# {https://adwords.google.com/api/adwords/
|
636
|
+
# {https://adwords.google.com/api/adwords/v12}checkAds
|
625
637
|
# ads - AdWords::AdService::Ad
|
626
638
|
# languageTarget - AdWords::AdService::LanguageTarget
|
627
639
|
# geoTarget - AdWords::AdService::GeoTarget
|
@@ -637,11 +649,11 @@ class CheckAds
|
|
637
649
|
end
|
638
650
|
end
|
639
651
|
|
640
|
-
# {https://adwords.google.com/api/adwords/
|
652
|
+
# {https://adwords.google.com/api/adwords/v12}checkAdsResponse
|
641
653
|
class CheckAdsResponse < ::Array
|
642
654
|
end
|
643
655
|
|
644
|
-
# {https://adwords.google.com/api/adwords/
|
656
|
+
# {https://adwords.google.com/api/adwords/v12}findBusinesses
|
645
657
|
# name - SOAP::SOAPString
|
646
658
|
# address - SOAP::SOAPString
|
647
659
|
# countryCode - SOAP::SOAPString
|
@@ -657,20 +669,20 @@ class FindBusinesses
|
|
657
669
|
end
|
658
670
|
end
|
659
671
|
|
660
|
-
# {https://adwords.google.com/api/adwords/
|
672
|
+
# {https://adwords.google.com/api/adwords/v12}findBusinessesResponse
|
661
673
|
class FindBusinessesResponse < ::Array
|
662
674
|
end
|
663
675
|
|
664
|
-
# {https://adwords.google.com/api/adwords/
|
676
|
+
# {https://adwords.google.com/api/adwords/v12}getActiveAds
|
665
677
|
class GetActiveAds < ::Array
|
666
678
|
end
|
667
679
|
|
668
|
-
# {https://adwords.google.com/api/adwords/
|
680
|
+
# {https://adwords.google.com/api/adwords/v12}getActiveAdsResponse
|
669
681
|
class GetActiveAdsResponse < ::Array
|
670
682
|
end
|
671
683
|
|
672
|
-
# {https://adwords.google.com/api/adwords/
|
673
|
-
# adGroupId - SOAP::
|
684
|
+
# {https://adwords.google.com/api/adwords/v12}getAd
|
685
|
+
# adGroupId - SOAP::SOAPLong
|
674
686
|
# adId - SOAP::SOAPLong
|
675
687
|
class GetAd
|
676
688
|
attr_accessor :adGroupId
|
@@ -682,7 +694,7 @@ class GetAd
|
|
682
694
|
end
|
683
695
|
end
|
684
696
|
|
685
|
-
# {https://adwords.google.com/api/adwords/
|
697
|
+
# {https://adwords.google.com/api/adwords/v12}getAdResponse
|
686
698
|
# getAdReturn - AdWords::AdService::Ad
|
687
699
|
class GetAdResponse
|
688
700
|
attr_accessor :getAdReturn
|
@@ -692,8 +704,8 @@ class GetAdResponse
|
|
692
704
|
end
|
693
705
|
end
|
694
706
|
|
695
|
-
# {https://adwords.google.com/api/adwords/
|
696
|
-
# adGroupId - SOAP::
|
707
|
+
# {https://adwords.google.com/api/adwords/v12}getAdStats
|
708
|
+
# adGroupId - SOAP::SOAPLong
|
697
709
|
# adIds - SOAP::SOAPLong
|
698
710
|
# startDay - SOAP::SOAPDate
|
699
711
|
# endDay - SOAP::SOAPDate
|
@@ -711,43 +723,43 @@ class GetAdStats
|
|
711
723
|
end
|
712
724
|
end
|
713
725
|
|
714
|
-
# {https://adwords.google.com/api/adwords/
|
726
|
+
# {https://adwords.google.com/api/adwords/v12}getAdStatsResponse
|
715
727
|
class GetAdStatsResponse < ::Array
|
716
728
|
end
|
717
729
|
|
718
|
-
# {https://adwords.google.com/api/adwords/
|
730
|
+
# {https://adwords.google.com/api/adwords/v12}getAllAds
|
719
731
|
class GetAllAds < ::Array
|
720
732
|
end
|
721
733
|
|
722
|
-
# {https://adwords.google.com/api/adwords/
|
734
|
+
# {https://adwords.google.com/api/adwords/v12}getAllAdsResponse
|
723
735
|
class GetAllAdsResponse < ::Array
|
724
736
|
end
|
725
737
|
|
726
|
-
# {https://adwords.google.com/api/adwords/
|
738
|
+
# {https://adwords.google.com/api/adwords/v12}getMyBusinesses
|
727
739
|
class GetMyBusinesses
|
728
740
|
def initialize
|
729
741
|
end
|
730
742
|
end
|
731
743
|
|
732
|
-
# {https://adwords.google.com/api/adwords/
|
744
|
+
# {https://adwords.google.com/api/adwords/v12}getMyBusinessesResponse
|
733
745
|
class GetMyBusinessesResponse < ::Array
|
734
746
|
end
|
735
747
|
|
736
|
-
# {https://adwords.google.com/api/adwords/
|
748
|
+
# {https://adwords.google.com/api/adwords/v12}getMyVideos
|
737
749
|
class GetMyVideos
|
738
750
|
def initialize
|
739
751
|
end
|
740
752
|
end
|
741
753
|
|
742
|
-
# {https://adwords.google.com/api/adwords/
|
754
|
+
# {https://adwords.google.com/api/adwords/v12}getMyVideosResponse
|
743
755
|
class GetMyVideosResponse < ::Array
|
744
756
|
end
|
745
757
|
|
746
|
-
# {https://adwords.google.com/api/adwords/
|
758
|
+
# {https://adwords.google.com/api/adwords/v12}updateAds
|
747
759
|
class UpdateAds < ::Array
|
748
760
|
end
|
749
761
|
|
750
|
-
# {https://adwords.google.com/api/adwords/
|
762
|
+
# {https://adwords.google.com/api/adwords/v12}updateAdsResponse
|
751
763
|
class UpdateAdsResponse
|
752
764
|
def initialize
|
753
765
|
end
|