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
@@ -3,7 +3,7 @@ require 'xsd/qname'
|
|
3
3
|
module AdWords; module KeywordToolService
|
4
4
|
|
5
5
|
|
6
|
-
# {https://adwords.google.com/api/adwords/
|
6
|
+
# {https://adwords.google.com/api/adwords/v12}ApiError
|
7
7
|
# code - SOAP::SOAPInt
|
8
8
|
# detail - SOAP::SOAPString
|
9
9
|
# field - SOAP::SOAPString
|
@@ -34,7 +34,7 @@ class ApiError
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
-
# {https://adwords.google.com/api/adwords/
|
37
|
+
# {https://adwords.google.com/api/adwords/v12}ApiException
|
38
38
|
# code - SOAP::SOAPInt
|
39
39
|
# errors - AdWords::KeywordToolService::ApiError
|
40
40
|
# internal - SOAP::SOAPBoolean
|
@@ -56,7 +56,7 @@ class ApiException
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
# {https://adwords.google.com/api/adwords/
|
59
|
+
# {https://adwords.google.com/api/adwords/v12}KeywordVariation
|
60
60
|
# advertiserCompetitionScale - SOAP::SOAPInt
|
61
61
|
# language - SOAP::SOAPString
|
62
62
|
# searchVolumeScale - SOAP::SOAPInt
|
@@ -75,7 +75,7 @@ class KeywordVariation
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
-
# {https://adwords.google.com/api/adwords/
|
78
|
+
# {https://adwords.google.com/api/adwords/v12}KeywordVariations
|
79
79
|
# additionalToConsider - AdWords::KeywordToolService::KeywordVariation
|
80
80
|
# moreSpecific - AdWords::KeywordToolService::KeywordVariation
|
81
81
|
class KeywordVariations
|
@@ -88,7 +88,7 @@ class KeywordVariations
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
-
# {https://adwords.google.com/api/adwords/
|
91
|
+
# {https://adwords.google.com/api/adwords/v12}SeedKeyword
|
92
92
|
# negative - SOAP::SOAPBoolean
|
93
93
|
# text - SOAP::SOAPString
|
94
94
|
# type - AdWords::KeywordToolService::KeywordType
|
@@ -104,7 +104,7 @@ class SeedKeyword
|
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
-
# {https://adwords.google.com/api/adwords/
|
107
|
+
# {https://adwords.google.com/api/adwords/v12}SiteKeyword
|
108
108
|
# advertiserCompetitionScale - SOAP::SOAPInt
|
109
109
|
# groupId - SOAP::SOAPInt
|
110
110
|
# searchVolumeScale - SOAP::SOAPInt
|
@@ -123,7 +123,7 @@ class SiteKeyword
|
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
|
-
# {https://adwords.google.com/api/adwords/
|
126
|
+
# {https://adwords.google.com/api/adwords/v12}SiteKeywordGroups
|
127
127
|
# groups - SOAP::SOAPString
|
128
128
|
# keywords - AdWords::KeywordToolService::SiteKeyword
|
129
129
|
class SiteKeywordGroups
|
@@ -136,14 +136,14 @@ class SiteKeywordGroups
|
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
|
-
# {https://adwords.google.com/api/adwords/
|
139
|
+
# {https://adwords.google.com/api/adwords/v12}KeywordType
|
140
140
|
class KeywordType < ::String
|
141
141
|
Broad = KeywordType.new("Broad")
|
142
142
|
Exact = KeywordType.new("Exact")
|
143
143
|
Phrase = KeywordType.new("Phrase")
|
144
144
|
end
|
145
145
|
|
146
|
-
# {https://adwords.google.com/api/adwords/
|
146
|
+
# {https://adwords.google.com/api/adwords/v12}getKeywordVariations
|
147
147
|
# seedKeywords - AdWords::KeywordToolService::SeedKeyword
|
148
148
|
# useSynonyms - SOAP::SOAPBoolean
|
149
149
|
# languages - SOAP::SOAPString
|
@@ -162,7 +162,7 @@ class GetKeywordVariations
|
|
162
162
|
end
|
163
163
|
end
|
164
164
|
|
165
|
-
# {https://adwords.google.com/api/adwords/
|
165
|
+
# {https://adwords.google.com/api/adwords/v12}getKeywordVariationsResponse
|
166
166
|
# getKeywordVariationsReturn - AdWords::KeywordToolService::KeywordVariations
|
167
167
|
class GetKeywordVariationsResponse
|
168
168
|
attr_accessor :getKeywordVariationsReturn
|
@@ -172,7 +172,7 @@ class GetKeywordVariationsResponse
|
|
172
172
|
end
|
173
173
|
end
|
174
174
|
|
175
|
-
# {https://adwords.google.com/api/adwords/
|
175
|
+
# {https://adwords.google.com/api/adwords/v12}getKeywordsFromSite
|
176
176
|
# url - SOAP::SOAPString
|
177
177
|
# includeLinkedPages - SOAP::SOAPBoolean
|
178
178
|
# languages - SOAP::SOAPString
|
@@ -191,7 +191,7 @@ class GetKeywordsFromSite
|
|
191
191
|
end
|
192
192
|
end
|
193
193
|
|
194
|
-
# {https://adwords.google.com/api/adwords/
|
194
|
+
# {https://adwords.google.com/api/adwords/v12}getKeywordsFromSiteResponse
|
195
195
|
# getKeywordsFromSiteReturn - AdWords::KeywordToolService::SiteKeywordGroups
|
196
196
|
class GetKeywordsFromSiteResponse
|
197
197
|
attr_accessor :getKeywordsFromSiteReturn
|
@@ -1,29 +1,29 @@
|
|
1
|
-
require 'adwords4r/
|
2
|
-
require 'adwords4r/
|
1
|
+
require 'adwords4r/v12/KeywordToolService'
|
2
|
+
require 'adwords4r/v12/KeywordToolServiceMappingRegistry'
|
3
3
|
require 'soap/rpc/driver'
|
4
4
|
|
5
5
|
module AdWords
|
6
6
|
module KeywordToolService
|
7
7
|
|
8
8
|
class KeywordToolInterface < ::SOAP::RPC::Driver
|
9
|
-
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/
|
9
|
+
DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v12/KeywordToolService"
|
10
10
|
|
11
11
|
Methods = [
|
12
12
|
[ "",
|
13
13
|
"getKeywordVariations",
|
14
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
15
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
14
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getKeywordVariations"]],
|
15
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getKeywordVariationsResponse"]] ],
|
16
16
|
{ :request_style => :document, :request_use => :literal,
|
17
17
|
:response_style => :document, :response_use => :literal,
|
18
|
-
:faults => {"AdWords::KeywordToolService::ApiException"=>{:
|
18
|
+
:faults => {"AdWords::KeywordToolService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v12", :name=>"ApiException", :namespace=>nil}} }
|
19
19
|
],
|
20
20
|
[ "",
|
21
21
|
"getKeywordsFromSite",
|
22
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
23
|
-
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/
|
22
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getKeywordsFromSite"]],
|
23
|
+
["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getKeywordsFromSiteResponse"]] ],
|
24
24
|
{ :request_style => :document, :request_use => :literal,
|
25
25
|
:response_style => :document, :response_use => :literal,
|
26
|
-
:faults => {"AdWords::KeywordToolService::ApiException"=>{:
|
26
|
+
:faults => {"AdWords::KeywordToolService::ApiException"=>{:encodingstyle=>"document", :use=>"literal", :ns=>"https://adwords.google.com/api/adwords/v12", :name=>"ApiException", :namespace=>nil}} }
|
27
27
|
]
|
28
28
|
]
|
29
29
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'adwords4r/
|
1
|
+
require 'adwords4r/v12/KeywordToolService'
|
2
2
|
require 'soap/mapping'
|
3
3
|
|
4
4
|
module AdWords; module KeywordToolService
|
@@ -6,11 +6,11 @@ module AdWords; module KeywordToolService
|
|
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::KeywordToolService::ApiError,
|
13
|
-
:schema_type => XSD::QName.new(
|
13
|
+
:schema_type => XSD::QName.new(NsV12, "ApiError"),
|
14
14
|
:schema_element => [
|
15
15
|
["code", "SOAP::SOAPInt"],
|
16
16
|
["detail", "SOAP::SOAPString"],
|
@@ -25,7 +25,7 @@ module DefaultMappingRegistry
|
|
25
25
|
|
26
26
|
EncodedRegistry.register(
|
27
27
|
:class => AdWords::KeywordToolService::ApiException,
|
28
|
-
:schema_type => XSD::QName.new(
|
28
|
+
:schema_type => XSD::QName.new(NsV12, "ApiException"),
|
29
29
|
:schema_element => [
|
30
30
|
["code", "SOAP::SOAPInt"],
|
31
31
|
["errors", "AdWords::KeywordToolService::ApiError[]", [1, nil]],
|
@@ -37,7 +37,7 @@ module DefaultMappingRegistry
|
|
37
37
|
|
38
38
|
EncodedRegistry.register(
|
39
39
|
:class => AdWords::KeywordToolService::KeywordVariation,
|
40
|
-
:schema_type => XSD::QName.new(
|
40
|
+
:schema_type => XSD::QName.new(NsV12, "KeywordVariation"),
|
41
41
|
:schema_element => [
|
42
42
|
["advertiserCompetitionScale", "SOAP::SOAPInt"],
|
43
43
|
["language", "SOAP::SOAPString"],
|
@@ -48,7 +48,7 @@ module DefaultMappingRegistry
|
|
48
48
|
|
49
49
|
EncodedRegistry.register(
|
50
50
|
:class => AdWords::KeywordToolService::KeywordVariations,
|
51
|
-
:schema_type => XSD::QName.new(
|
51
|
+
:schema_type => XSD::QName.new(NsV12, "KeywordVariations"),
|
52
52
|
:schema_element => [
|
53
53
|
["additionalToConsider", "AdWords::KeywordToolService::KeywordVariation[]", [1, nil]],
|
54
54
|
["moreSpecific", "AdWords::KeywordToolService::KeywordVariation[]", [1, nil]]
|
@@ -57,7 +57,7 @@ module DefaultMappingRegistry
|
|
57
57
|
|
58
58
|
EncodedRegistry.register(
|
59
59
|
:class => AdWords::KeywordToolService::SeedKeyword,
|
60
|
-
:schema_type => XSD::QName.new(
|
60
|
+
:schema_type => XSD::QName.new(NsV12, "SeedKeyword"),
|
61
61
|
:schema_element => [
|
62
62
|
["negative", "SOAP::SOAPBoolean", [0, 1]],
|
63
63
|
["text", "SOAP::SOAPString"],
|
@@ -67,7 +67,7 @@ module DefaultMappingRegistry
|
|
67
67
|
|
68
68
|
EncodedRegistry.register(
|
69
69
|
:class => AdWords::KeywordToolService::SiteKeyword,
|
70
|
-
:schema_type => XSD::QName.new(
|
70
|
+
:schema_type => XSD::QName.new(NsV12, "SiteKeyword"),
|
71
71
|
:schema_element => [
|
72
72
|
["advertiserCompetitionScale", "SOAP::SOAPInt"],
|
73
73
|
["groupId", "SOAP::SOAPInt"],
|
@@ -78,7 +78,7 @@ module DefaultMappingRegistry
|
|
78
78
|
|
79
79
|
EncodedRegistry.register(
|
80
80
|
:class => AdWords::KeywordToolService::SiteKeywordGroups,
|
81
|
-
:schema_type => XSD::QName.new(
|
81
|
+
:schema_type => XSD::QName.new(NsV12, "SiteKeywordGroups"),
|
82
82
|
:schema_element => [
|
83
83
|
["groups", "SOAP::SOAPString[]", [1, nil]],
|
84
84
|
["keywords", "AdWords::KeywordToolService::SiteKeyword[]", [1, nil]]
|
@@ -87,12 +87,12 @@ module DefaultMappingRegistry
|
|
87
87
|
|
88
88
|
EncodedRegistry.register(
|
89
89
|
:class => AdWords::KeywordToolService::KeywordType,
|
90
|
-
:schema_type => XSD::QName.new(
|
90
|
+
:schema_type => XSD::QName.new(NsV12, "KeywordType")
|
91
91
|
)
|
92
92
|
|
93
93
|
LiteralRegistry.register(
|
94
94
|
:class => AdWords::KeywordToolService::ApiError,
|
95
|
-
:schema_type => XSD::QName.new(
|
95
|
+
:schema_type => XSD::QName.new(NsV12, "ApiError"),
|
96
96
|
:schema_element => [
|
97
97
|
["code", "SOAP::SOAPInt"],
|
98
98
|
["detail", "SOAP::SOAPString"],
|
@@ -107,7 +107,7 @@ module DefaultMappingRegistry
|
|
107
107
|
|
108
108
|
LiteralRegistry.register(
|
109
109
|
:class => AdWords::KeywordToolService::ApiException,
|
110
|
-
:schema_type => XSD::QName.new(
|
110
|
+
:schema_type => XSD::QName.new(NsV12, "ApiException"),
|
111
111
|
:schema_element => [
|
112
112
|
["code", "SOAP::SOAPInt"],
|
113
113
|
["errors", "AdWords::KeywordToolService::ApiError[]", [1, nil]],
|
@@ -119,7 +119,7 @@ module DefaultMappingRegistry
|
|
119
119
|
|
120
120
|
LiteralRegistry.register(
|
121
121
|
:class => AdWords::KeywordToolService::KeywordVariation,
|
122
|
-
:schema_type => XSD::QName.new(
|
122
|
+
:schema_type => XSD::QName.new(NsV12, "KeywordVariation"),
|
123
123
|
:schema_element => [
|
124
124
|
["advertiserCompetitionScale", "SOAP::SOAPInt"],
|
125
125
|
["language", "SOAP::SOAPString"],
|
@@ -130,7 +130,7 @@ module DefaultMappingRegistry
|
|
130
130
|
|
131
131
|
LiteralRegistry.register(
|
132
132
|
:class => AdWords::KeywordToolService::KeywordVariations,
|
133
|
-
:schema_type => XSD::QName.new(
|
133
|
+
:schema_type => XSD::QName.new(NsV12, "KeywordVariations"),
|
134
134
|
:schema_element => [
|
135
135
|
["additionalToConsider", "AdWords::KeywordToolService::KeywordVariation[]", [1, nil]],
|
136
136
|
["moreSpecific", "AdWords::KeywordToolService::KeywordVariation[]", [1, nil]]
|
@@ -139,7 +139,7 @@ module DefaultMappingRegistry
|
|
139
139
|
|
140
140
|
LiteralRegistry.register(
|
141
141
|
:class => AdWords::KeywordToolService::SeedKeyword,
|
142
|
-
:schema_type => XSD::QName.new(
|
142
|
+
:schema_type => XSD::QName.new(NsV12, "SeedKeyword"),
|
143
143
|
:schema_element => [
|
144
144
|
["negative", "SOAP::SOAPBoolean", [0, 1]],
|
145
145
|
["text", "SOAP::SOAPString"],
|
@@ -149,7 +149,7 @@ module DefaultMappingRegistry
|
|
149
149
|
|
150
150
|
LiteralRegistry.register(
|
151
151
|
:class => AdWords::KeywordToolService::SiteKeyword,
|
152
|
-
:schema_type => XSD::QName.new(
|
152
|
+
:schema_type => XSD::QName.new(NsV12, "SiteKeyword"),
|
153
153
|
:schema_element => [
|
154
154
|
["advertiserCompetitionScale", "SOAP::SOAPInt"],
|
155
155
|
["groupId", "SOAP::SOAPInt"],
|
@@ -160,7 +160,7 @@ module DefaultMappingRegistry
|
|
160
160
|
|
161
161
|
LiteralRegistry.register(
|
162
162
|
:class => AdWords::KeywordToolService::SiteKeywordGroups,
|
163
|
-
:schema_type => XSD::QName.new(
|
163
|
+
:schema_type => XSD::QName.new(NsV12, "SiteKeywordGroups"),
|
164
164
|
:schema_element => [
|
165
165
|
["groups", "SOAP::SOAPString[]", [1, nil]],
|
166
166
|
["keywords", "AdWords::KeywordToolService::SiteKeyword[]", [1, nil]]
|
@@ -169,12 +169,12 @@ module DefaultMappingRegistry
|
|
169
169
|
|
170
170
|
LiteralRegistry.register(
|
171
171
|
:class => AdWords::KeywordToolService::KeywordType,
|
172
|
-
:schema_type => XSD::QName.new(
|
172
|
+
:schema_type => XSD::QName.new(NsV12, "KeywordType")
|
173
173
|
)
|
174
174
|
|
175
175
|
LiteralRegistry.register(
|
176
176
|
:class => AdWords::KeywordToolService::ApiException,
|
177
|
-
:schema_name => XSD::QName.new(
|
177
|
+
:schema_name => XSD::QName.new(NsV12, "fault"),
|
178
178
|
:schema_element => [
|
179
179
|
["code", "SOAP::SOAPInt"],
|
180
180
|
["errors", "AdWords::KeywordToolService::ApiError[]", [1, nil]],
|
@@ -186,7 +186,7 @@ module DefaultMappingRegistry
|
|
186
186
|
|
187
187
|
LiteralRegistry.register(
|
188
188
|
:class => AdWords::KeywordToolService::GetKeywordVariations,
|
189
|
-
:schema_name => XSD::QName.new(
|
189
|
+
:schema_name => XSD::QName.new(NsV12, "getKeywordVariations"),
|
190
190
|
:schema_element => [
|
191
191
|
["seedKeywords", "AdWords::KeywordToolService::SeedKeyword[]", [1, nil]],
|
192
192
|
["useSynonyms", "SOAP::SOAPBoolean"],
|
@@ -197,7 +197,7 @@ module DefaultMappingRegistry
|
|
197
197
|
|
198
198
|
LiteralRegistry.register(
|
199
199
|
:class => AdWords::KeywordToolService::GetKeywordVariationsResponse,
|
200
|
-
:schema_name => XSD::QName.new(
|
200
|
+
:schema_name => XSD::QName.new(NsV12, "getKeywordVariationsResponse"),
|
201
201
|
:schema_element => [
|
202
202
|
["getKeywordVariationsReturn", "AdWords::KeywordToolService::KeywordVariations"]
|
203
203
|
]
|
@@ -205,7 +205,7 @@ module DefaultMappingRegistry
|
|
205
205
|
|
206
206
|
LiteralRegistry.register(
|
207
207
|
:class => AdWords::KeywordToolService::GetKeywordsFromSite,
|
208
|
-
:schema_name => XSD::QName.new(
|
208
|
+
:schema_name => XSD::QName.new(NsV12, "getKeywordsFromSite"),
|
209
209
|
:schema_element => [
|
210
210
|
["url", "SOAP::SOAPString"],
|
211
211
|
["includeLinkedPages", "SOAP::SOAPBoolean"],
|
@@ -216,7 +216,7 @@ module DefaultMappingRegistry
|
|
216
216
|
|
217
217
|
LiteralRegistry.register(
|
218
218
|
:class => AdWords::KeywordToolService::GetKeywordsFromSiteResponse,
|
219
|
-
:schema_name => XSD::QName.new(
|
219
|
+
:schema_name => XSD::QName.new(NsV12, "getKeywordsFromSiteResponse"),
|
220
220
|
:schema_element => [
|
221
221
|
["getKeywordsFromSiteReturn", "AdWords::KeywordToolService::SiteKeywordGroups"]
|
222
222
|
]
|
@@ -0,0 +1,322 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
module AdWords; module ReportService
|
4
|
+
|
5
|
+
|
6
|
+
# {https://adwords.google.com/api/adwords/v12}ApiError
|
7
|
+
# code - SOAP::SOAPInt
|
8
|
+
# detail - SOAP::SOAPString
|
9
|
+
# field - SOAP::SOAPString
|
10
|
+
# index - SOAP::SOAPInt
|
11
|
+
# isExemptable - SOAP::SOAPBoolean
|
12
|
+
# textIndex - SOAP::SOAPInt
|
13
|
+
# textLength - SOAP::SOAPInt
|
14
|
+
# trigger - SOAP::SOAPString
|
15
|
+
class ApiError
|
16
|
+
attr_accessor :code
|
17
|
+
attr_accessor :detail
|
18
|
+
attr_accessor :field
|
19
|
+
attr_accessor :index
|
20
|
+
attr_accessor :isExemptable
|
21
|
+
attr_accessor :textIndex
|
22
|
+
attr_accessor :textLength
|
23
|
+
attr_accessor :trigger
|
24
|
+
|
25
|
+
def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
|
26
|
+
@code = code
|
27
|
+
@detail = detail
|
28
|
+
@field = field
|
29
|
+
@index = index
|
30
|
+
@isExemptable = isExemptable
|
31
|
+
@textIndex = textIndex
|
32
|
+
@textLength = textLength
|
33
|
+
@trigger = trigger
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# {https://adwords.google.com/api/adwords/v12}ApiException
|
38
|
+
# code - SOAP::SOAPInt
|
39
|
+
# errors - AdWords::ReportService::ApiError
|
40
|
+
# internal - SOAP::SOAPBoolean
|
41
|
+
# message - SOAP::SOAPString
|
42
|
+
# trigger - SOAP::SOAPString
|
43
|
+
class ApiException
|
44
|
+
attr_accessor :code
|
45
|
+
attr_accessor :errors
|
46
|
+
attr_accessor :internal
|
47
|
+
attr_accessor :message
|
48
|
+
attr_accessor :trigger
|
49
|
+
|
50
|
+
def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
|
51
|
+
@code = code
|
52
|
+
@errors = errors
|
53
|
+
@internal = internal
|
54
|
+
@message = message
|
55
|
+
@trigger = trigger
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# {https://adwords.google.com/api/adwords/v12}ReportJob
|
60
|
+
# abstract
|
61
|
+
# clientEmails - SOAP::SOAPString
|
62
|
+
# crossClient - SOAP::SOAPBoolean
|
63
|
+
# endDay - SOAP::SOAPDate
|
64
|
+
# id - SOAP::SOAPLong
|
65
|
+
# name - SOAP::SOAPString
|
66
|
+
# startDay - SOAP::SOAPDate
|
67
|
+
# status - AdWords::ReportService::ReportJobStatus
|
68
|
+
class ReportJob
|
69
|
+
attr_accessor :clientEmails
|
70
|
+
attr_accessor :crossClient
|
71
|
+
attr_accessor :endDay
|
72
|
+
attr_accessor :id
|
73
|
+
attr_accessor :name
|
74
|
+
attr_accessor :startDay
|
75
|
+
attr_accessor :status
|
76
|
+
|
77
|
+
def initialize(clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil)
|
78
|
+
@clientEmails = clientEmails
|
79
|
+
@crossClient = crossClient
|
80
|
+
@endDay = endDay
|
81
|
+
@id = id
|
82
|
+
@name = name
|
83
|
+
@startDay = startDay
|
84
|
+
@status = status
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# {https://adwords.google.com/api/adwords/v12}DefinedReportJob
|
89
|
+
# clientEmails - SOAP::SOAPString
|
90
|
+
# crossClient - SOAP::SOAPBoolean
|
91
|
+
# endDay - SOAP::SOAPDate
|
92
|
+
# id - SOAP::SOAPLong
|
93
|
+
# name - SOAP::SOAPString
|
94
|
+
# startDay - SOAP::SOAPDate
|
95
|
+
# status - AdWords::ReportService::ReportJobStatus
|
96
|
+
# adGroupStatuses - AdWords::ReportService::AdGroupStatus
|
97
|
+
# adGroups - SOAP::SOAPInt
|
98
|
+
# adWordsType - AdWords::ReportService::AdWordsType
|
99
|
+
# aggregationTypes - SOAP::SOAPString
|
100
|
+
# campaignStatuses - AdWords::ReportService::CampaignStatus
|
101
|
+
# campaigns - SOAP::SOAPInt
|
102
|
+
# includeZeroImpression - SOAP::SOAPBoolean
|
103
|
+
# keywordStatuses - AdWords::ReportService::KeywordStatus
|
104
|
+
# keywordType - AdWords::ReportService::KeywordType
|
105
|
+
# keywords - SOAP::SOAPString
|
106
|
+
# selectedColumns - SOAP::SOAPString
|
107
|
+
# selectedReportType - SOAP::SOAPString
|
108
|
+
class DefinedReportJob < ReportJob
|
109
|
+
attr_accessor :clientEmails
|
110
|
+
attr_accessor :crossClient
|
111
|
+
attr_accessor :endDay
|
112
|
+
attr_accessor :id
|
113
|
+
attr_accessor :name
|
114
|
+
attr_accessor :startDay
|
115
|
+
attr_accessor :status
|
116
|
+
attr_accessor :adGroupStatuses
|
117
|
+
attr_accessor :adGroups
|
118
|
+
attr_accessor :adWordsType
|
119
|
+
attr_accessor :aggregationTypes
|
120
|
+
attr_accessor :campaignStatuses
|
121
|
+
attr_accessor :campaigns
|
122
|
+
attr_accessor :includeZeroImpression
|
123
|
+
attr_accessor :keywordStatuses
|
124
|
+
attr_accessor :keywordType
|
125
|
+
attr_accessor :keywords
|
126
|
+
attr_accessor :selectedColumns
|
127
|
+
attr_accessor :selectedReportType
|
128
|
+
|
129
|
+
def initialize(clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adGroupStatuses = [], adGroups = [], adWordsType = nil, aggregationTypes = [], campaignStatuses = [], campaigns = [], includeZeroImpression = nil, keywordStatuses = [], keywordType = nil, keywords = [], selectedColumns = [], selectedReportType = nil)
|
130
|
+
@clientEmails = clientEmails
|
131
|
+
@crossClient = crossClient
|
132
|
+
@endDay = endDay
|
133
|
+
@id = id
|
134
|
+
@name = name
|
135
|
+
@startDay = startDay
|
136
|
+
@status = status
|
137
|
+
@adGroupStatuses = adGroupStatuses
|
138
|
+
@adGroups = adGroups
|
139
|
+
@adWordsType = adWordsType
|
140
|
+
@aggregationTypes = aggregationTypes
|
141
|
+
@campaignStatuses = campaignStatuses
|
142
|
+
@campaigns = campaigns
|
143
|
+
@includeZeroImpression = includeZeroImpression
|
144
|
+
@keywordStatuses = keywordStatuses
|
145
|
+
@keywordType = keywordType
|
146
|
+
@keywords = keywords
|
147
|
+
@selectedColumns = selectedColumns
|
148
|
+
@selectedReportType = selectedReportType
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# {https://adwords.google.com/api/adwords/v12}AdGroupStatus
|
153
|
+
class AdGroupStatus < ::String
|
154
|
+
Deleted = AdGroupStatus.new("Deleted")
|
155
|
+
Enabled = AdGroupStatus.new("Enabled")
|
156
|
+
Paused = AdGroupStatus.new("Paused")
|
157
|
+
end
|
158
|
+
|
159
|
+
# {https://adwords.google.com/api/adwords/v12}AdWordsType
|
160
|
+
class AdWordsType < ::String
|
161
|
+
ContentOnly = AdWordsType.new("ContentOnly")
|
162
|
+
SearchOnly = AdWordsType.new("SearchOnly")
|
163
|
+
end
|
164
|
+
|
165
|
+
# {https://adwords.google.com/api/adwords/v12}CampaignStatus
|
166
|
+
class CampaignStatus < ::String
|
167
|
+
Active = CampaignStatus.new("Active")
|
168
|
+
Deleted = CampaignStatus.new("Deleted")
|
169
|
+
Ended = CampaignStatus.new("Ended")
|
170
|
+
Paused = CampaignStatus.new("Paused")
|
171
|
+
Pending = CampaignStatus.new("Pending")
|
172
|
+
Suspended = CampaignStatus.new("Suspended")
|
173
|
+
end
|
174
|
+
|
175
|
+
# {https://adwords.google.com/api/adwords/v12}KeywordStatus
|
176
|
+
class KeywordStatus < ::String
|
177
|
+
Active = KeywordStatus.new("Active")
|
178
|
+
Deleted = KeywordStatus.new("Deleted")
|
179
|
+
Disapproved = KeywordStatus.new("Disapproved")
|
180
|
+
InActive = KeywordStatus.new("InActive")
|
181
|
+
Paused = KeywordStatus.new("Paused")
|
182
|
+
end
|
183
|
+
|
184
|
+
# {https://adwords.google.com/api/adwords/v12}KeywordType
|
185
|
+
class KeywordType < ::String
|
186
|
+
Broad = KeywordType.new("Broad")
|
187
|
+
Exact = KeywordType.new("Exact")
|
188
|
+
Phrase = KeywordType.new("Phrase")
|
189
|
+
end
|
190
|
+
|
191
|
+
# {https://adwords.google.com/api/adwords/v12}ReportJobStatus
|
192
|
+
class ReportJobStatus < ::String
|
193
|
+
Completed = ReportJobStatus.new("Completed")
|
194
|
+
Failed = ReportJobStatus.new("Failed")
|
195
|
+
InProgress = ReportJobStatus.new("InProgress")
|
196
|
+
Pending = ReportJobStatus.new("Pending")
|
197
|
+
end
|
198
|
+
|
199
|
+
# {https://adwords.google.com/api/adwords/v12}deleteReport
|
200
|
+
# reportJobId - SOAP::SOAPLong
|
201
|
+
class DeleteReport
|
202
|
+
attr_accessor :reportJobId
|
203
|
+
|
204
|
+
def initialize(reportJobId = nil)
|
205
|
+
@reportJobId = reportJobId
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
# {https://adwords.google.com/api/adwords/v12}deleteReportResponse
|
210
|
+
class DeleteReportResponse
|
211
|
+
def initialize
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
# {https://adwords.google.com/api/adwords/v12}getAllJobs
|
216
|
+
class GetAllJobs
|
217
|
+
def initialize
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
# {https://adwords.google.com/api/adwords/v12}getAllJobsResponse
|
222
|
+
class GetAllJobsResponse < ::Array
|
223
|
+
end
|
224
|
+
|
225
|
+
# {https://adwords.google.com/api/adwords/v12}getGzipReportDownloadUrl
|
226
|
+
# reportJobId - SOAP::SOAPLong
|
227
|
+
class GetGzipReportDownloadUrl
|
228
|
+
attr_accessor :reportJobId
|
229
|
+
|
230
|
+
def initialize(reportJobId = nil)
|
231
|
+
@reportJobId = reportJobId
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
# {https://adwords.google.com/api/adwords/v12}getGzipReportDownloadUrlResponse
|
236
|
+
# getGzipReportDownloadUrlReturn - SOAP::SOAPString
|
237
|
+
class GetGzipReportDownloadUrlResponse
|
238
|
+
attr_accessor :getGzipReportDownloadUrlReturn
|
239
|
+
|
240
|
+
def initialize(getGzipReportDownloadUrlReturn = nil)
|
241
|
+
@getGzipReportDownloadUrlReturn = getGzipReportDownloadUrlReturn
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# {https://adwords.google.com/api/adwords/v12}getReportDownloadUrl
|
246
|
+
# reportJobId - SOAP::SOAPLong
|
247
|
+
class GetReportDownloadUrl
|
248
|
+
attr_accessor :reportJobId
|
249
|
+
|
250
|
+
def initialize(reportJobId = nil)
|
251
|
+
@reportJobId = reportJobId
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
# {https://adwords.google.com/api/adwords/v12}getReportDownloadUrlResponse
|
256
|
+
# getReportDownloadUrlReturn - SOAP::SOAPString
|
257
|
+
class GetReportDownloadUrlResponse
|
258
|
+
attr_accessor :getReportDownloadUrlReturn
|
259
|
+
|
260
|
+
def initialize(getReportDownloadUrlReturn = nil)
|
261
|
+
@getReportDownloadUrlReturn = getReportDownloadUrlReturn
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
# {https://adwords.google.com/api/adwords/v12}getReportJobStatus
|
266
|
+
# reportJobId - SOAP::SOAPLong
|
267
|
+
class GetReportJobStatus
|
268
|
+
attr_accessor :reportJobId
|
269
|
+
|
270
|
+
def initialize(reportJobId = nil)
|
271
|
+
@reportJobId = reportJobId
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
# {https://adwords.google.com/api/adwords/v12}getReportJobStatusResponse
|
276
|
+
# getReportJobStatusReturn - AdWords::ReportService::ReportJobStatus
|
277
|
+
class GetReportJobStatusResponse
|
278
|
+
attr_accessor :getReportJobStatusReturn
|
279
|
+
|
280
|
+
def initialize(getReportJobStatusReturn = nil)
|
281
|
+
@getReportJobStatusReturn = getReportJobStatusReturn
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# {https://adwords.google.com/api/adwords/v12}scheduleReportJob
|
286
|
+
# job - AdWords::ReportService::ReportJob
|
287
|
+
class ScheduleReportJob
|
288
|
+
attr_accessor :job
|
289
|
+
|
290
|
+
def initialize(job = nil)
|
291
|
+
@job = job
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
# {https://adwords.google.com/api/adwords/v12}scheduleReportJobResponse
|
296
|
+
# scheduleReportJobReturn - SOAP::SOAPLong
|
297
|
+
class ScheduleReportJobResponse
|
298
|
+
attr_accessor :scheduleReportJobReturn
|
299
|
+
|
300
|
+
def initialize(scheduleReportJobReturn = nil)
|
301
|
+
@scheduleReportJobReturn = scheduleReportJobReturn
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
# {https://adwords.google.com/api/adwords/v12}validateReportJob
|
306
|
+
# job - AdWords::ReportService::ReportJob
|
307
|
+
class ValidateReportJob
|
308
|
+
attr_accessor :job
|
309
|
+
|
310
|
+
def initialize(job = nil)
|
311
|
+
@job = job
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
# {https://adwords.google.com/api/adwords/v12}validateReportJobResponse
|
316
|
+
class ValidateReportJobResponse
|
317
|
+
def initialize
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
|
322
|
+
end; end
|