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.
- data/ChangeLog.txt +4 -0
- data/Rakefile +10 -10
- data/Readme.txt +78 -74
- data/Todo.txt +12 -0
- data/adwords.properties +2 -0
- data/examples/campaign.rb +1 -2
- data/examples/keyword_tool_demo.rb +27 -0
- data/examples/sandbox.rb +30 -0
- data/lib/adwords4r.rb +7 -1
- data/lib/adwords4r/credentials.rb +5 -3
- data/lib/adwords4r/services.rb +2 -2
- data/lib/adwords4r/v4/CreativeService.rb +0 -33
- data/lib/adwords4r/{v3 → v5}/AccountService.rb +311 -86
- data/lib/adwords4r/{v3 → v5}/AccountServiceDriver.rb +69 -34
- data/lib/adwords4r/{v3 → v5}/AdGroupService.rb +90 -58
- data/lib/adwords4r/{v3 → v5}/AdGroupServiceDriver.rb +18 -18
- data/lib/adwords4r/{v3 → v5}/CampaignService.rb +121 -89
- data/lib/adwords4r/{v3 → v5}/CampaignServiceDriver.rb +22 -22
- data/lib/adwords4r/{v3 → v5}/CreativeService.rb +84 -81
- data/lib/adwords4r/{v2 → v5}/CreativeServiceDriver.rb +20 -20
- data/lib/adwords4r/{v3 → v5}/CriterionService.rb +96 -64
- data/lib/adwords4r/{v3 → v5}/CriterionServiceDriver.rb +18 -18
- data/lib/adwords4r/{v3 → v5}/InfoService.rb +70 -34
- data/lib/adwords4r/{v2 → v5}/InfoServiceDriver.rb +16 -16
- data/lib/adwords4r/{v3 → v5}/KeywordToolService.rb +62 -26
- data/lib/adwords4r/{v3 → v5}/KeywordToolServiceDriver.rb +6 -6
- data/lib/adwords4r/v5/ReportService.rb +788 -0
- data/lib/adwords4r/{v2 → v5}/ReportServiceDriver.rb +14 -14
- data/lib/adwords4r/{v3 → v5}/TrafficEstimatorService.rb +95 -50
- data/lib/adwords4r/{v2 → v5}/TrafficEstimatorServiceDriver.rb +8 -8
- metadata +23 -46
- data/examples/report_demo.rb +0 -42
- data/lib/adwords4r/registry.rb +0 -31
- data/lib/adwords4r/v2/AccountService.rb +0 -628
- data/lib/adwords4r/v2/AccountServiceDriver.rb +0 -153
- data/lib/adwords4r/v2/AdGroupService.rb +0 -317
- data/lib/adwords4r/v2/AdGroupServiceDriver.rb +0 -97
- data/lib/adwords4r/v2/CampaignService.rb +0 -517
- data/lib/adwords4r/v2/CampaignServiceDriver.rb +0 -111
- data/lib/adwords4r/v2/CreativeService.rb +0 -401
- data/lib/adwords4r/v2/CriterionService.rb +0 -415
- data/lib/adwords4r/v2/CriterionServiceDriver.rb +0 -97
- data/lib/adwords4r/v2/InfoService.rb +0 -260
- data/lib/adwords4r/v2/KeywordService.rb +0 -543
- data/lib/adwords4r/v2/KeywordServiceDriver.rb +0 -125
- data/lib/adwords4r/v2/ReportService.rb +0 -569
- data/lib/adwords4r/v2/TrafficEstimatorService.rb +0 -251
- data/lib/adwords4r/v2/default.rb +0 -364
- data/lib/adwords4r/v2/defaultDriver.rb +0 -102
- data/lib/adwords4r/v3/CreativeServiceDriver.rb +0 -104
- data/lib/adwords4r/v3/InfoServiceDriver.rb +0 -90
- data/lib/adwords4r/v3/KeywordService.rb +0 -543
- data/lib/adwords4r/v3/KeywordServiceDriver.rb +0 -125
- data/lib/adwords4r/v3/ReportService.rb +0 -569
- data/lib/adwords4r/v3/ReportServiceDriver.rb +0 -83
- data/lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb +0 -62
- data/scripts/publish.rb +0 -16
@@ -1,66 +1,66 @@
|
|
1
1
|
module AdWords
|
2
|
-
require 'adwords4r/
|
2
|
+
require 'adwords4r/v5/AdGroupService'
|
3
3
|
|
4
4
|
require 'soap/rpc/driver'
|
5
5
|
|
6
6
|
class AdGroupService < ::SOAP::RPC::Driver
|
7
|
-
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/
|
7
|
+
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v5/AdGroupService"
|
8
8
|
MappingRegistry = ::SOAP::Mapping::Registry.new
|
9
9
|
|
10
10
|
Methods = [
|
11
11
|
[ "",
|
12
12
|
"getAdGroupList",
|
13
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
14
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
13
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAdGroupList"], true],
|
14
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAdGroupListResponse"], true] ],
|
15
15
|
{ :request_style => :document, :request_use => :literal,
|
16
16
|
:response_style => :document, :response_use => :literal }
|
17
17
|
],
|
18
18
|
[ "",
|
19
19
|
"getAllAdGroups",
|
20
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
21
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
20
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAllAdGroups"], true],
|
21
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAllAdGroupsResponse"], true] ],
|
22
22
|
{ :request_style => :document, :request_use => :literal,
|
23
23
|
:response_style => :document, :response_use => :literal }
|
24
24
|
],
|
25
25
|
[ "",
|
26
26
|
"getAdGroup",
|
27
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
28
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
27
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAdGroup"], true],
|
28
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAdGroupResponse"], true] ],
|
29
29
|
{ :request_style => :document, :request_use => :literal,
|
30
30
|
:response_style => :document, :response_use => :literal }
|
31
31
|
],
|
32
32
|
[ "",
|
33
33
|
"addAdGroup",
|
34
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
35
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
34
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "addAdGroup"], true],
|
35
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "addAdGroupResponse"], true] ],
|
36
36
|
{ :request_style => :document, :request_use => :literal,
|
37
37
|
:response_style => :document, :response_use => :literal }
|
38
38
|
],
|
39
39
|
[ "",
|
40
40
|
"addAdGroupList",
|
41
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
42
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
41
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "addAdGroupList"], true],
|
42
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "addAdGroupListResponse"], true] ],
|
43
43
|
{ :request_style => :document, :request_use => :literal,
|
44
44
|
:response_style => :document, :response_use => :literal }
|
45
45
|
],
|
46
46
|
[ "",
|
47
47
|
"updateAdGroup",
|
48
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
49
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
48
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "updateAdGroup"], true],
|
49
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "updateAdGroupResponse"], true] ],
|
50
50
|
{ :request_style => :document, :request_use => :literal,
|
51
51
|
:response_style => :document, :response_use => :literal }
|
52
52
|
],
|
53
53
|
[ "",
|
54
54
|
"updateAdGroupList",
|
55
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
56
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
55
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "updateAdGroupList"], true],
|
56
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "updateAdGroupListResponse"], true] ],
|
57
57
|
{ :request_style => :document, :request_use => :literal,
|
58
58
|
:response_style => :document, :response_use => :literal }
|
59
59
|
],
|
60
60
|
[ "",
|
61
61
|
"getAdGroupStats",
|
62
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
63
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
62
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAdGroupStats"], true],
|
63
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v5", "getAdGroupStatsResponse"], true] ],
|
64
64
|
{ :request_style => :document, :request_use => :literal,
|
65
65
|
:response_style => :document, :response_use => :literal }
|
66
66
|
]
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module AdWords
|
2
2
|
require 'xsd/qname'
|
3
3
|
|
4
|
-
# {https://adwords.google.com/api/adwords/
|
4
|
+
# {https://adwords.google.com/api/adwords/v5}getCampaign
|
5
5
|
class GetCampaign
|
6
6
|
@@schema_type = "getCampaign"
|
7
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
7
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
8
8
|
@@schema_qualified = "true"
|
9
9
|
@@schema_element = [
|
10
10
|
["id", "SOAP::SOAPInt"]
|
@@ -17,10 +17,10 @@ class GetCampaign
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
# {https://adwords.google.com/api/adwords/
|
20
|
+
# {https://adwords.google.com/api/adwords/v5}getCampaignResponse
|
21
21
|
class GetCampaignResponse
|
22
22
|
@@schema_type = "getCampaignResponse"
|
23
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
23
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
24
24
|
@@schema_qualified = "true"
|
25
25
|
@@schema_element = [
|
26
26
|
["getCampaignReturn", "Campaign"]
|
@@ -33,24 +33,24 @@ class GetCampaignResponse
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
# {https://adwords.google.com/api/adwords/
|
36
|
+
# {https://adwords.google.com/api/adwords/v5}getCampaignList
|
37
37
|
class GetCampaignList < ::Array
|
38
38
|
@@schema_element = [
|
39
|
-
["ids", ["SOAP::SOAPInt[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
39
|
+
["ids", ["SOAP::SOAPInt[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "ids")]]
|
40
40
|
]
|
41
41
|
end
|
42
42
|
|
43
|
-
# {https://adwords.google.com/api/adwords/
|
43
|
+
# {https://adwords.google.com/api/adwords/v5}getCampaignListResponse
|
44
44
|
class GetCampaignListResponse < ::Array
|
45
45
|
@@schema_element = [
|
46
|
-
["getCampaignListReturn", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
46
|
+
["getCampaignListReturn", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "getCampaignListReturn")]]
|
47
47
|
]
|
48
48
|
end
|
49
49
|
|
50
|
-
# {https://adwords.google.com/api/adwords/
|
50
|
+
# {https://adwords.google.com/api/adwords/v5}getAllAdWordsCampaigns
|
51
51
|
class GetAllAdWordsCampaigns
|
52
52
|
@@schema_type = "getAllAdWordsCampaigns"
|
53
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
53
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
54
54
|
@@schema_qualified = "true"
|
55
55
|
@@schema_element = [
|
56
56
|
["dummy", "SOAP::SOAPInt"]
|
@@ -63,17 +63,17 @@ class GetAllAdWordsCampaigns
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
# {https://adwords.google.com/api/adwords/
|
66
|
+
# {https://adwords.google.com/api/adwords/v5}getAllAdWordsCampaignsResponse
|
67
67
|
class GetAllAdWordsCampaignsResponse < ::Array
|
68
68
|
@@schema_element = [
|
69
|
-
["getAllAdWordsCampaignsReturn", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
69
|
+
["getAllAdWordsCampaignsReturn", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "getAllAdWordsCampaignsReturn")]]
|
70
70
|
]
|
71
71
|
end
|
72
72
|
|
73
|
-
# {https://adwords.google.com/api/adwords/
|
73
|
+
# {https://adwords.google.com/api/adwords/v5}addCampaign
|
74
74
|
class AddCampaign
|
75
75
|
@@schema_type = "addCampaign"
|
76
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
76
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
77
77
|
@@schema_qualified = "true"
|
78
78
|
@@schema_element = [
|
79
79
|
["campaign", "Campaign"]
|
@@ -86,10 +86,10 @@ class AddCampaign
|
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
# {https://adwords.google.com/api/adwords/
|
89
|
+
# {https://adwords.google.com/api/adwords/v5}addCampaignResponse
|
90
90
|
class AddCampaignResponse
|
91
91
|
@@schema_type = "addCampaignResponse"
|
92
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
92
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
93
93
|
@@schema_qualified = "true"
|
94
94
|
@@schema_element = [
|
95
95
|
["addCampaignReturn", "Campaign"]
|
@@ -102,24 +102,24 @@ class AddCampaignResponse
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
-
# {https://adwords.google.com/api/adwords/
|
105
|
+
# {https://adwords.google.com/api/adwords/v5}addCampaignList
|
106
106
|
class AddCampaignList < ::Array
|
107
107
|
@@schema_element = [
|
108
|
-
["campaigns", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
108
|
+
["campaigns", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "campaigns")]]
|
109
109
|
]
|
110
110
|
end
|
111
111
|
|
112
|
-
# {https://adwords.google.com/api/adwords/
|
112
|
+
# {https://adwords.google.com/api/adwords/v5}addCampaignListResponse
|
113
113
|
class AddCampaignListResponse < ::Array
|
114
114
|
@@schema_element = [
|
115
|
-
["addCampaignListReturn", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
115
|
+
["addCampaignListReturn", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "addCampaignListReturn")]]
|
116
116
|
]
|
117
117
|
end
|
118
118
|
|
119
|
-
# {https://adwords.google.com/api/adwords/
|
119
|
+
# {https://adwords.google.com/api/adwords/v5}updateCampaign
|
120
120
|
class UpdateCampaign
|
121
121
|
@@schema_type = "updateCampaign"
|
122
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
122
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
123
123
|
@@schema_qualified = "true"
|
124
124
|
@@schema_element = [
|
125
125
|
["campaign", "Campaign"]
|
@@ -132,10 +132,10 @@ class UpdateCampaign
|
|
132
132
|
end
|
133
133
|
end
|
134
134
|
|
135
|
-
# {https://adwords.google.com/api/adwords/
|
135
|
+
# {https://adwords.google.com/api/adwords/v5}updateCampaignResponse
|
136
136
|
class UpdateCampaignResponse
|
137
137
|
@@schema_type = "updateCampaignResponse"
|
138
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
138
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
139
139
|
@@schema_qualified = "true"
|
140
140
|
@@schema_element = []
|
141
141
|
|
@@ -143,17 +143,17 @@ class UpdateCampaignResponse
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
# {https://adwords.google.com/api/adwords/
|
146
|
+
# {https://adwords.google.com/api/adwords/v5}updateCampaignList
|
147
147
|
class UpdateCampaignList < ::Array
|
148
148
|
@@schema_element = [
|
149
|
-
["campaigns", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
149
|
+
["campaigns", ["Campaign[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "campaigns")]]
|
150
150
|
]
|
151
151
|
end
|
152
152
|
|
153
|
-
# {https://adwords.google.com/api/adwords/
|
153
|
+
# {https://adwords.google.com/api/adwords/v5}updateCampaignListResponse
|
154
154
|
class UpdateCampaignListResponse
|
155
155
|
@@schema_type = "updateCampaignListResponse"
|
156
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
156
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
157
157
|
@@schema_qualified = "true"
|
158
158
|
@@schema_element = []
|
159
159
|
|
@@ -161,10 +161,10 @@ class UpdateCampaignListResponse
|
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
164
|
-
# {https://adwords.google.com/api/adwords/
|
164
|
+
# {https://adwords.google.com/api/adwords/v5}getOptimizeAdServing
|
165
165
|
class GetOptimizeAdServing
|
166
166
|
@@schema_type = "getOptimizeAdServing"
|
167
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
167
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
168
168
|
@@schema_qualified = "true"
|
169
169
|
@@schema_element = [
|
170
170
|
["campaignId", "SOAP::SOAPInt"]
|
@@ -177,10 +177,10 @@ class GetOptimizeAdServing
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
|
180
|
-
# {https://adwords.google.com/api/adwords/
|
180
|
+
# {https://adwords.google.com/api/adwords/v5}getOptimizeAdServingResponse
|
181
181
|
class GetOptimizeAdServingResponse
|
182
182
|
@@schema_type = "getOptimizeAdServingResponse"
|
183
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
183
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
184
184
|
@@schema_qualified = "true"
|
185
185
|
@@schema_element = [
|
186
186
|
["getOptimizeAdServingReturn", "SOAP::SOAPBoolean"]
|
@@ -193,10 +193,10 @@ class GetOptimizeAdServingResponse
|
|
193
193
|
end
|
194
194
|
end
|
195
195
|
|
196
|
-
# {https://adwords.google.com/api/adwords/
|
196
|
+
# {https://adwords.google.com/api/adwords/v5}setOptimizeAdServing
|
197
197
|
class SetOptimizeAdServing
|
198
198
|
@@schema_type = "setOptimizeAdServing"
|
199
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
199
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
200
200
|
@@schema_qualified = "true"
|
201
201
|
@@schema_element = [
|
202
202
|
["campaignId", "SOAP::SOAPInt"],
|
@@ -212,10 +212,10 @@ class SetOptimizeAdServing
|
|
212
212
|
end
|
213
213
|
end
|
214
214
|
|
215
|
-
# {https://adwords.google.com/api/adwords/
|
215
|
+
# {https://adwords.google.com/api/adwords/v5}setOptimizeAdServingResponse
|
216
216
|
class SetOptimizeAdServingResponse
|
217
217
|
@@schema_type = "setOptimizeAdServingResponse"
|
218
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
218
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
219
219
|
@@schema_qualified = "true"
|
220
220
|
@@schema_element = []
|
221
221
|
|
@@ -223,46 +223,42 @@ class SetOptimizeAdServingResponse
|
|
223
223
|
end
|
224
224
|
end
|
225
225
|
|
226
|
-
# {https://adwords.google.com/api/adwords/
|
226
|
+
# {https://adwords.google.com/api/adwords/v5}getCampaignStats
|
227
227
|
class GetCampaignStats
|
228
228
|
@@schema_type = "getCampaignStats"
|
229
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
229
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
230
230
|
@@schema_qualified = "true"
|
231
231
|
@@schema_element = [
|
232
232
|
["campaignIds", "SOAP::SOAPInt[]"],
|
233
|
-
["
|
234
|
-
["
|
233
|
+
["startDay", "SOAP::SOAPDate"],
|
234
|
+
["endDay", "SOAP::SOAPDate"],
|
235
|
+
["inPST", "SOAP::SOAPBoolean"]
|
235
236
|
]
|
236
237
|
|
237
238
|
attr_accessor :campaignIds
|
238
|
-
attr_accessor :
|
239
|
+
attr_accessor :startDay
|
240
|
+
attr_accessor :endDay
|
241
|
+
attr_accessor :inPST
|
239
242
|
|
240
|
-
def
|
241
|
-
@v_end
|
242
|
-
end
|
243
|
-
|
244
|
-
def end=(value)
|
245
|
-
@v_end = value
|
246
|
-
end
|
247
|
-
|
248
|
-
def initialize(campaignIds = [], start = nil, v_end = nil)
|
243
|
+
def initialize(campaignIds = [], startDay = nil, endDay = nil, inPST = nil)
|
249
244
|
@campaignIds = campaignIds
|
250
|
-
@
|
251
|
-
@
|
245
|
+
@startDay = startDay
|
246
|
+
@endDay = endDay
|
247
|
+
@inPST = inPST
|
252
248
|
end
|
253
249
|
end
|
254
250
|
|
255
|
-
# {https://adwords.google.com/api/adwords/
|
251
|
+
# {https://adwords.google.com/api/adwords/v5}getCampaignStatsResponse
|
256
252
|
class GetCampaignStatsResponse < ::Array
|
257
253
|
@@schema_element = [
|
258
|
-
["getCampaignStatsReturn", ["StatsRecord[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
254
|
+
["getCampaignStatsReturn", ["StatsRecord[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "getCampaignStatsReturn")]]
|
259
255
|
]
|
260
256
|
end
|
261
257
|
|
262
|
-
# {https://adwords.google.com/api/adwords/
|
258
|
+
# {https://adwords.google.com/api/adwords/v5}Criterion
|
263
259
|
class Criterion
|
264
260
|
@@schema_type = "Criterion"
|
265
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
261
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
266
262
|
@@schema_element = [
|
267
263
|
["adGroupId", "SOAP::SOAPInt"],
|
268
264
|
["criterionType", "SOAP::SOAPString"],
|
@@ -295,10 +291,10 @@ class Criterion
|
|
295
291
|
end
|
296
292
|
end
|
297
293
|
|
298
|
-
# {https://adwords.google.com/api/adwords/
|
294
|
+
# {https://adwords.google.com/api/adwords/v5}Keyword
|
299
295
|
class Keyword
|
300
296
|
@@schema_type = "Keyword"
|
301
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
297
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
302
298
|
@@schema_element = [
|
303
299
|
["adGroupId", "SOAP::SOAPInt"],
|
304
300
|
["criterionType", "SOAP::SOAPString"],
|
@@ -343,17 +339,17 @@ class Keyword
|
|
343
339
|
end
|
344
340
|
end
|
345
341
|
|
346
|
-
# {https://adwords.google.com/api/adwords/
|
342
|
+
# {https://adwords.google.com/api/adwords/v5}LanguageTarget
|
347
343
|
class LanguageTarget < ::Array
|
348
344
|
@@schema_element = [
|
349
|
-
["languages", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
345
|
+
["languages", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "languages")]]
|
350
346
|
]
|
351
347
|
end
|
352
348
|
|
353
|
-
# {https://adwords.google.com/api/adwords/
|
349
|
+
# {https://adwords.google.com/api/adwords/v5}GeoTarget
|
354
350
|
class GeoTarget
|
355
351
|
@@schema_type = "GeoTarget"
|
356
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
352
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
357
353
|
@@schema_element = [
|
358
354
|
["cities", "SOAP::SOAPString[]"],
|
359
355
|
["countries", "SOAP::SOAPString[]"],
|
@@ -374,86 +370,122 @@ class GeoTarget
|
|
374
370
|
end
|
375
371
|
end
|
376
372
|
|
377
|
-
# {https://adwords.google.com/api/adwords/
|
373
|
+
# {https://adwords.google.com/api/adwords/v5}NetworkTarget
|
378
374
|
class NetworkTarget < ::Array
|
379
375
|
@@schema_element = [
|
380
|
-
["networkTypes", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/
|
376
|
+
["networkTypes", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/v5", "networkTypes")]]
|
381
377
|
]
|
382
378
|
end
|
383
379
|
|
384
|
-
# {https://adwords.google.com/api/adwords/
|
380
|
+
# {https://adwords.google.com/api/adwords/v5}Campaign
|
385
381
|
class Campaign
|
386
382
|
@@schema_type = "Campaign"
|
387
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
383
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
388
384
|
@@schema_element = [
|
389
385
|
["dailyBudget", "SOAP::SOAPLong"],
|
390
386
|
["enableSeparateContentBids", "SOAP::SOAPBoolean"],
|
391
|
-
["
|
387
|
+
["endDay", "SOAP::SOAPDate"],
|
392
388
|
["geoTargeting", "GeoTarget"],
|
393
389
|
["id", "SOAP::SOAPInt"],
|
394
390
|
["languageTargeting", "LanguageTarget"],
|
395
391
|
["name", "SOAP::SOAPString"],
|
396
392
|
["networkTargeting", "NetworkTarget"],
|
397
|
-
["
|
393
|
+
["startDay", "SOAP::SOAPDate"],
|
398
394
|
["status", "SOAP::SOAPString"]
|
399
395
|
]
|
400
396
|
|
401
397
|
attr_accessor :dailyBudget
|
402
398
|
attr_accessor :enableSeparateContentBids
|
403
|
-
attr_accessor :
|
399
|
+
attr_accessor :endDay
|
404
400
|
attr_accessor :geoTargeting
|
405
401
|
attr_accessor :id
|
406
402
|
attr_accessor :languageTargeting
|
407
403
|
attr_accessor :name
|
408
404
|
attr_accessor :networkTargeting
|
409
|
-
attr_accessor :
|
405
|
+
attr_accessor :startDay
|
410
406
|
attr_accessor :status
|
411
407
|
|
412
|
-
def initialize(dailyBudget = nil, enableSeparateContentBids = nil,
|
408
|
+
def initialize(dailyBudget = nil, enableSeparateContentBids = nil, endDay = nil, geoTargeting = nil, id = nil, languageTargeting = nil, name = nil, networkTargeting = nil, startDay = nil, status = nil)
|
413
409
|
@dailyBudget = dailyBudget
|
414
410
|
@enableSeparateContentBids = enableSeparateContentBids
|
415
|
-
@
|
411
|
+
@endDay = endDay
|
416
412
|
@geoTargeting = geoTargeting
|
417
413
|
@id = id
|
418
414
|
@languageTargeting = languageTargeting
|
419
415
|
@name = name
|
420
416
|
@networkTargeting = networkTargeting
|
421
|
-
@
|
417
|
+
@startDay = startDay
|
422
418
|
@status = status
|
423
419
|
end
|
424
420
|
end
|
425
421
|
|
426
|
-
# {https://adwords.google.com/api/adwords/
|
422
|
+
# {https://adwords.google.com/api/adwords/v5}ApiException
|
427
423
|
class ApiException
|
428
424
|
@@schema_type = "ApiException"
|
429
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
425
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
430
426
|
@@schema_element = [
|
431
427
|
["code", "SOAP::SOAPInt"],
|
432
428
|
["internal", "SOAP::SOAPBoolean"],
|
433
429
|
["message", "SOAP::SOAPString"],
|
434
430
|
["trigger", "SOAP::SOAPString"],
|
435
|
-
["
|
431
|
+
["errors", "ApiError[]"]
|
436
432
|
]
|
437
433
|
|
438
434
|
attr_accessor :code
|
439
435
|
attr_accessor :internal
|
440
436
|
attr_accessor :message
|
441
437
|
attr_accessor :trigger
|
442
|
-
attr_accessor :
|
438
|
+
attr_accessor :errors
|
443
439
|
|
444
|
-
def initialize(code = nil, internal = nil, message = nil, trigger = nil,
|
440
|
+
def initialize(code = nil, internal = nil, message = nil, trigger = nil, errors = [])
|
445
441
|
@code = code
|
446
442
|
@internal = internal
|
447
443
|
@message = message
|
448
444
|
@trigger = trigger
|
449
|
-
@
|
445
|
+
@errors = errors
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
# {https://adwords.google.com/api/adwords/v5}ApiError
|
450
|
+
class ApiError
|
451
|
+
@@schema_type = "ApiError"
|
452
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
453
|
+
@@schema_element = [
|
454
|
+
["index", "SOAP::SOAPInt"],
|
455
|
+
["field", "SOAP::SOAPString"],
|
456
|
+
["textIndex", "SOAP::SOAPInt"],
|
457
|
+
["textLength", "SOAP::SOAPInt"],
|
458
|
+
["trigger", "SOAP::SOAPString"],
|
459
|
+
["code", "SOAP::SOAPInt"],
|
460
|
+
["isExemptable", "SOAP::SOAPBoolean"],
|
461
|
+
["detail", "SOAP::SOAPString"]
|
462
|
+
]
|
463
|
+
|
464
|
+
attr_accessor :index
|
465
|
+
attr_accessor :field
|
466
|
+
attr_accessor :textIndex
|
467
|
+
attr_accessor :textLength
|
468
|
+
attr_accessor :trigger
|
469
|
+
attr_accessor :code
|
470
|
+
attr_accessor :isExemptable
|
471
|
+
attr_accessor :detail
|
472
|
+
|
473
|
+
def initialize(index = nil, field = nil, textIndex = nil, textLength = nil, trigger = nil, code = nil, isExemptable = nil, detail = nil)
|
474
|
+
@index = index
|
475
|
+
@field = field
|
476
|
+
@textIndex = textIndex
|
477
|
+
@textLength = textLength
|
478
|
+
@trigger = trigger
|
479
|
+
@code = code
|
480
|
+
@isExemptable = isExemptable
|
481
|
+
@detail = detail
|
450
482
|
end
|
451
483
|
end
|
452
484
|
|
453
|
-
# {https://adwords.google.com/api/adwords/
|
485
|
+
# {https://adwords.google.com/api/adwords/v5}StatsRecord
|
454
486
|
class StatsRecord
|
455
487
|
@@schema_type = "StatsRecord"
|
456
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
488
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
457
489
|
@@schema_element = [
|
458
490
|
["averagePosition", "SOAP::SOAPDouble"],
|
459
491
|
["clicks", "SOAP::SOAPLong"],
|
@@ -483,10 +515,10 @@ class StatsRecord
|
|
483
515
|
end
|
484
516
|
end
|
485
517
|
|
486
|
-
# {https://adwords.google.com/api/adwords/
|
518
|
+
# {https://adwords.google.com/api/adwords/v5}CriterionStatus
|
487
519
|
class CriterionStatus < ::String
|
488
520
|
@@schema_type = "CriterionStatus"
|
489
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
521
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
490
522
|
|
491
523
|
Deleted = CriterionStatus.new("Deleted")
|
492
524
|
Disabled = CriterionStatus.new("Disabled")
|
@@ -496,20 +528,20 @@ class CriterionStatus < ::String
|
|
496
528
|
OnHold = CriterionStatus.new("OnHold")
|
497
529
|
end
|
498
530
|
|
499
|
-
# {https://adwords.google.com/api/adwords/
|
531
|
+
# {https://adwords.google.com/api/adwords/v5}KeywordType
|
500
532
|
class KeywordType < ::String
|
501
533
|
@@schema_type = "KeywordType"
|
502
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
534
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
503
535
|
|
504
536
|
Broad = KeywordType.new("Broad")
|
505
537
|
Exact = KeywordType.new("Exact")
|
506
538
|
Phrase = KeywordType.new("Phrase")
|
507
539
|
end
|
508
540
|
|
509
|
-
# {https://adwords.google.com/api/adwords/
|
541
|
+
# {https://adwords.google.com/api/adwords/v5}CampaignStatus
|
510
542
|
class CampaignStatus < ::String
|
511
543
|
@@schema_type = "CampaignStatus"
|
512
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
544
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
513
545
|
|
514
546
|
Active = CampaignStatus.new("Active")
|
515
547
|
Deleted = CampaignStatus.new("Deleted")
|
@@ -519,10 +551,10 @@ class CampaignStatus < ::String
|
|
519
551
|
Suspended = CampaignStatus.new("Suspended")
|
520
552
|
end
|
521
553
|
|
522
|
-
# {https://adwords.google.com/api/adwords/
|
554
|
+
# {https://adwords.google.com/api/adwords/v5}NetworkType
|
523
555
|
class NetworkType < ::String
|
524
556
|
@@schema_type = "NetworkType"
|
525
|
-
@@schema_ns = "https://adwords.google.com/api/adwords/
|
557
|
+
@@schema_ns = "https://adwords.google.com/api/adwords/v5"
|
526
558
|
|
527
559
|
ContentNetwork = NetworkType.new("ContentNetwork")
|
528
560
|
GoogleSearch = NetworkType.new("GoogleSearch")
|