adwords4r 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/ChangeLog.txt +1 -1
  2. data/Rakefile +21 -10
  3. data/examples/campaign.rb +5 -2
  4. data/examples/get_unit_count.rb +16 -0
  5. data/lib/adwords4r.rb +4 -5
  6. data/lib/adwords4r/v2/AccountService.rb +2 -2
  7. data/lib/adwords4r/v2/AccountServiceDriver.rb +1 -3
  8. data/lib/adwords4r/v2/AdGroupService.rb +1 -1
  9. data/lib/adwords4r/v2/AdGroupServiceDriver.rb +1 -3
  10. data/lib/adwords4r/v2/CampaignService.rb +4 -4
  11. data/lib/adwords4r/v2/CampaignServiceDriver.rb +1 -3
  12. data/lib/adwords4r/v2/CreativeService.rb +1 -1
  13. data/lib/adwords4r/v2/CreativeServiceDriver.rb +1 -3
  14. data/lib/adwords4r/v2/CriterionService.rb +4 -4
  15. data/lib/adwords4r/v2/CriterionServiceDriver.rb +1 -3
  16. data/lib/adwords4r/v2/InfoService.rb +23 -23
  17. data/lib/adwords4r/v2/InfoServiceDriver.rb +1 -3
  18. data/lib/adwords4r/v2/KeywordService.rb +3 -3
  19. data/lib/adwords4r/v2/KeywordServiceDriver.rb +1 -3
  20. data/lib/adwords4r/v2/ReportService.rb +60 -60
  21. data/lib/adwords4r/v2/ReportServiceDriver.rb +1 -3
  22. data/lib/adwords4r/v2/TrafficEstimatorService.rb +24 -24
  23. data/lib/adwords4r/v2/TrafficEstimatorServiceDriver.rb +1 -3
  24. data/lib/adwords4r/v3/AccountService.rb +2 -2
  25. data/lib/adwords4r/v3/AccountServiceDriver.rb +1 -3
  26. data/lib/adwords4r/v3/AdGroupService.rb +1 -1
  27. data/lib/adwords4r/v3/AdGroupServiceDriver.rb +1 -3
  28. data/lib/adwords4r/v3/CampaignService.rb +5 -5
  29. data/lib/adwords4r/v3/CampaignServiceDriver.rb +1 -3
  30. data/lib/adwords4r/v3/CreativeService.rb +1 -1
  31. data/lib/adwords4r/v3/CreativeServiceDriver.rb +1 -3
  32. data/lib/adwords4r/v3/CriterionService.rb +4 -4
  33. data/lib/adwords4r/v3/CriterionServiceDriver.rb +1 -3
  34. data/lib/adwords4r/v3/InfoService.rb +23 -23
  35. data/lib/adwords4r/v3/InfoServiceDriver.rb +1 -3
  36. data/lib/adwords4r/v3/KeywordService.rb +3 -3
  37. data/lib/adwords4r/v3/KeywordServiceDriver.rb +1 -3
  38. data/lib/adwords4r/v3/KeywordToolService.rb +1 -1
  39. data/lib/adwords4r/v3/KeywordToolServiceDriver.rb +1 -3
  40. data/lib/adwords4r/v3/ReportService.rb +60 -60
  41. data/lib/adwords4r/v3/ReportServiceDriver.rb +1 -3
  42. data/lib/adwords4r/v3/TrafficEstimatorService.rb +23 -23
  43. data/lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb +1 -3
  44. metadata +74 -67
@@ -1,10 +1,9 @@
1
1
  require 'adwords4r/v3/ReportService'
2
2
 
3
3
  require 'soap/rpc/driver'
4
- module AdWordsV3
5
4
 
6
5
  class ReportServiceInterface < ::SOAP::RPC::Driver
7
- DefaultEndpointUrl = "https://adwords.google.com:443/api/adwords/v3/ReportService"
6
+ DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v3/ReportService"
8
7
  MappingRegistry = ::SOAP::Mapping::Registry.new
9
8
 
10
9
  Methods = [
@@ -80,4 +79,3 @@ private
80
79
  end
81
80
  end
82
81
 
83
- end
@@ -47,11 +47,11 @@ class ApiException
47
47
  @@schema_type = "ApiException"
48
48
  @@schema_ns = "https://adwords.google.com/api/adwords/v3"
49
49
  @@schema_element = [
50
- ["code", "Int"],
51
- ["internal", "Boolean"],
52
- ["message", "String"],
53
- ["trigger", "String"],
54
- ["violations", "String"]
50
+ ["code", "SOAP::SOAPInt"],
51
+ ["internal", "SOAP::SOAPBoolean"],
52
+ ["message", "SOAP::SOAPString"],
53
+ ["trigger", "SOAP::SOAPString"],
54
+ ["violations", "SOAP::SOAPString"]
55
55
  ]
56
56
 
57
57
  attr_accessor :code
@@ -76,7 +76,7 @@ class CampaignRequest
76
76
  @@schema_element = [
77
77
  ["adGroupRequests", "AdGroupRequest[]"],
78
78
  ["geoTargeting", "GeoTarget"],
79
- ["id", "Int"],
79
+ ["id", "SOAP::SOAPInt"],
80
80
  ["languageTargeting", "LanguageTarget"],
81
81
  ["networkTargeting", "NetworkTarget"]
82
82
  ]
@@ -101,9 +101,9 @@ class AdGroupRequest
101
101
  @@schema_type = "AdGroupRequest"
102
102
  @@schema_ns = "https://adwords.google.com/api/adwords/v3"
103
103
  @@schema_element = [
104
- ["id", "Int"],
104
+ ["id", "SOAP::SOAPInt"],
105
105
  ["keywordRequests", "KeywordRequest[]"],
106
- ["maxCpc", "Long"]
106
+ ["maxCpc", "SOAP::SOAPLong"]
107
107
  ]
108
108
 
109
109
  attr_accessor :id
@@ -122,11 +122,11 @@ class KeywordRequest
122
122
  @@schema_type = "KeywordRequest"
123
123
  @@schema_ns = "https://adwords.google.com/api/adwords/v3"
124
124
  @@schema_element = [
125
- ["id", "Long"],
126
- ["maxCpc", "Long"],
127
- ["negative", "Boolean"],
128
- ["text", "String"],
129
- ["type", "KeywordType"]
125
+ ["id", "SOAP::SOAPLong"],
126
+ ["maxCpc", "SOAP::SOAPLong"],
127
+ ["negative", "SOAP::SOAPBoolean"],
128
+ ["text", "SOAP::SOAPString"],
129
+ ["type", "SOAP::SOAPString"]
130
130
  ]
131
131
 
132
132
  attr_accessor :id
@@ -149,10 +149,10 @@ class GeoTarget
149
149
  @@schema_type = "GeoTarget"
150
150
  @@schema_ns = "https://adwords.google.com/api/adwords/v3"
151
151
  @@schema_element = [
152
- ["cities", "String[]"],
153
- ["countries", "String[]"],
154
- ["metros", "String[]"],
155
- ["regions", "String[]"]
152
+ ["cities", "SOAP::SOAPString[]"],
153
+ ["countries", "SOAP::SOAPString[]"],
154
+ ["metros", "SOAP::SOAPString[]"],
155
+ ["regions", "SOAP::SOAPString[]"]
156
156
  ]
157
157
 
158
158
  attr_accessor :cities
@@ -171,14 +171,14 @@ end
171
171
  # {https://adwords.google.com/api/adwords/v3}LanguageTarget
172
172
  class LanguageTarget < ::Array
173
173
  @@schema_element = [
174
- ["languages", ["String[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "languages")]]
174
+ ["languages", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "languages")]]
175
175
  ]
176
176
  end
177
177
 
178
178
  # {https://adwords.google.com/api/adwords/v3}NetworkTarget
179
179
  class NetworkTarget < ::Array
180
180
  @@schema_element = [
181
- ["networkTypes", ["NetworkType[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "networkTypes")]]
181
+ ["networkTypes", ["SOAP::SOAPString[]", XSD::QName.new("https://adwords.google.com/api/adwords/v3", "networkTypes")]]
182
182
  ]
183
183
  end
184
184
 
@@ -188,7 +188,7 @@ class CampaignEstimate
188
188
  @@schema_ns = "https://adwords.google.com/api/adwords/v3"
189
189
  @@schema_element = [
190
190
  ["adGroupEstimates", "AdGroupEstimate[]"],
191
- ["id", "Int"]
191
+ ["id", "SOAP::SOAPInt"]
192
192
  ]
193
193
 
194
194
  attr_accessor :adGroupEstimates
@@ -205,7 +205,7 @@ class AdGroupEstimate
205
205
  @@schema_type = "AdGroupEstimate"
206
206
  @@schema_ns = "https://adwords.google.com/api/adwords/v3"
207
207
  @@schema_element = [
208
- ["id", "Int"],
208
+ ["id", "SOAP::SOAPInt"],
209
209
  ["keywordEstimates", "KeywordEstimate[]"]
210
210
  ]
211
211
 
@@ -225,8 +225,8 @@ class KeywordEstimate
225
225
  @@schema_element = [
226
226
  ["avgPosition", "Float"],
227
227
  ["clicksPerDay", "Float"],
228
- ["cpc", "Long"],
229
- ["id", "Long"]
228
+ ["cpc", "SOAP::SOAPLong"],
229
+ ["id", "SOAP::SOAPLong"]
230
230
  ]
231
231
 
232
232
  attr_accessor :avgPosition
@@ -1,10 +1,9 @@
1
1
  require 'adwords4r/v3/TrafficEstimatorService'
2
2
 
3
3
  require 'soap/rpc/driver'
4
- module AdWordsV3
5
4
 
6
5
  class TrafficEstimatorInterface < ::SOAP::RPC::Driver
7
- DefaultEndpointUrl = "https://adwords.google.com:443/api/adwords/v3/TrafficEstimatorService"
6
+ DefaultEndpointUrl = "https://adwords.google.com/api/adwords/v3/TrafficEstimatorService"
8
7
  MappingRegistry = ::SOAP::Mapping::Registry.new
9
8
 
10
9
  Methods = [
@@ -59,4 +58,3 @@ private
59
58
  end
60
59
  end
61
60
 
62
- end
metadata CHANGED
@@ -1,92 +1,99 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.10
2
+ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: adwords4r
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.2"
7
- date: 2006-04-13
6
+ version: "0.3"
7
+ date: 2006-04-21 00:00:00 -07:00
8
8
  summary: Client library for the AdWords API.
9
9
  require_paths:
10
- - lib
10
+ - lib
11
11
  email: patrick@chanezon.com
12
12
  homepage: http://rubyforge.org/projects/adwords4r/
13
13
  rubyforge_project: adwords4r
14
- description: "Adwords4r provides an easy to use way to access the AdWords API in ruby.
15
- Currently the following AdWords API versions are supported: * V2 * V3"
14
+ description: "Adwords4r provides an easy to use way to access the AdWords API in ruby. Currently the following AdWords API versions are supported: * V2 * V3"
16
15
  autorequire: adwords4r
17
16
  default_executable:
18
17
  bindir: bin
19
18
  has_rdoc: false
20
19
  required_ruby_version: !ruby/object:Gem::Version::Requirement
21
20
  requirements:
22
- -
23
- - ">"
24
- - !ruby/object:Gem::Version
25
- version: 0.0.0
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
26
24
  version:
27
25
  platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
28
  authors:
29
- - Patrick Chanezon
29
+ - Patrick Chanezon
30
30
  files:
31
- - Authors.txt
32
- - ChangeLog.txt
33
- - Copying.txt
34
- - Licence.txt
35
- - Readme.txt
36
- - setup.rb
37
- - Todo.txt
38
- - Rakefile
39
- - lib/adwords4r.rb
40
- - lib/adwords4r/credentials.rb
41
- - lib/adwords4r/services.rb
42
- - lib/adwords4r/v2/AccountService.rb
43
- - lib/adwords4r/v2/AccountServiceDriver.rb
44
- - lib/adwords4r/v2/AdGroupService.rb
45
- - lib/adwords4r/v2/AdGroupServiceDriver.rb
46
- - lib/adwords4r/v2/CampaignService.rb
47
- - lib/adwords4r/v2/CampaignServiceDriver.rb
48
- - lib/adwords4r/v2/CreativeService.rb
49
- - lib/adwords4r/v2/CreativeServiceDriver.rb
50
- - lib/adwords4r/v2/CriterionService.rb
51
- - lib/adwords4r/v2/CriterionServiceDriver.rb
52
- - lib/adwords4r/v2/default.rb
53
- - lib/adwords4r/v2/defaultDriver.rb
54
- - lib/adwords4r/v2/InfoService.rb
55
- - lib/adwords4r/v2/InfoServiceDriver.rb
56
- - lib/adwords4r/v2/KeywordService.rb
57
- - lib/adwords4r/v2/KeywordServiceDriver.rb
58
- - lib/adwords4r/v2/ReportService.rb
59
- - lib/adwords4r/v2/ReportServiceDriver.rb
60
- - lib/adwords4r/v2/TrafficEstimatorService.rb
61
- - lib/adwords4r/v2/TrafficEstimatorServiceDriver.rb
62
- - lib/adwords4r/v3/AccountService.rb
63
- - lib/adwords4r/v3/AccountServiceDriver.rb
64
- - lib/adwords4r/v3/AdGroupService.rb
65
- - lib/adwords4r/v3/AdGroupServiceDriver.rb
66
- - lib/adwords4r/v3/CampaignService.rb
67
- - lib/adwords4r/v3/CampaignServiceDriver.rb
68
- - lib/adwords4r/v3/CreativeService.rb
69
- - lib/adwords4r/v3/CreativeServiceDriver.rb
70
- - lib/adwords4r/v3/CriterionService.rb
71
- - lib/adwords4r/v3/CriterionServiceDriver.rb
72
- - lib/adwords4r/v3/InfoService.rb
73
- - lib/adwords4r/v3/InfoServiceDriver.rb
74
- - lib/adwords4r/v3/KeywordService.rb
75
- - lib/adwords4r/v3/KeywordServiceDriver.rb
76
- - lib/adwords4r/v3/KeywordToolService.rb
77
- - lib/adwords4r/v3/KeywordToolServiceDriver.rb
78
- - lib/adwords4r/v3/ReportService.rb
79
- - lib/adwords4r/v3/ReportServiceDriver.rb
80
- - lib/adwords4r/v3/TrafficEstimatorService.rb
81
- - lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb
82
- - examples/campaign.rb
83
- - examples/framework.rb
84
- - scripts/publish.rb
31
+ - Authors.txt
32
+ - ChangeLog.txt
33
+ - Copying.txt
34
+ - Licence.txt
35
+ - Readme.txt
36
+ - setup.rb
37
+ - Todo.txt
38
+ - Rakefile
39
+ - lib/adwords4r.rb
40
+ - lib/adwords4r/credentials.rb
41
+ - lib/adwords4r/services.rb
42
+ - lib/adwords4r/v2/AccountService.rb
43
+ - lib/adwords4r/v2/AccountServiceDriver.rb
44
+ - lib/adwords4r/v2/AdGroupService.rb
45
+ - lib/adwords4r/v2/AdGroupServiceDriver.rb
46
+ - lib/adwords4r/v2/CampaignService.rb
47
+ - lib/adwords4r/v2/CampaignServiceDriver.rb
48
+ - lib/adwords4r/v2/CreativeService.rb
49
+ - lib/adwords4r/v2/CreativeServiceDriver.rb
50
+ - lib/adwords4r/v2/CriterionService.rb
51
+ - lib/adwords4r/v2/CriterionServiceDriver.rb
52
+ - lib/adwords4r/v2/default.rb
53
+ - lib/adwords4r/v2/defaultDriver.rb
54
+ - lib/adwords4r/v2/InfoService.rb
55
+ - lib/adwords4r/v2/InfoServiceDriver.rb
56
+ - lib/adwords4r/v2/KeywordService.rb
57
+ - lib/adwords4r/v2/KeywordServiceDriver.rb
58
+ - lib/adwords4r/v2/ReportService.rb
59
+ - lib/adwords4r/v2/ReportServiceDriver.rb
60
+ - lib/adwords4r/v2/TrafficEstimatorService.rb
61
+ - lib/adwords4r/v2/TrafficEstimatorServiceDriver.rb
62
+ - lib/adwords4r/v3/AccountService.rb
63
+ - lib/adwords4r/v3/AccountServiceDriver.rb
64
+ - lib/adwords4r/v3/AdGroupService.rb
65
+ - lib/adwords4r/v3/AdGroupServiceDriver.rb
66
+ - lib/adwords4r/v3/CampaignService.rb
67
+ - lib/adwords4r/v3/CampaignServiceDriver.rb
68
+ - lib/adwords4r/v3/CreativeService.rb
69
+ - lib/adwords4r/v3/CreativeServiceDriver.rb
70
+ - lib/adwords4r/v3/CriterionService.rb
71
+ - lib/adwords4r/v3/CriterionServiceDriver.rb
72
+ - lib/adwords4r/v3/InfoService.rb
73
+ - lib/adwords4r/v3/InfoServiceDriver.rb
74
+ - lib/adwords4r/v3/KeywordService.rb
75
+ - lib/adwords4r/v3/KeywordServiceDriver.rb
76
+ - lib/adwords4r/v3/KeywordToolService.rb
77
+ - lib/adwords4r/v3/KeywordToolServiceDriver.rb
78
+ - lib/adwords4r/v3/ReportService.rb
79
+ - lib/adwords4r/v3/ReportServiceDriver.rb
80
+ - lib/adwords4r/v3/TrafficEstimatorService.rb
81
+ - lib/adwords4r/v3/TrafficEstimatorServiceDriver.rb
82
+ - examples/campaign.rb
83
+ - examples/framework.rb
84
+ - examples/get_unit_count.rb
85
+ - scripts/publish.rb
85
86
  test_files: []
87
+
86
88
  rdoc_options: []
89
+
87
90
  extra_rdoc_files: []
91
+
88
92
  executables: []
93
+
89
94
  extensions: []
95
+
90
96
  requirements:
91
- - soap4r v 1.5.4 or greater
92
- dependencies: []
97
+ - soap4r v 1.5.4 or greater
98
+ dependencies: []
99
+