adwords4r 13.0.1 → 15.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. data/Authors.txt +2 -1
  2. data/ChangeLog.txt +28 -0
  3. data/Copying.txt +1 -1
  4. data/{Licence.txt → License.txt} +1 -1
  5. data/Rakefile +49 -54
  6. data/Readme.txt +78 -24
  7. data/adwords.properties +1 -1
  8. data/examples/account_info.rb +20 -26
  9. data/examples/create_all.rb +51 -53
  10. data/examples/create_all_v200902.rb +204 -0
  11. data/examples/keyword_suggestions.rb +35 -38
  12. data/examples/multiple_versions.rb +167 -0
  13. data/examples/reports.rb +37 -75
  14. data/lib/adwords4r.rb +123 -123
  15. data/lib/adwords4r/adwordslogger.rb +56 -0
  16. data/lib/adwords4r/apiextensions.rb +79 -0
  17. data/lib/adwords4r/authtoken.rb +56 -0
  18. data/lib/adwords4r/credentials.rb +115 -19
  19. data/lib/adwords4r/services.rb +139 -14
  20. data/lib/adwords4r/soap4rpatches.rb +129 -0
  21. data/lib/adwords4r/v13/AccountService.rb +11 -11
  22. data/lib/adwords4r/v13/AccountServiceDriver.rb +7 -5
  23. data/lib/adwords4r/v13/AccountServiceMappingRegistry.rb +56 -56
  24. data/lib/adwords4r/v13/AdGroupService.rb +9 -9
  25. data/lib/adwords4r/v13/AdGroupServiceDriver.rb +11 -9
  26. data/lib/adwords4r/v13/AdGroupServiceMappingRegistry.rb +47 -47
  27. data/lib/adwords4r/v13/AdService.rb +37 -37
  28. data/lib/adwords4r/v13/AdServiceDriver.rb +12 -10
  29. data/lib/adwords4r/v13/AdServiceMappingRegistry.rb +148 -148
  30. data/lib/adwords4r/v13/CampaignService.rb +46 -25
  31. data/lib/adwords4r/v13/CampaignServiceDriver.rb +23 -13
  32. data/lib/adwords4r/v13/CampaignServiceMappingRegistry.rb +169 -135
  33. data/lib/adwords4r/v13/CriterionService.rb +19 -19
  34. data/lib/adwords4r/v13/CriterionServiceDriver.rb +11 -9
  35. data/lib/adwords4r/v13/CriterionServiceMappingRegistry.rb +90 -90
  36. data/lib/adwords4r/v13/InfoService.rb +3 -3
  37. data/lib/adwords4r/v13/InfoServiceDriver.rb +10 -8
  38. data/lib/adwords4r/v13/InfoServiceMappingRegistry.rb +29 -29
  39. data/lib/adwords4r/v13/KeywordToolService.rb +10 -10
  40. data/lib/adwords4r/v13/KeywordToolServiceDriver.rb +4 -2
  41. data/lib/adwords4r/v13/KeywordToolServiceMappingRegistry.rb +37 -37
  42. data/lib/adwords4r/v13/ReportService.rb +13 -13
  43. data/lib/adwords4r/v13/ReportServiceDriver.rb +9 -7
  44. data/lib/adwords4r/v13/ReportServiceMappingRegistry.rb +54 -54
  45. data/lib/adwords4r/v13/SiteSuggestionService.rb +15 -15
  46. data/lib/adwords4r/v13/SiteSuggestionServiceDriver.rb +6 -4
  47. data/lib/adwords4r/v13/SiteSuggestionServiceMappingRegistry.rb +57 -57
  48. data/lib/adwords4r/v13/TrafficEstimatorService.rb +17 -17
  49. data/lib/adwords4r/v13/TrafficEstimatorServiceDriver.rb +6 -4
  50. data/lib/adwords4r/v13/TrafficEstimatorServiceMappingRegistry.rb +96 -96
  51. data/lib/adwords4r/v200902/AdGroupAdService.rb +2021 -0
  52. data/lib/adwords4r/v200902/AdGroupAdServiceDriver.rb +63 -0
  53. data/lib/adwords4r/v200902/AdGroupAdServiceMappingRegistry.rb +2234 -0
  54. data/lib/adwords4r/v200902/AdGroupCriterionService.rb +1209 -0
  55. data/lib/adwords4r/v200902/AdGroupCriterionServiceDriver.rb +63 -0
  56. data/lib/adwords4r/v200902/AdGroupCriterionServiceMappingRegistry.rb +1434 -0
  57. data/lib/adwords4r/v200902/AdGroupService.rb +968 -0
  58. data/lib/adwords4r/{v12/KeywordToolServiceDriver.rb → v200902/AdGroupServiceDriver.rb} +15 -13
  59. data/lib/adwords4r/v200902/AdGroupServiceMappingRegistry.rb +1114 -0
  60. data/lib/adwords4r/v200902/CampaignCriterionService.rb +741 -0
  61. data/lib/adwords4r/v200902/CampaignCriterionServiceDriver.rb +63 -0
  62. data/lib/adwords4r/v200902/CampaignCriterionServiceMappingRegistry.rb +904 -0
  63. data/lib/adwords4r/v200902/CampaignService.rb +1249 -0
  64. data/lib/adwords4r/v200902/CampaignServiceDriver.rb +63 -0
  65. data/lib/adwords4r/v200902/CampaignServiceMappingRegistry.rb +1466 -0
  66. data/lib/adwords4r/v200902/CampaignTargetService.rb +1156 -0
  67. data/lib/adwords4r/v200902/CampaignTargetServiceDriver.rb +63 -0
  68. data/lib/adwords4r/v200902/CampaignTargetServiceMappingRegistry.rb +1304 -0
  69. data/setup.rb +0 -0
  70. metadata +57 -65
  71. data/lib/adwords4r/v12/AccountService.rb +0 -215
  72. data/lib/adwords4r/v12/AccountServiceDriver.rb +0 -69
  73. data/lib/adwords4r/v12/AccountServiceMappingRegistry.rb +0 -243
  74. data/lib/adwords4r/v12/AdGroupService.rb +0 -263
  75. data/lib/adwords4r/v12/AdGroupServiceDriver.rb +0 -109
  76. data/lib/adwords4r/v12/AdGroupServiceMappingRegistry.rb +0 -280
  77. data/lib/adwords4r/v12/AdService.rb +0 -769
  78. data/lib/adwords4r/v12/AdServiceDriver.rb +0 -125
  79. data/lib/adwords4r/v12/AdServiceMappingRegistry.rb +0 -813
  80. data/lib/adwords4r/v12/CampaignService.rb +0 -498
  81. data/lib/adwords4r/v12/CampaignServiceDriver.rb +0 -133
  82. data/lib/adwords4r/v12/CampaignServiceMappingRegistry.rb +0 -642
  83. data/lib/adwords4r/v12/CriterionService.rb +0 -445
  84. data/lib/adwords4r/v12/CriterionServiceDriver.rb +0 -117
  85. data/lib/adwords4r/v12/CriterionServiceMappingRegistry.rb +0 -509
  86. data/lib/adwords4r/v12/InfoService.rb +0 -242
  87. data/lib/adwords4r/v12/InfoServiceDriver.rb +0 -109
  88. data/lib/adwords4r/v12/InfoServiceMappingRegistry.rb +0 -228
  89. data/lib/adwords4r/v12/KeywordToolService.rb +0 -205
  90. data/lib/adwords4r/v12/KeywordToolServiceMappingRegistry.rb +0 -227
  91. data/lib/adwords4r/v12/ReportService.rb +0 -322
  92. data/lib/adwords4r/v12/ReportServiceDriver.rb +0 -101
  93. data/lib/adwords4r/v12/ReportServiceMappingRegistry.rb +0 -298
  94. data/lib/adwords4r/v12/SiteSuggestionService.rb +0 -242
  95. data/lib/adwords4r/v12/SiteSuggestionServiceDriver.rb +0 -77
  96. data/lib/adwords4r/v12/SiteSuggestionServiceMappingRegistry.rb +0 -271
  97. data/lib/adwords4r/v12/TrafficEstimatorService.rb +0 -312
  98. data/lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb +0 -77
  99. data/lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb +0 -483
@@ -1,109 +0,0 @@
1
- require 'adwords4r/v12/AdGroupService'
2
- require 'adwords4r/v12/AdGroupServiceMappingRegistry'
3
- require 'soap/rpc/driver'
4
-
5
- module AdWords
6
- module AdGroupService
7
-
8
- class AdGroupInterface < ::SOAP::RPC::Driver
9
- DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v12/AdGroupService"
10
-
11
- Methods = [
12
- [ "",
13
- "addAdGroup",
14
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "addAdGroup"]],
15
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "addAdGroupResponse"]] ],
16
- { :request_style => :document, :request_use => :literal,
17
- :response_style => :document, :response_use => :literal,
18
- :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
19
- ],
20
- [ "",
21
- "addAdGroupList",
22
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "addAdGroupList"]],
23
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "addAdGroupListResponse"]] ],
24
- { :request_style => :document, :request_use => :literal,
25
- :response_style => :document, :response_use => :literal,
26
- :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
27
- ],
28
- [ "",
29
- "getAdGroup",
30
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAdGroup"]],
31
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAdGroupResponse"]] ],
32
- { :request_style => :document, :request_use => :literal,
33
- :response_style => :document, :response_use => :literal,
34
- :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
35
- ],
36
- [ "",
37
- "getAdGroupList",
38
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAdGroupList"]],
39
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAdGroupListResponse"]] ],
40
- { :request_style => :document, :request_use => :literal,
41
- :response_style => :document, :response_use => :literal,
42
- :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
43
- ],
44
- [ "",
45
- "getAdGroupStats",
46
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAdGroupStats"]],
47
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAdGroupStatsResponse"]] ],
48
- { :request_style => :document, :request_use => :literal,
49
- :response_style => :document, :response_use => :literal,
50
- :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
51
- ],
52
- [ "",
53
- "getAllAdGroups",
54
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAllAdGroups"]],
55
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "getAllAdGroupsResponse"]] ],
56
- { :request_style => :document, :request_use => :literal,
57
- :response_style => :document, :response_use => :literal,
58
- :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
59
- ],
60
- [ "",
61
- "updateAdGroup",
62
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "updateAdGroup"]],
63
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "updateAdGroupResponse"]] ],
64
- { :request_style => :document, :request_use => :literal,
65
- :response_style => :document, :response_use => :literal,
66
- :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
67
- ],
68
- [ "",
69
- "updateAdGroupList",
70
- [ ["in", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "updateAdGroupList"]],
71
- ["out", "parameters", ["::SOAP::SOAPElement", "https://adwords.google.com/api/adwords/v12", "updateAdGroupListResponse"]] ],
72
- { :request_style => :document, :request_use => :literal,
73
- :response_style => :document, :response_use => :literal,
74
- :faults => {"AdWords::AdGroupService::ApiException"=>{:encodingstyle=>"document", :name=>"ApiException", :namespace=>nil, :ns=>"https://adwords.google.com/api/adwords/v12", :use=>"literal"}} }
75
- ]
76
- ]
77
-
78
- def initialize(endpoint_url = nil)
79
- endpoint_url ||= DefaultEndpointUrl
80
- super(endpoint_url, nil)
81
- self.mapping_registry = DefaultMappingRegistry::EncodedRegistry
82
- self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
83
- init_methods
84
- end
85
-
86
- private
87
-
88
- def init_methods
89
- Methods.each do |definitions|
90
- opt = definitions.last
91
- if opt[:request_style] == :document
92
- add_document_operation(*definitions)
93
- else
94
- add_rpc_operation(*definitions)
95
- qname = definitions[0]
96
- name = definitions[2]
97
- if qname.name != name and qname.name.capitalize == name.capitalize
98
- ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg|
99
- __send__(name, *arg)
100
- end
101
- end
102
- end
103
- end
104
- end
105
- end
106
-
107
-
108
- end
109
- end
@@ -1,280 +0,0 @@
1
- require 'adwords4r/v12/AdGroupService'
2
- require 'soap/mapping'
3
-
4
- module AdWords; module AdGroupService
5
-
6
- module DefaultMappingRegistry
7
- EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
8
- LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
9
- NsV12 = "https://adwords.google.com/api/adwords/v12"
10
-
11
- EncodedRegistry.register(
12
- :class => AdWords::AdGroupService::AdGroup,
13
- :schema_type => XSD::QName.new(NsV12, "AdGroup"),
14
- :schema_element => [
15
- ["campaignId", "SOAP::SOAPInt"],
16
- ["id", "SOAP::SOAPLong"],
17
- ["keywordContentMaxCpc", "SOAP::SOAPLong", [0, 1]],
18
- ["keywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
19
- ["maxCpa", "SOAP::SOAPLong", [0, 1]],
20
- ["name", "SOAP::SOAPString"],
21
- ["proxyKeywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
22
- ["siteMaxCpc", "SOAP::SOAPLong", [0, 1]],
23
- ["siteMaxCpm", "SOAP::SOAPLong", [0, 1]],
24
- ["status", "AdWords::AdGroupService::AdGroupStatus", [0, 1]]
25
- ]
26
- )
27
-
28
- EncodedRegistry.register(
29
- :class => AdWords::AdGroupService::ApiError,
30
- :schema_type => XSD::QName.new(NsV12, "ApiError"),
31
- :schema_element => [
32
- ["code", "SOAP::SOAPInt"],
33
- ["detail", "SOAP::SOAPString"],
34
- ["field", "SOAP::SOAPString", [0, 1]],
35
- ["index", "SOAP::SOAPInt"],
36
- ["isExemptable", "SOAP::SOAPBoolean"],
37
- ["textIndex", "SOAP::SOAPInt", [0, 1]],
38
- ["textLength", "SOAP::SOAPInt", [0, 1]],
39
- ["trigger", "SOAP::SOAPString", [0, 1]]
40
- ]
41
- )
42
-
43
- EncodedRegistry.register(
44
- :class => AdWords::AdGroupService::ApiException,
45
- :schema_type => XSD::QName.new(NsV12, "ApiException"),
46
- :schema_element => [
47
- ["code", "SOAP::SOAPInt"],
48
- ["errors", "AdWords::AdGroupService::ApiError[]", [1, nil]],
49
- ["internal", "SOAP::SOAPBoolean"],
50
- ["message", "SOAP::SOAPString"],
51
- ["trigger", "SOAP::SOAPString"]
52
- ]
53
- )
54
-
55
- EncodedRegistry.register(
56
- :class => AdWords::AdGroupService::StatsRecord,
57
- :schema_type => XSD::QName.new(NsV12, "StatsRecord"),
58
- :schema_element => [
59
- ["averagePosition", "SOAP::SOAPDouble"],
60
- ["clicks", "SOAP::SOAPLong"],
61
- ["conversionRate", "SOAP::SOAPDouble"],
62
- ["conversions", "SOAP::SOAPLong"],
63
- ["cost", "SOAP::SOAPLong"],
64
- ["id", "SOAP::SOAPLong"],
65
- ["impressions", "SOAP::SOAPLong"]
66
- ]
67
- )
68
-
69
- EncodedRegistry.register(
70
- :class => AdWords::AdGroupService::AdGroupStatus,
71
- :schema_type => XSD::QName.new(NsV12, "AdGroupStatus")
72
- )
73
-
74
- LiteralRegistry.register(
75
- :class => AdWords::AdGroupService::AdGroup,
76
- :schema_type => XSD::QName.new(NsV12, "AdGroup"),
77
- :schema_element => [
78
- ["campaignId", "SOAP::SOAPInt"],
79
- ["id", "SOAP::SOAPLong"],
80
- ["keywordContentMaxCpc", "SOAP::SOAPLong", [0, 1]],
81
- ["keywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
82
- ["maxCpa", "SOAP::SOAPLong", [0, 1]],
83
- ["name", "SOAP::SOAPString"],
84
- ["proxyKeywordMaxCpc", "SOAP::SOAPLong", [0, 1]],
85
- ["siteMaxCpc", "SOAP::SOAPLong", [0, 1]],
86
- ["siteMaxCpm", "SOAP::SOAPLong", [0, 1]],
87
- ["status", "AdWords::AdGroupService::AdGroupStatus", [0, 1]]
88
- ]
89
- )
90
-
91
- LiteralRegistry.register(
92
- :class => AdWords::AdGroupService::ApiError,
93
- :schema_type => XSD::QName.new(NsV12, "ApiError"),
94
- :schema_element => [
95
- ["code", "SOAP::SOAPInt"],
96
- ["detail", "SOAP::SOAPString"],
97
- ["field", "SOAP::SOAPString", [0, 1]],
98
- ["index", "SOAP::SOAPInt"],
99
- ["isExemptable", "SOAP::SOAPBoolean"],
100
- ["textIndex", "SOAP::SOAPInt", [0, 1]],
101
- ["textLength", "SOAP::SOAPInt", [0, 1]],
102
- ["trigger", "SOAP::SOAPString", [0, 1]]
103
- ]
104
- )
105
-
106
- LiteralRegistry.register(
107
- :class => AdWords::AdGroupService::ApiException,
108
- :schema_type => XSD::QName.new(NsV12, "ApiException"),
109
- :schema_element => [
110
- ["code", "SOAP::SOAPInt"],
111
- ["errors", "AdWords::AdGroupService::ApiError[]", [1, nil]],
112
- ["internal", "SOAP::SOAPBoolean"],
113
- ["message", "SOAP::SOAPString"],
114
- ["trigger", "SOAP::SOAPString"]
115
- ]
116
- )
117
-
118
- LiteralRegistry.register(
119
- :class => AdWords::AdGroupService::StatsRecord,
120
- :schema_type => XSD::QName.new(NsV12, "StatsRecord"),
121
- :schema_element => [
122
- ["averagePosition", "SOAP::SOAPDouble"],
123
- ["clicks", "SOAP::SOAPLong"],
124
- ["conversionRate", "SOAP::SOAPDouble"],
125
- ["conversions", "SOAP::SOAPLong"],
126
- ["cost", "SOAP::SOAPLong"],
127
- ["id", "SOAP::SOAPLong"],
128
- ["impressions", "SOAP::SOAPLong"]
129
- ]
130
- )
131
-
132
- LiteralRegistry.register(
133
- :class => AdWords::AdGroupService::AdGroupStatus,
134
- :schema_type => XSD::QName.new(NsV12, "AdGroupStatus")
135
- )
136
-
137
- LiteralRegistry.register(
138
- :class => AdWords::AdGroupService::AddAdGroup,
139
- :schema_name => XSD::QName.new(NsV12, "addAdGroup"),
140
- :schema_element => [
141
- ["campaignID", "SOAP::SOAPInt"],
142
- ["newData", "AdWords::AdGroupService::AdGroup"]
143
- ]
144
- )
145
-
146
- LiteralRegistry.register(
147
- :class => AdWords::AdGroupService::AddAdGroupList,
148
- :schema_name => XSD::QName.new(NsV12, "addAdGroupList"),
149
- :schema_element => [
150
- ["campaignID", "SOAP::SOAPInt"],
151
- ["newData", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
152
- ]
153
- )
154
-
155
- LiteralRegistry.register(
156
- :class => AdWords::AdGroupService::AddAdGroupListResponse,
157
- :schema_name => XSD::QName.new(NsV12, "addAdGroupListResponse"),
158
- :schema_element => [
159
- ["addAdGroupListReturn", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
160
- ]
161
- )
162
-
163
- LiteralRegistry.register(
164
- :class => AdWords::AdGroupService::AddAdGroupResponse,
165
- :schema_name => XSD::QName.new(NsV12, "addAdGroupResponse"),
166
- :schema_element => [
167
- ["addAdGroupReturn", "AdWords::AdGroupService::AdGroup"]
168
- ]
169
- )
170
-
171
- LiteralRegistry.register(
172
- :class => AdWords::AdGroupService::ApiException,
173
- :schema_name => XSD::QName.new(NsV12, "fault"),
174
- :schema_element => [
175
- ["code", "SOAP::SOAPInt"],
176
- ["errors", "AdWords::AdGroupService::ApiError[]", [1, nil]],
177
- ["internal", "SOAP::SOAPBoolean"],
178
- ["message", "SOAP::SOAPString"],
179
- ["trigger", "SOAP::SOAPString"]
180
- ]
181
- )
182
-
183
- LiteralRegistry.register(
184
- :class => AdWords::AdGroupService::GetAdGroup,
185
- :schema_name => XSD::QName.new(NsV12, "getAdGroup"),
186
- :schema_element => [
187
- ["adGroupId", "SOAP::SOAPLong"]
188
- ]
189
- )
190
-
191
- LiteralRegistry.register(
192
- :class => AdWords::AdGroupService::GetAdGroupList,
193
- :schema_name => XSD::QName.new(NsV12, "getAdGroupList"),
194
- :schema_element => [
195
- ["adgroupIDs", "SOAP::SOAPLong[]", [1, nil]]
196
- ]
197
- )
198
-
199
- LiteralRegistry.register(
200
- :class => AdWords::AdGroupService::GetAdGroupListResponse,
201
- :schema_name => XSD::QName.new(NsV12, "getAdGroupListResponse"),
202
- :schema_element => [
203
- ["getAdGroupListReturn", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
204
- ]
205
- )
206
-
207
- LiteralRegistry.register(
208
- :class => AdWords::AdGroupService::GetAdGroupResponse,
209
- :schema_name => XSD::QName.new(NsV12, "getAdGroupResponse"),
210
- :schema_element => [
211
- ["getAdGroupReturn", "AdWords::AdGroupService::AdGroup"]
212
- ]
213
- )
214
-
215
- LiteralRegistry.register(
216
- :class => AdWords::AdGroupService::GetAdGroupStats,
217
- :schema_name => XSD::QName.new(NsV12, "getAdGroupStats"),
218
- :schema_element => [
219
- ["campaignId", "SOAP::SOAPInt"],
220
- ["adGroupIds", "SOAP::SOAPLong[]", [1, nil]],
221
- ["startDay", "SOAP::SOAPDate"],
222
- ["endDay", "SOAP::SOAPDate"]
223
- ]
224
- )
225
-
226
- LiteralRegistry.register(
227
- :class => AdWords::AdGroupService::GetAdGroupStatsResponse,
228
- :schema_name => XSD::QName.new(NsV12, "getAdGroupStatsResponse"),
229
- :schema_element => [
230
- ["getAdGroupStatsReturn", "AdWords::AdGroupService::StatsRecord[]", [1, nil]]
231
- ]
232
- )
233
-
234
- LiteralRegistry.register(
235
- :class => AdWords::AdGroupService::GetAllAdGroups,
236
- :schema_name => XSD::QName.new(NsV12, "getAllAdGroups"),
237
- :schema_element => [
238
- ["campaignID", "SOAP::SOAPInt"]
239
- ]
240
- )
241
-
242
- LiteralRegistry.register(
243
- :class => AdWords::AdGroupService::GetAllAdGroupsResponse,
244
- :schema_name => XSD::QName.new(NsV12, "getAllAdGroupsResponse"),
245
- :schema_element => [
246
- ["getAllAdGroupsReturn", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
247
- ]
248
- )
249
-
250
- LiteralRegistry.register(
251
- :class => AdWords::AdGroupService::UpdateAdGroup,
252
- :schema_name => XSD::QName.new(NsV12, "updateAdGroup"),
253
- :schema_element => [
254
- ["changedData", "AdWords::AdGroupService::AdGroup"]
255
- ]
256
- )
257
-
258
- LiteralRegistry.register(
259
- :class => AdWords::AdGroupService::UpdateAdGroupList,
260
- :schema_name => XSD::QName.new(NsV12, "updateAdGroupList"),
261
- :schema_element => [
262
- ["changedData", "AdWords::AdGroupService::AdGroup[]", [1, nil]]
263
- ]
264
- )
265
-
266
- LiteralRegistry.register(
267
- :class => AdWords::AdGroupService::UpdateAdGroupListResponse,
268
- :schema_name => XSD::QName.new(NsV12, "updateAdGroupListResponse"),
269
- :schema_element => []
270
- )
271
-
272
- LiteralRegistry.register(
273
- :class => AdWords::AdGroupService::UpdateAdGroupResponse,
274
- :schema_name => XSD::QName.new(NsV12, "updateAdGroupResponse"),
275
- :schema_element => []
276
- )
277
-
278
- end
279
-
280
- end; end
@@ -1,769 +0,0 @@
1
- require 'xsd/qname'
2
-
3
- module AdWords; module AdService
4
-
5
-
6
- # {https://adwords.google.com/api/adwords/v12}Ad
7
- # abstract
8
- # adGroupId - SOAP::SOAPLong
9
- # adType - AdWords::AdService::AdType
10
- # destinationUrl - SOAP::SOAPString
11
- # disapproved - SOAP::SOAPBoolean
12
- # displayUrl - SOAP::SOAPString
13
- # exemptionRequest - SOAP::SOAPString
14
- # id - SOAP::SOAPLong
15
- # status - AdWords::AdService::AdStatus
16
- class Ad
17
- attr_accessor :adGroupId
18
- attr_accessor :adType
19
- attr_accessor :destinationUrl
20
- attr_accessor :disapproved
21
- attr_accessor :displayUrl
22
- attr_accessor :exemptionRequest
23
- attr_accessor :id
24
- attr_accessor :status
25
-
26
- def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil)
27
- @adGroupId = adGroupId
28
- @adType = adType
29
- @destinationUrl = destinationUrl
30
- @disapproved = disapproved
31
- @displayUrl = displayUrl
32
- @exemptionRequest = exemptionRequest
33
- @id = id
34
- @status = status
35
- end
36
- end
37
-
38
- # {https://adwords.google.com/api/adwords/v12}CommerceAd
39
- # adGroupId - SOAP::SOAPLong
40
- # adType - AdWords::AdService::AdType
41
- # destinationUrl - SOAP::SOAPString
42
- # disapproved - SOAP::SOAPBoolean
43
- # displayUrl - SOAP::SOAPString
44
- # exemptionRequest - SOAP::SOAPString
45
- # id - SOAP::SOAPLong
46
- # status - AdWords::AdService::AdStatus
47
- # description1 - SOAP::SOAPString
48
- # description2 - SOAP::SOAPString
49
- # headline - SOAP::SOAPString
50
- # postPriceAnnotation - SOAP::SOAPString
51
- # prePriceAnnotation - SOAP::SOAPString
52
- # priceString - SOAP::SOAPString
53
- # productImage - AdWords::AdService::Image
54
- class CommerceAd < Ad
55
- attr_accessor :adGroupId
56
- attr_accessor :adType
57
- attr_accessor :destinationUrl
58
- attr_accessor :disapproved
59
- attr_accessor :displayUrl
60
- attr_accessor :exemptionRequest
61
- attr_accessor :id
62
- attr_accessor :status
63
- attr_accessor :description1
64
- attr_accessor :description2
65
- attr_accessor :headline
66
- attr_accessor :postPriceAnnotation
67
- attr_accessor :prePriceAnnotation
68
- attr_accessor :priceString
69
- attr_accessor :productImage
70
-
71
- def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, description1 = nil, description2 = nil, headline = nil, postPriceAnnotation = nil, prePriceAnnotation = nil, priceString = nil, productImage = nil)
72
- @adGroupId = adGroupId
73
- @adType = adType
74
- @destinationUrl = destinationUrl
75
- @disapproved = disapproved
76
- @displayUrl = displayUrl
77
- @exemptionRequest = exemptionRequest
78
- @id = id
79
- @status = status
80
- @description1 = description1
81
- @description2 = description2
82
- @headline = headline
83
- @postPriceAnnotation = postPriceAnnotation
84
- @prePriceAnnotation = prePriceAnnotation
85
- @priceString = priceString
86
- @productImage = productImage
87
- end
88
- end
89
-
90
- # {https://adwords.google.com/api/adwords/v12}ImageAd
91
- # adGroupId - SOAP::SOAPLong
92
- # adType - AdWords::AdService::AdType
93
- # destinationUrl - SOAP::SOAPString
94
- # disapproved - SOAP::SOAPBoolean
95
- # displayUrl - SOAP::SOAPString
96
- # exemptionRequest - SOAP::SOAPString
97
- # id - SOAP::SOAPLong
98
- # status - AdWords::AdService::AdStatus
99
- # image - AdWords::AdService::Image
100
- class ImageAd < Ad
101
- attr_accessor :adGroupId
102
- attr_accessor :adType
103
- attr_accessor :destinationUrl
104
- attr_accessor :disapproved
105
- attr_accessor :displayUrl
106
- attr_accessor :exemptionRequest
107
- attr_accessor :id
108
- attr_accessor :status
109
- attr_accessor :image
110
-
111
- def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, image = nil)
112
- @adGroupId = adGroupId
113
- @adType = adType
114
- @destinationUrl = destinationUrl
115
- @disapproved = disapproved
116
- @displayUrl = displayUrl
117
- @exemptionRequest = exemptionRequest
118
- @id = id
119
- @status = status
120
- @image = image
121
- end
122
- end
123
-
124
- # {https://adwords.google.com/api/adwords/v12}LocalBusinessAd
125
- # adGroupId - SOAP::SOAPLong
126
- # adType - AdWords::AdService::AdType
127
- # destinationUrl - SOAP::SOAPString
128
- # disapproved - SOAP::SOAPBoolean
129
- # displayUrl - SOAP::SOAPString
130
- # exemptionRequest - SOAP::SOAPString
131
- # id - SOAP::SOAPLong
132
- # status - AdWords::AdService::AdStatus
133
- # address - SOAP::SOAPString
134
- # businessImage - AdWords::AdService::Image
135
- # businessKey - SOAP::SOAPString
136
- # businessName - SOAP::SOAPString
137
- # city - SOAP::SOAPString
138
- # countryCode - SOAP::SOAPString
139
- # customIcon - AdWords::AdService::Image
140
- # customIconId - SOAP::SOAPLong
141
- # description1 - SOAP::SOAPString
142
- # description2 - SOAP::SOAPString
143
- # fullBusinessName - SOAP::SOAPString
144
- # latitude - SOAP::SOAPInt
145
- # longitude - SOAP::SOAPInt
146
- # phoneNumber - SOAP::SOAPString
147
- # postalCode - SOAP::SOAPString
148
- # region - SOAP::SOAPString
149
- # stockIcon - AdWords::AdService::StockIcon
150
- # targetRadiusInKm - SOAP::SOAPDouble
151
- class LocalBusinessAd < Ad
152
- attr_accessor :adGroupId
153
- attr_accessor :adType
154
- attr_accessor :destinationUrl
155
- attr_accessor :disapproved
156
- attr_accessor :displayUrl
157
- attr_accessor :exemptionRequest
158
- attr_accessor :id
159
- attr_accessor :status
160
- attr_accessor :address
161
- attr_accessor :businessImage
162
- attr_accessor :businessKey
163
- attr_accessor :businessName
164
- attr_accessor :city
165
- attr_accessor :countryCode
166
- attr_accessor :customIcon
167
- attr_accessor :customIconId
168
- attr_accessor :description1
169
- attr_accessor :description2
170
- attr_accessor :fullBusinessName
171
- attr_accessor :latitude
172
- attr_accessor :longitude
173
- attr_accessor :phoneNumber
174
- attr_accessor :postalCode
175
- attr_accessor :region
176
- attr_accessor :stockIcon
177
- attr_accessor :targetRadiusInKm
178
-
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)
180
- @adGroupId = adGroupId
181
- @adType = adType
182
- @destinationUrl = destinationUrl
183
- @disapproved = disapproved
184
- @displayUrl = displayUrl
185
- @exemptionRequest = exemptionRequest
186
- @id = id
187
- @status = status
188
- @address = address
189
- @businessImage = businessImage
190
- @businessKey = businessKey
191
- @businessName = businessName
192
- @city = city
193
- @countryCode = countryCode
194
- @customIcon = customIcon
195
- @customIconId = customIconId
196
- @description1 = description1
197
- @description2 = description2
198
- @fullBusinessName = fullBusinessName
199
- @latitude = latitude
200
- @longitude = longitude
201
- @phoneNumber = phoneNumber
202
- @postalCode = postalCode
203
- @region = region
204
- @stockIcon = stockIcon
205
- @targetRadiusInKm = targetRadiusInKm
206
- end
207
- end
208
-
209
- # {https://adwords.google.com/api/adwords/v12}MobileAd
210
- # adGroupId - SOAP::SOAPLong
211
- # adType - AdWords::AdService::AdType
212
- # destinationUrl - SOAP::SOAPString
213
- # disapproved - SOAP::SOAPBoolean
214
- # displayUrl - SOAP::SOAPString
215
- # exemptionRequest - SOAP::SOAPString
216
- # id - SOAP::SOAPLong
217
- # status - AdWords::AdService::AdStatus
218
- # businessName - SOAP::SOAPString
219
- # countryCode - SOAP::SOAPString
220
- # description - SOAP::SOAPString
221
- # headline - SOAP::SOAPString
222
- # markupLanguages - SOAP::SOAPString
223
- # mobileCarriers - SOAP::SOAPString
224
- # phoneNumber - SOAP::SOAPString
225
- class MobileAd < Ad
226
- attr_accessor :adGroupId
227
- attr_accessor :adType
228
- attr_accessor :destinationUrl
229
- attr_accessor :disapproved
230
- attr_accessor :displayUrl
231
- attr_accessor :exemptionRequest
232
- attr_accessor :id
233
- attr_accessor :status
234
- attr_accessor :businessName
235
- attr_accessor :countryCode
236
- attr_accessor :description
237
- attr_accessor :headline
238
- attr_accessor :markupLanguages
239
- attr_accessor :mobileCarriers
240
- attr_accessor :phoneNumber
241
-
242
- def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, businessName = nil, countryCode = nil, description = nil, headline = nil, markupLanguages = [], mobileCarriers = [], phoneNumber = nil)
243
- @adGroupId = adGroupId
244
- @adType = adType
245
- @destinationUrl = destinationUrl
246
- @disapproved = disapproved
247
- @displayUrl = displayUrl
248
- @exemptionRequest = exemptionRequest
249
- @id = id
250
- @status = status
251
- @businessName = businessName
252
- @countryCode = countryCode
253
- @description = description
254
- @headline = headline
255
- @markupLanguages = markupLanguages
256
- @mobileCarriers = mobileCarriers
257
- @phoneNumber = phoneNumber
258
- end
259
- end
260
-
261
- # {https://adwords.google.com/api/adwords/v12}TextAd
262
- # adGroupId - SOAP::SOAPLong
263
- # adType - AdWords::AdService::AdType
264
- # destinationUrl - SOAP::SOAPString
265
- # disapproved - SOAP::SOAPBoolean
266
- # displayUrl - SOAP::SOAPString
267
- # exemptionRequest - SOAP::SOAPString
268
- # id - SOAP::SOAPLong
269
- # status - AdWords::AdService::AdStatus
270
- # description1 - SOAP::SOAPString
271
- # description2 - SOAP::SOAPString
272
- # headline - SOAP::SOAPString
273
- class TextAd < Ad
274
- attr_accessor :adGroupId
275
- attr_accessor :adType
276
- attr_accessor :destinationUrl
277
- attr_accessor :disapproved
278
- attr_accessor :displayUrl
279
- attr_accessor :exemptionRequest
280
- attr_accessor :id
281
- attr_accessor :status
282
- attr_accessor :description1
283
- attr_accessor :description2
284
- attr_accessor :headline
285
-
286
- def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, description1 = nil, description2 = nil, headline = nil)
287
- @adGroupId = adGroupId
288
- @adType = adType
289
- @destinationUrl = destinationUrl
290
- @disapproved = disapproved
291
- @displayUrl = displayUrl
292
- @exemptionRequest = exemptionRequest
293
- @id = id
294
- @status = status
295
- @description1 = description1
296
- @description2 = description2
297
- @headline = headline
298
- end
299
- end
300
-
301
- # {https://adwords.google.com/api/adwords/v12}VideoAd
302
- # adGroupId - SOAP::SOAPLong
303
- # adType - AdWords::AdService::AdType
304
- # destinationUrl - SOAP::SOAPString
305
- # disapproved - SOAP::SOAPBoolean
306
- # displayUrl - SOAP::SOAPString
307
- # exemptionRequest - SOAP::SOAPString
308
- # id - SOAP::SOAPLong
309
- # status - AdWords::AdService::AdStatus
310
- # image - AdWords::AdService::Image
311
- # name - SOAP::SOAPString
312
- # video - AdWords::AdService::Video
313
- class VideoAd < Ad
314
- attr_accessor :adGroupId
315
- attr_accessor :adType
316
- attr_accessor :destinationUrl
317
- attr_accessor :disapproved
318
- attr_accessor :displayUrl
319
- attr_accessor :exemptionRequest
320
- attr_accessor :id
321
- attr_accessor :status
322
- attr_accessor :image
323
- attr_accessor :name
324
- attr_accessor :video
325
-
326
- def initialize(adGroupId = nil, adType = nil, destinationUrl = nil, disapproved = nil, displayUrl = nil, exemptionRequest = nil, id = nil, status = nil, image = nil, name = nil, video = nil)
327
- @adGroupId = adGroupId
328
- @adType = adType
329
- @destinationUrl = destinationUrl
330
- @disapproved = disapproved
331
- @displayUrl = displayUrl
332
- @exemptionRequest = exemptionRequest
333
- @id = id
334
- @status = status
335
- @image = image
336
- @name = name
337
- @video = video
338
- end
339
- end
340
-
341
- # {https://adwords.google.com/api/adwords/v12}ApiError
342
- # code - SOAP::SOAPInt
343
- # detail - SOAP::SOAPString
344
- # field - SOAP::SOAPString
345
- # index - SOAP::SOAPInt
346
- # isExemptable - SOAP::SOAPBoolean
347
- # textIndex - SOAP::SOAPInt
348
- # textLength - SOAP::SOAPInt
349
- # trigger - SOAP::SOAPString
350
- class ApiError
351
- attr_accessor :code
352
- attr_accessor :detail
353
- attr_accessor :field
354
- attr_accessor :index
355
- attr_accessor :isExemptable
356
- attr_accessor :textIndex
357
- attr_accessor :textLength
358
- attr_accessor :trigger
359
-
360
- def initialize(code = nil, detail = nil, field = nil, index = nil, isExemptable = nil, textIndex = nil, textLength = nil, trigger = nil)
361
- @code = code
362
- @detail = detail
363
- @field = field
364
- @index = index
365
- @isExemptable = isExemptable
366
- @textIndex = textIndex
367
- @textLength = textLength
368
- @trigger = trigger
369
- end
370
- end
371
-
372
- # {https://adwords.google.com/api/adwords/v12}ApiException
373
- # code - SOAP::SOAPInt
374
- # errors - AdWords::AdService::ApiError
375
- # internal - SOAP::SOAPBoolean
376
- # message - SOAP::SOAPString
377
- # trigger - SOAP::SOAPString
378
- class ApiException
379
- attr_accessor :code
380
- attr_accessor :errors
381
- attr_accessor :internal
382
- attr_accessor :message
383
- attr_accessor :trigger
384
-
385
- def initialize(code = nil, errors = [], internal = nil, message = nil, trigger = nil)
386
- @code = code
387
- @errors = errors
388
- @internal = internal
389
- @message = message
390
- @trigger = trigger
391
- end
392
- end
393
-
394
- # {https://adwords.google.com/api/adwords/v12}Business
395
- # address - SOAP::SOAPString
396
- # city - SOAP::SOAPString
397
- # countryCode - SOAP::SOAPString
398
- # key - SOAP::SOAPString
399
- # latitude - SOAP::SOAPString
400
- # longitude - SOAP::SOAPString
401
- # name - SOAP::SOAPString
402
- # phoneNumber - SOAP::SOAPString
403
- # postalCode - SOAP::SOAPString
404
- # region - SOAP::SOAPString
405
- # timestamp - SOAP::SOAPLong
406
- class Business
407
- attr_accessor :address
408
- attr_accessor :city
409
- attr_accessor :countryCode
410
- attr_accessor :key
411
- attr_accessor :latitude
412
- attr_accessor :longitude
413
- attr_accessor :name
414
- attr_accessor :phoneNumber
415
- attr_accessor :postalCode
416
- attr_accessor :region
417
- attr_accessor :timestamp
418
-
419
- def initialize(address = nil, city = nil, countryCode = nil, key = nil, latitude = nil, longitude = nil, name = nil, phoneNumber = nil, postalCode = nil, region = nil, timestamp = nil)
420
- @address = address
421
- @city = city
422
- @countryCode = countryCode
423
- @key = key
424
- @latitude = latitude
425
- @longitude = longitude
426
- @name = name
427
- @phoneNumber = phoneNumber
428
- @postalCode = postalCode
429
- @region = region
430
- @timestamp = timestamp
431
- end
432
- end
433
-
434
- # {https://adwords.google.com/api/adwords/v12}Circle
435
- # latitudeMicroDegrees - SOAP::SOAPInt
436
- # longitudeMicroDegrees - SOAP::SOAPInt
437
- # radiusMeters - SOAP::SOAPInt
438
- class Circle
439
- attr_accessor :latitudeMicroDegrees
440
- attr_accessor :longitudeMicroDegrees
441
- attr_accessor :radiusMeters
442
-
443
- def initialize(latitudeMicroDegrees = nil, longitudeMicroDegrees = nil, radiusMeters = nil)
444
- @latitudeMicroDegrees = latitudeMicroDegrees
445
- @longitudeMicroDegrees = longitudeMicroDegrees
446
- @radiusMeters = radiusMeters
447
- end
448
- end
449
-
450
- # {https://adwords.google.com/api/adwords/v12}CityTargets
451
- class CityTargets < ::Array
452
- end
453
-
454
- # {https://adwords.google.com/api/adwords/v12}CountryTargets
455
- class CountryTargets < ::Array
456
- end
457
-
458
- # {https://adwords.google.com/api/adwords/v12}GeoTarget
459
- # cityTargets - AdWords::AdService::CityTargets
460
- # countryTargets - AdWords::AdService::CountryTargets
461
- # metroTargets - AdWords::AdService::MetroTargets
462
- # proximityTargets - AdWords::AdService::ProximityTargets
463
- # regionTargets - AdWords::AdService::RegionTargets
464
- # targetAll - SOAP::SOAPBoolean
465
- class GeoTarget
466
- attr_accessor :cityTargets
467
- attr_accessor :countryTargets
468
- attr_accessor :metroTargets
469
- attr_accessor :proximityTargets
470
- attr_accessor :regionTargets
471
- attr_accessor :targetAll
472
-
473
- def initialize(cityTargets = nil, countryTargets = nil, metroTargets = nil, proximityTargets = nil, regionTargets = nil, targetAll = nil)
474
- @cityTargets = cityTargets
475
- @countryTargets = countryTargets
476
- @metroTargets = metroTargets
477
- @proximityTargets = proximityTargets
478
- @regionTargets = regionTargets
479
- @targetAll = targetAll
480
- end
481
- end
482
-
483
- # {https://adwords.google.com/api/adwords/v12}Image
484
- # data - SOAP::SOAPBase64
485
- # height - SOAP::SOAPInt
486
- # imageUrl - SOAP::SOAPString
487
- # mimeType - SOAP::SOAPString
488
- # name - SOAP::SOAPString
489
- # shrunkenUrl - SOAP::SOAPString
490
- # thumbnailUrl - SOAP::SOAPString
491
- # type - AdWords::AdService::ImageType
492
- # width - SOAP::SOAPInt
493
- class Image
494
- attr_accessor :data
495
- attr_accessor :height
496
- attr_accessor :imageUrl
497
- attr_accessor :mimeType
498
- attr_accessor :name
499
- attr_accessor :shrunkenUrl
500
- attr_accessor :thumbnailUrl
501
- attr_accessor :type
502
- attr_accessor :width
503
-
504
- def initialize(data = nil, height = nil, imageUrl = nil, mimeType = nil, name = nil, shrunkenUrl = nil, thumbnailUrl = nil, type = nil, width = nil)
505
- @data = data
506
- @height = height
507
- @imageUrl = imageUrl
508
- @mimeType = mimeType
509
- @name = name
510
- @shrunkenUrl = shrunkenUrl
511
- @thumbnailUrl = thumbnailUrl
512
- @type = type
513
- @width = width
514
- end
515
- end
516
-
517
- # {https://adwords.google.com/api/adwords/v12}LanguageTarget
518
- class LanguageTarget < ::Array
519
- end
520
-
521
- # {https://adwords.google.com/api/adwords/v12}MetroTargets
522
- class MetroTargets < ::Array
523
- end
524
-
525
- # {https://adwords.google.com/api/adwords/v12}ProximityTargets
526
- class ProximityTargets < ::Array
527
- end
528
-
529
- # {https://adwords.google.com/api/adwords/v12}RegionTargets
530
- class RegionTargets < ::Array
531
- end
532
-
533
- # {https://adwords.google.com/api/adwords/v12}StatsRecord
534
- # averagePosition - SOAP::SOAPDouble
535
- # clicks - SOAP::SOAPLong
536
- # conversionRate - SOAP::SOAPDouble
537
- # conversions - SOAP::SOAPLong
538
- # cost - SOAP::SOAPLong
539
- # id - SOAP::SOAPLong
540
- # impressions - SOAP::SOAPLong
541
- class StatsRecord
542
- attr_accessor :averagePosition
543
- attr_accessor :clicks
544
- attr_accessor :conversionRate
545
- attr_accessor :conversions
546
- attr_accessor :cost
547
- attr_accessor :id
548
- attr_accessor :impressions
549
-
550
- def initialize(averagePosition = nil, clicks = nil, conversionRate = nil, conversions = nil, cost = nil, id = nil, impressions = nil)
551
- @averagePosition = averagePosition
552
- @clicks = clicks
553
- @conversionRate = conversionRate
554
- @conversions = conversions
555
- @cost = cost
556
- @id = id
557
- @impressions = impressions
558
- end
559
- end
560
-
561
- # {https://adwords.google.com/api/adwords/v12}Video
562
- # duration - SOAP::SOAPLong
563
- # filename - SOAP::SOAPString
564
- # preview - SOAP::SOAPString
565
- # title - SOAP::SOAPString
566
- # videoId - SOAP::SOAPLong
567
- class Video
568
- attr_accessor :duration
569
- attr_accessor :filename
570
- attr_accessor :preview
571
- attr_accessor :title
572
- attr_accessor :videoId
573
-
574
- def initialize(duration = nil, filename = nil, preview = nil, title = nil, videoId = nil)
575
- @duration = duration
576
- @filename = filename
577
- @preview = preview
578
- @title = title
579
- @videoId = videoId
580
- end
581
- end
582
-
583
- # {https://adwords.google.com/api/adwords/v12}AdStatus
584
- class AdStatus < ::String
585
- Disabled = AdStatus.new("Disabled")
586
- Enabled = AdStatus.new("Enabled")
587
- Paused = AdStatus.new("Paused")
588
- end
589
-
590
- # {https://adwords.google.com/api/adwords/v12}AdType
591
- class AdType < ::String
592
- CommerceAd = AdType.new("CommerceAd")
593
- ImageAd = AdType.new("ImageAd")
594
- LocalBusinessAd = AdType.new("LocalBusinessAd")
595
- MobileAd = AdType.new("MobileAd")
596
- TextAd = AdType.new("TextAd")
597
- VideoAd = AdType.new("VideoAd")
598
- end
599
-
600
- # {https://adwords.google.com/api/adwords/v12}ImageType
601
- class ImageType < ::String
602
- DynamicImage = ImageType.new("dynamicImage")
603
- Flash = ImageType.new("flash")
604
- Image = ImageType.new("image")
605
- end
606
-
607
- # {https://adwords.google.com/api/adwords/v12}StockIcon
608
- class StockIcon < ::String
609
- Standard_1 = StockIcon.new("Standard_1")
610
- Standard_10 = StockIcon.new("Standard_10")
611
- Standard_11 = StockIcon.new("Standard_11")
612
- Standard_12 = StockIcon.new("Standard_12")
613
- Standard_13 = StockIcon.new("Standard_13")
614
- Standard_14 = StockIcon.new("Standard_14")
615
- Standard_15 = StockIcon.new("Standard_15")
616
- Standard_16 = StockIcon.new("Standard_16")
617
- Standard_17 = StockIcon.new("Standard_17")
618
- Standard_2 = StockIcon.new("Standard_2")
619
- Standard_3 = StockIcon.new("Standard_3")
620
- Standard_4 = StockIcon.new("Standard_4")
621
- Standard_5 = StockIcon.new("Standard_5")
622
- Standard_6 = StockIcon.new("Standard_6")
623
- Standard_7 = StockIcon.new("Standard_7")
624
- Standard_8 = StockIcon.new("Standard_8")
625
- Standard_9 = StockIcon.new("Standard_9")
626
- end
627
-
628
- # {https://adwords.google.com/api/adwords/v12}addAds
629
- class AddAds < ::Array
630
- end
631
-
632
- # {https://adwords.google.com/api/adwords/v12}addAdsResponse
633
- class AddAdsResponse < ::Array
634
- end
635
-
636
- # {https://adwords.google.com/api/adwords/v12}checkAds
637
- # ads - AdWords::AdService::Ad
638
- # languageTarget - AdWords::AdService::LanguageTarget
639
- # geoTarget - AdWords::AdService::GeoTarget
640
- class CheckAds
641
- attr_accessor :ads
642
- attr_accessor :languageTarget
643
- attr_accessor :geoTarget
644
-
645
- def initialize(ads = [], languageTarget = nil, geoTarget = nil)
646
- @ads = ads
647
- @languageTarget = languageTarget
648
- @geoTarget = geoTarget
649
- end
650
- end
651
-
652
- # {https://adwords.google.com/api/adwords/v12}checkAdsResponse
653
- class CheckAdsResponse < ::Array
654
- end
655
-
656
- # {https://adwords.google.com/api/adwords/v12}findBusinesses
657
- # name - SOAP::SOAPString
658
- # address - SOAP::SOAPString
659
- # countryCode - SOAP::SOAPString
660
- class FindBusinesses
661
- attr_accessor :name
662
- attr_accessor :address
663
- attr_accessor :countryCode
664
-
665
- def initialize(name = nil, address = nil, countryCode = nil)
666
- @name = name
667
- @address = address
668
- @countryCode = countryCode
669
- end
670
- end
671
-
672
- # {https://adwords.google.com/api/adwords/v12}findBusinessesResponse
673
- class FindBusinessesResponse < ::Array
674
- end
675
-
676
- # {https://adwords.google.com/api/adwords/v12}getActiveAds
677
- class GetActiveAds < ::Array
678
- end
679
-
680
- # {https://adwords.google.com/api/adwords/v12}getActiveAdsResponse
681
- class GetActiveAdsResponse < ::Array
682
- end
683
-
684
- # {https://adwords.google.com/api/adwords/v12}getAd
685
- # adGroupId - SOAP::SOAPLong
686
- # adId - SOAP::SOAPLong
687
- class GetAd
688
- attr_accessor :adGroupId
689
- attr_accessor :adId
690
-
691
- def initialize(adGroupId = nil, adId = nil)
692
- @adGroupId = adGroupId
693
- @adId = adId
694
- end
695
- end
696
-
697
- # {https://adwords.google.com/api/adwords/v12}getAdResponse
698
- # getAdReturn - AdWords::AdService::Ad
699
- class GetAdResponse
700
- attr_accessor :getAdReturn
701
-
702
- def initialize(getAdReturn = nil)
703
- @getAdReturn = getAdReturn
704
- end
705
- end
706
-
707
- # {https://adwords.google.com/api/adwords/v12}getAdStats
708
- # adGroupId - SOAP::SOAPLong
709
- # adIds - SOAP::SOAPLong
710
- # startDay - SOAP::SOAPDate
711
- # endDay - SOAP::SOAPDate
712
- class GetAdStats
713
- attr_accessor :adGroupId
714
- attr_accessor :adIds
715
- attr_accessor :startDay
716
- attr_accessor :endDay
717
-
718
- def initialize(adGroupId = nil, adIds = [], startDay = nil, endDay = nil)
719
- @adGroupId = adGroupId
720
- @adIds = adIds
721
- @startDay = startDay
722
- @endDay = endDay
723
- end
724
- end
725
-
726
- # {https://adwords.google.com/api/adwords/v12}getAdStatsResponse
727
- class GetAdStatsResponse < ::Array
728
- end
729
-
730
- # {https://adwords.google.com/api/adwords/v12}getAllAds
731
- class GetAllAds < ::Array
732
- end
733
-
734
- # {https://adwords.google.com/api/adwords/v12}getAllAdsResponse
735
- class GetAllAdsResponse < ::Array
736
- end
737
-
738
- # {https://adwords.google.com/api/adwords/v12}getMyBusinesses
739
- class GetMyBusinesses
740
- def initialize
741
- end
742
- end
743
-
744
- # {https://adwords.google.com/api/adwords/v12}getMyBusinessesResponse
745
- class GetMyBusinessesResponse < ::Array
746
- end
747
-
748
- # {https://adwords.google.com/api/adwords/v12}getMyVideos
749
- class GetMyVideos
750
- def initialize
751
- end
752
- end
753
-
754
- # {https://adwords.google.com/api/adwords/v12}getMyVideosResponse
755
- class GetMyVideosResponse < ::Array
756
- end
757
-
758
- # {https://adwords.google.com/api/adwords/v12}updateAds
759
- class UpdateAds < ::Array
760
- end
761
-
762
- # {https://adwords.google.com/api/adwords/v12}updateAdsResponse
763
- class UpdateAdsResponse
764
- def initialize
765
- end
766
- end
767
-
768
-
769
- end; end