adwords4r 0.6 → 0.7
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 +14 -11
- data/Rakefile +2 -1
- data/Readme.txt +5 -0
- data/adwords.properties +3 -3
- data/lib/adwords4r/services.rb +2 -2
- data/lib/adwords4r/v6/AccountService.rb +853 -0
- data/lib/adwords4r/v6/AccountServiceDriver.rb +188 -0
- data/lib/adwords4r/v6/AdGroupService.rb +352 -0
- data/lib/adwords4r/v6/AdGroupServiceDriver.rb +97 -0
- data/lib/adwords4r/v6/CampaignService.rb +563 -0
- data/lib/adwords4r/v6/CampaignServiceDriver.rb +111 -0
- data/lib/adwords4r/v6/CreativeService.rb +472 -0
- data/lib/adwords4r/v6/CreativeServiceDriver.rb +111 -0
- data/lib/adwords4r/v6/CriterionService.rb +447 -0
- data/lib/adwords4r/v6/CriterionServiceDriver.rb +97 -0
- data/lib/adwords4r/v6/InfoService.rb +343 -0
- data/lib/adwords4r/v6/InfoServiceDriver.rb +97 -0
- data/lib/adwords4r/v6/KeywordToolService.rb +263 -0
- data/lib/adwords4r/v6/KeywordToolServiceDriver.rb +55 -0
- data/lib/adwords4r/v6/ReportService.rb +789 -0
- data/lib/adwords4r/v6/ReportServiceDriver.rb +83 -0
- data/lib/adwords4r/v6/TrafficEstimatorService.rb +310 -0
- data/lib/adwords4r/v6/TrafficEstimatorServiceDriver.rb +62 -0
- metadata +21 -4
- data/examples/sandbox.rb +0 -30
metadata
CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: adwords4r
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date: 2006-09-
|
6
|
+
version: "0.7"
|
7
|
+
date: 2006-09-28 00:00:00 -07:00
|
8
8
|
summary: Client library for the AdWords API.
|
9
9
|
require_paths:
|
10
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.Currently the following AdWords API versions are supported:* V4* V5
|
14
|
+
description: Adwords4r provides an easy to use way to access the AdWords API in ruby.Currently the following AdWords API versions are supported:* V4* V5* V6
|
15
15
|
autorequire: adwords4r
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
@@ -78,12 +78,29 @@ files:
|
|
78
78
|
- lib/adwords4r/v5/ReportServiceDriver.rb
|
79
79
|
- lib/adwords4r/v5/TrafficEstimatorService.rb
|
80
80
|
- lib/adwords4r/v5/TrafficEstimatorServiceDriver.rb
|
81
|
+
- lib/adwords4r/v6/AccountService.rb
|
82
|
+
- lib/adwords4r/v6/AccountServiceDriver.rb
|
83
|
+
- lib/adwords4r/v6/AdGroupService.rb
|
84
|
+
- lib/adwords4r/v6/AdGroupServiceDriver.rb
|
85
|
+
- lib/adwords4r/v6/CampaignService.rb
|
86
|
+
- lib/adwords4r/v6/CampaignServiceDriver.rb
|
87
|
+
- lib/adwords4r/v6/CreativeService.rb
|
88
|
+
- lib/adwords4r/v6/CreativeServiceDriver.rb
|
89
|
+
- lib/adwords4r/v6/CriterionService.rb
|
90
|
+
- lib/adwords4r/v6/CriterionServiceDriver.rb
|
91
|
+
- lib/adwords4r/v6/InfoService.rb
|
92
|
+
- lib/adwords4r/v6/InfoServiceDriver.rb
|
93
|
+
- lib/adwords4r/v6/KeywordToolService.rb
|
94
|
+
- lib/adwords4r/v6/KeywordToolServiceDriver.rb
|
95
|
+
- lib/adwords4r/v6/ReportService.rb
|
96
|
+
- lib/adwords4r/v6/ReportServiceDriver.rb
|
97
|
+
- lib/adwords4r/v6/TrafficEstimatorService.rb
|
98
|
+
- lib/adwords4r/v6/TrafficEstimatorServiceDriver.rb
|
81
99
|
- examples/campaign.rb
|
82
100
|
- examples/framework.rb
|
83
101
|
- examples/get_free_usage_this_month.rb
|
84
102
|
- examples/get_unit_count.rb
|
85
103
|
- examples/keyword_tool_demo.rb
|
86
|
-
- examples/sandbox.rb
|
87
104
|
- examples/traffic_estimator.rb
|
88
105
|
test_files: []
|
89
106
|
|
data/examples/sandbox.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'adwords4r'
|
4
|
-
require 'pp'
|
5
|
-
|
6
|
-
SEP = "---"
|
7
|
-
|
8
|
-
def dumpObj(o)
|
9
|
-
str = ""
|
10
|
-
o.instance_variables.each { |v| str << dumpAttr(o, v)}
|
11
|
-
return str << SEP
|
12
|
-
end
|
13
|
-
|
14
|
-
def dumpAttr(o, v)
|
15
|
-
name = v.sub(/@/,'')
|
16
|
-
value = eval("o.#{name}.to_s")
|
17
|
-
return "#{name}: #{value}\n"
|
18
|
-
end
|
19
|
-
|
20
|
-
begin
|
21
|
-
adwords = AdWords::API.new
|
22
|
-
|
23
|
-
puts dumpObj(adwords)
|
24
|
-
|
25
|
-
rescue AdWords::Error::UnknownAPICall => e
|
26
|
-
puts e
|
27
|
-
rescue AdWords::Error::ApiError => e
|
28
|
-
puts e.code
|
29
|
-
puts e.message
|
30
|
-
end
|