adwords4r 11.1.0 → 12.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/svn-commit.2.tmp
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
Added support for v12 and removed support for v10 of the AdWords API.
|
2
|
+
Moved around some sample code and cleaned up some files for style.
|
3
|
+
--This line, and those below, will be ignored--
|
4
|
+
|
5
|
+
M Rakefile
|
6
|
+
M ChangeLog.txt
|
7
|
+
M lib/adwords4r/credentials.rb
|
8
|
+
M lib/adwords4r/services.rb
|
9
|
+
D lib/adwords4r/v10
|
10
|
+
M lib/adwords4r/v11/KeywordToolServiceDriver.rb
|
11
|
+
M lib/adwords4r/v11/AdServiceDriver.rb
|
12
|
+
M lib/adwords4r/v11/InfoServiceDriver.rb
|
13
|
+
M lib/adwords4r/v11/AccountServiceDriver.rb
|
14
|
+
M lib/adwords4r/v11/CriterionServiceDriver.rb
|
15
|
+
M lib/adwords4r/v11/AdGroupServiceDriver.rb
|
16
|
+
M lib/adwords4r/v11/TrafficEstimatorServiceDriver.rb
|
17
|
+
M lib/adwords4r/v11/ReportServiceDriver.rb
|
18
|
+
M lib/adwords4r/v11/SiteSuggestionServiceDriver.rb
|
19
|
+
M lib/adwords4r/v11/CampaignServiceDriver.rb
|
20
|
+
A lib/adwords4r/v12
|
21
|
+
A lib/adwords4r/v12/AccountService.rb
|
22
|
+
A lib/adwords4r/v12/KeywordToolServiceDriver.rb
|
23
|
+
A lib/adwords4r/v12/CriterionService.rb
|
24
|
+
A lib/adwords4r/v12/InfoServiceMappingRegistry.rb
|
25
|
+
A lib/adwords4r/v12/AdServiceDriver.rb
|
26
|
+
A lib/adwords4r/v12/AccountServiceMappingRegistry.rb
|
27
|
+
A lib/adwords4r/v12/AdGroupService.rb
|
28
|
+
A lib/adwords4r/v12/CriterionServiceMappingRegistry.rb
|
29
|
+
A lib/adwords4r/v12/TrafficEstimatorService.rb
|
30
|
+
A lib/adwords4r/v12/AdGroupServiceMappingRegistry.rb
|
31
|
+
A lib/adwords4r/v12/InfoServiceDriver.rb
|
32
|
+
A lib/adwords4r/v12/AccountServiceDriver.rb
|
33
|
+
A lib/adwords4r/v12/CriterionServiceDriver.rb
|
34
|
+
A lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb
|
35
|
+
A lib/adwords4r/v12/ReportService.rb
|
36
|
+
A lib/adwords4r/v12/SiteSuggestionService.rb
|
37
|
+
A lib/adwords4r/v12/AdGroupServiceDriver.rb
|
38
|
+
A lib/adwords4r/v12/CampaignService.rb
|
39
|
+
A lib/adwords4r/v12/ReportServiceMappingRegistry.rb
|
40
|
+
A lib/adwords4r/v12/SiteSuggestionServiceMappingRegistry.rb
|
41
|
+
A lib/adwords4r/v12/KeywordToolService.rb
|
42
|
+
A lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb
|
43
|
+
A lib/adwords4r/v12/CampaignServiceMappingRegistry.rb
|
44
|
+
A lib/adwords4r/v12/AdService.rb
|
45
|
+
A lib/adwords4r/v12/KeywordToolServiceMappingRegistry.rb
|
46
|
+
A lib/adwords4r/v12/ReportServiceDriver.rb
|
47
|
+
A lib/adwords4r/v12/SiteSuggestionServiceDriver.rb
|
48
|
+
A lib/adwords4r/v12/AdServiceMappingRegistry.rb
|
49
|
+
A lib/adwords4r/v12/CampaignServiceDriver.rb
|
50
|
+
A lib/adwords4r/v12/InfoService.rb
|
51
|
+
M lib/adwords4r.rb
|
52
|
+
A examples/framework.rb
|
53
|
+
M examples/reports.rb
|
54
|
+
AM examples/keyword_suggestions.rb
|
55
|
+
A examples/campaign.rb
|
56
|
+
A examples/get_free_usage_this_month.rb
|
57
|
+
A examples/keyword_tool_demo.rb
|
58
|
+
A examples/traffic_estimator.rb
|
59
|
+
A examples/get_unit_count.rb
|
60
|
+
D examples/old
|
data/svn-commit.tmp
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
Added support for v12 and removed support for v10 of the AdWords API.
|
2
|
+
Moved around some sample code and cleaned up some files for style.
|
3
|
+
--This line, and those below, will be ignored--
|
4
|
+
|
5
|
+
M Rakefile
|
6
|
+
M ChangeLog.txt
|
7
|
+
M lib/adwords4r/credentials.rb
|
8
|
+
M lib/adwords4r/services.rb
|
9
|
+
D lib/adwords4r/v10
|
10
|
+
M lib/adwords4r/v11/KeywordToolServiceDriver.rb
|
11
|
+
M lib/adwords4r/v11/AdServiceDriver.rb
|
12
|
+
M lib/adwords4r/v11/InfoServiceDriver.rb
|
13
|
+
M lib/adwords4r/v11/AccountServiceDriver.rb
|
14
|
+
M lib/adwords4r/v11/CriterionServiceDriver.rb
|
15
|
+
M lib/adwords4r/v11/AdGroupServiceDriver.rb
|
16
|
+
M lib/adwords4r/v11/TrafficEstimatorServiceDriver.rb
|
17
|
+
M lib/adwords4r/v11/ReportServiceDriver.rb
|
18
|
+
M lib/adwords4r/v11/SiteSuggestionServiceDriver.rb
|
19
|
+
M lib/adwords4r/v11/CampaignServiceDriver.rb
|
20
|
+
A lib/adwords4r/v12
|
21
|
+
A lib/adwords4r/v12/AccountService.rb
|
22
|
+
A lib/adwords4r/v12/KeywordToolServiceDriver.rb
|
23
|
+
A lib/adwords4r/v12/CriterionService.rb
|
24
|
+
A lib/adwords4r/v12/InfoServiceMappingRegistry.rb
|
25
|
+
A lib/adwords4r/v12/AdServiceDriver.rb
|
26
|
+
A lib/adwords4r/v12/AccountServiceMappingRegistry.rb
|
27
|
+
A lib/adwords4r/v12/AdGroupService.rb
|
28
|
+
A lib/adwords4r/v12/CriterionServiceMappingRegistry.rb
|
29
|
+
A lib/adwords4r/v12/TrafficEstimatorService.rb
|
30
|
+
A lib/adwords4r/v12/AdGroupServiceMappingRegistry.rb
|
31
|
+
A lib/adwords4r/v12/InfoServiceDriver.rb
|
32
|
+
A lib/adwords4r/v12/AccountServiceDriver.rb
|
33
|
+
A lib/adwords4r/v12/CriterionServiceDriver.rb
|
34
|
+
A lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb
|
35
|
+
A lib/adwords4r/v12/ReportService.rb
|
36
|
+
A lib/adwords4r/v12/SiteSuggestionService.rb
|
37
|
+
A lib/adwords4r/v12/AdGroupServiceDriver.rb
|
38
|
+
A lib/adwords4r/v12/CampaignService.rb
|
39
|
+
A lib/adwords4r/v12/ReportServiceMappingRegistry.rb
|
40
|
+
A lib/adwords4r/v12/SiteSuggestionServiceMappingRegistry.rb
|
41
|
+
A lib/adwords4r/v12/KeywordToolService.rb
|
42
|
+
A lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb
|
43
|
+
A lib/adwords4r/v12/CampaignServiceMappingRegistry.rb
|
44
|
+
A lib/adwords4r/v12/AdService.rb
|
45
|
+
A lib/adwords4r/v12/KeywordToolServiceMappingRegistry.rb
|
46
|
+
A lib/adwords4r/v12/ReportServiceDriver.rb
|
47
|
+
A lib/adwords4r/v12/SiteSuggestionServiceDriver.rb
|
48
|
+
A lib/adwords4r/v12/AdServiceMappingRegistry.rb
|
49
|
+
A lib/adwords4r/v12/CampaignServiceDriver.rb
|
50
|
+
A lib/adwords4r/v12/InfoService.rb
|
51
|
+
M lib/adwords4r.rb
|
52
|
+
A examples/framework.rb
|
53
|
+
M examples/reports.rb
|
54
|
+
AM examples/keyword_suggestions.rb
|
55
|
+
A examples/campaign.rb
|
56
|
+
A examples/get_free_usage_this_month.rb
|
57
|
+
A examples/keyword_tool_demo.rb
|
58
|
+
A examples/traffic_estimator.rb
|
59
|
+
A examples/get_unit_count.rb
|
60
|
+
D examples/old
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: adwords4r
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2008-
|
6
|
+
version: 12.0.0
|
7
|
+
date: 2008-04-08 00:00:00 -04:00
|
8
8
|
summary: Client library for the AdWords API.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -36,40 +36,12 @@ files:
|
|
36
36
|
- Copying.txt
|
37
37
|
- Readme.txt
|
38
38
|
- adwords.properties
|
39
|
+
- svn-commit.tmp
|
40
|
+
- svn-commit.2.tmp
|
39
41
|
- Rakefile
|
40
42
|
- lib/adwords4r.rb
|
41
43
|
- lib/adwords4r/credentials.rb
|
42
44
|
- lib/adwords4r/services.rb
|
43
|
-
- lib/adwords4r/v10/AccountService.rb
|
44
|
-
- lib/adwords4r/v10/CriterionService.rb
|
45
|
-
- lib/adwords4r/v10/KeywordToolServiceDriver.rb
|
46
|
-
- lib/adwords4r/v10/InfoServiceMappingRegistry.rb
|
47
|
-
- lib/adwords4r/v10/AdServiceDriver.rb
|
48
|
-
- lib/adwords4r/v10/AccountServiceMappingRegistry.rb
|
49
|
-
- lib/adwords4r/v10/AdGroupService.rb
|
50
|
-
- lib/adwords4r/v10/CriterionServiceMappingRegistry.rb
|
51
|
-
- lib/adwords4r/v10/AdGroupServiceMappingRegistry.rb
|
52
|
-
- lib/adwords4r/v10/TrafficEstimatorService.rb
|
53
|
-
- lib/adwords4r/v10/InfoServiceDriver.rb
|
54
|
-
- lib/adwords4r/v10/AccountServiceDriver.rb
|
55
|
-
- lib/adwords4r/v10/CriterionServiceDriver.rb
|
56
|
-
- lib/adwords4r/v10/TrafficEstimatorServiceMappingRegistry.rb
|
57
|
-
- lib/adwords4r/v10/ReportService.rb
|
58
|
-
- lib/adwords4r/v10/AdGroupServiceDriver.rb
|
59
|
-
- lib/adwords4r/v10/CampaignService.rb
|
60
|
-
- lib/adwords4r/v10/ReportServiceMappingRegistry.rb
|
61
|
-
- lib/adwords4r/v10/TrafficEstimatorServiceDriver.rb
|
62
|
-
- lib/adwords4r/v10/KeywordToolService.rb
|
63
|
-
- lib/adwords4r/v10/CampaignServiceMappingRegistry.rb
|
64
|
-
- lib/adwords4r/v10/AdService.rb
|
65
|
-
- lib/adwords4r/v10/KeywordToolServiceMappingRegistry.rb
|
66
|
-
- lib/adwords4r/v10/ReportServiceDriver.rb
|
67
|
-
- lib/adwords4r/v10/AdServiceMappingRegistry.rb
|
68
|
-
- lib/adwords4r/v10/CampaignServiceDriver.rb
|
69
|
-
- lib/adwords4r/v10/InfoService.rb
|
70
|
-
- lib/adwords4r/v10/SiteSuggestionService.rb
|
71
|
-
- lib/adwords4r/v10/SiteSuggestionServiceMappingRegistry.rb
|
72
|
-
- lib/adwords4r/v10/SiteSuggestionServiceDriver.rb
|
73
45
|
- lib/adwords4r/v11/CriterionService.rb
|
74
46
|
- lib/adwords4r/v11/CriterionServiceMappingRegistry.rb
|
75
47
|
- lib/adwords4r/v11/CriterionServiceDriver.rb
|
@@ -100,13 +72,44 @@ files:
|
|
100
72
|
- lib/adwords4r/v11/SiteSuggestionService.rb
|
101
73
|
- lib/adwords4r/v11/SiteSuggestionServiceMappingRegistry.rb
|
102
74
|
- lib/adwords4r/v11/SiteSuggestionServiceDriver.rb
|
75
|
+
- lib/adwords4r/v12/AccountService.rb
|
76
|
+
- lib/adwords4r/v12/AccountServiceMappingRegistry.rb
|
77
|
+
- lib/adwords4r/v12/AccountServiceDriver.rb
|
78
|
+
- lib/adwords4r/v12/AdGroupService.rb
|
79
|
+
- lib/adwords4r/v12/AdGroupServiceMappingRegistry.rb
|
80
|
+
- lib/adwords4r/v12/AdGroupServiceDriver.rb
|
81
|
+
- lib/adwords4r/v12/AdService.rb
|
82
|
+
- lib/adwords4r/v12/AdServiceMappingRegistry.rb
|
83
|
+
- lib/adwords4r/v12/AdServiceDriver.rb
|
84
|
+
- lib/adwords4r/v12/InfoService.rb
|
85
|
+
- lib/adwords4r/v12/CampaignService.rb
|
86
|
+
- lib/adwords4r/v12/CampaignServiceMappingRegistry.rb
|
87
|
+
- lib/adwords4r/v12/CampaignServiceDriver.rb
|
88
|
+
- lib/adwords4r/v12/CriterionService.rb
|
89
|
+
- lib/adwords4r/v12/CriterionServiceMappingRegistry.rb
|
90
|
+
- lib/adwords4r/v12/CriterionServiceDriver.rb
|
91
|
+
- lib/adwords4r/v12/InfoServiceMappingRegistry.rb
|
92
|
+
- lib/adwords4r/v12/InfoServiceDriver.rb
|
93
|
+
- lib/adwords4r/v12/KeywordToolService.rb
|
94
|
+
- lib/adwords4r/v12/KeywordToolServiceMappingRegistry.rb
|
95
|
+
- lib/adwords4r/v12/KeywordToolServiceDriver.rb
|
96
|
+
- lib/adwords4r/v12/ReportService.rb
|
97
|
+
- lib/adwords4r/v12/ReportServiceMappingRegistry.rb
|
98
|
+
- lib/adwords4r/v12/ReportServiceDriver.rb
|
99
|
+
- lib/adwords4r/v12/SiteSuggestionService.rb
|
100
|
+
- lib/adwords4r/v12/SiteSuggestionServiceMappingRegistry.rb
|
101
|
+
- lib/adwords4r/v12/SiteSuggestionServiceDriver.rb
|
102
|
+
- lib/adwords4r/v12/TrafficEstimatorService.rb
|
103
|
+
- lib/adwords4r/v12/TrafficEstimatorServiceMappingRegistry.rb
|
104
|
+
- lib/adwords4r/v12/TrafficEstimatorServiceDriver.rb
|
103
105
|
- examples/reports.rb
|
104
|
-
- examples/
|
105
|
-
- examples/
|
106
|
-
- examples/
|
107
|
-
- examples/
|
108
|
-
- examples/
|
109
|
-
- examples/
|
106
|
+
- examples/keyword_suggestions.rb
|
107
|
+
- examples/campaign.rb
|
108
|
+
- examples/framework.rb
|
109
|
+
- examples/get_free_usage_this_month.rb
|
110
|
+
- examples/get_unit_count.rb
|
111
|
+
- examples/keyword_tool_demo.rb
|
112
|
+
- examples/traffic_estimator.rb
|
110
113
|
test_files: []
|
111
114
|
|
112
115
|
rdoc_options: []
|
data/examples/old/campaign.rb
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# Use adwords4r in parent dir
|
4
|
-
$LOAD_PATH.unshift '../lib/'
|
5
|
-
|
6
|
-
require 'adwords4r'
|
7
|
-
|
8
|
-
SEP = "---"
|
9
|
-
|
10
|
-
def dumpObj(o)
|
11
|
-
str = ""
|
12
|
-
o.instance_variables.each { |v| str << dumpAttr(o, v)}
|
13
|
-
return str << SEP
|
14
|
-
end
|
15
|
-
|
16
|
-
def dumpAttr(o, v)
|
17
|
-
name = v.sub(/@/,'')
|
18
|
-
value = eval("o.#{name}.to_s")
|
19
|
-
return "#{name}: #{value}\n"
|
20
|
-
end
|
21
|
-
|
22
|
-
begin
|
23
|
-
adwords = AdWords::API.new
|
24
|
-
|
25
|
-
res = adwords.getAllAdWordsCampaigns(123).getAllAdWordsCampaignsReturn
|
26
|
-
res.each {|c| puts dumpObj(c)}
|
27
|
-
|
28
|
-
c = AdWords::Campaign.new
|
29
|
-
c.dailyBudget = 10000
|
30
|
-
c.status = 'Paused'
|
31
|
-
c.name = "Test Campaign #{rand(10000)}"
|
32
|
-
c.endDay = SOAP::SOAPDate.new("2010-01-01")
|
33
|
-
puts dumpObj(adwords.addCampaign(c).addCampaignReturn)
|
34
|
-
|
35
|
-
rescue AdWords::Error::UnknownAPICall => e
|
36
|
-
puts e
|
37
|
-
rescue AdWords::Error::ApiError => e
|
38
|
-
puts e.code
|
39
|
-
puts e.message
|
40
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# Use adwords4r in parent dir
|
4
|
-
$LOAD_PATH.unshift '../lib/'
|
5
|
-
|
6
|
-
require 'adwords4r'
|
7
|
-
|
8
|
-
begin
|
9
|
-
adwords = AdWords::API.new
|
10
|
-
# Get the units for the last month or so
|
11
|
-
end_date = Date.today
|
12
|
-
start_date = end_date - 31
|
13
|
-
puts "result = #{adwords.getUnitCount(start_date, end_date).getUnitCountReturn}"
|
14
|
-
|
15
|
-
rescue AdWords::Error::UnknownAPICall => e
|
16
|
-
puts e
|
17
|
-
rescue AdWords::Error::ApiError => e
|
18
|
-
puts e.code
|
19
|
-
puts e.message
|
20
|
-
end
|
21
|
-
|
@@ -1,30 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# Use adwords4r in parent dir
|
4
|
-
$LOAD_PATH.unshift '../lib/'
|
5
|
-
|
6
|
-
require 'adwords4r'
|
7
|
-
|
8
|
-
def printkw(kw, gname)
|
9
|
-
puts "#{gname} #{kw.advertiserCompetitionScale} #{kw.searchVolumeScale} #{kw.text}"
|
10
|
-
end
|
11
|
-
|
12
|
-
begin
|
13
|
-
if (ARGV.length < 1)
|
14
|
-
puts "Usage: #$0 <url>"
|
15
|
-
exit
|
16
|
-
end
|
17
|
-
adwords = AdWords::API.new
|
18
|
-
result = adwords.getKeywordsFromSite(ARGV[0], true, [], [])
|
19
|
-
groups = result.getKeywordsFromSiteReturn.groups
|
20
|
-
kws = result.getKeywordsFromSiteReturn.keywords
|
21
|
-
puts "GroupName AdvertiserCompetitionScale searchVolumeScale text"
|
22
|
-
kws.each {|kw| printkw(kw, groups[kw.groupId.to_i])}
|
23
|
-
|
24
|
-
rescue AdWords::Error::UnknownAPICall => e
|
25
|
-
puts e
|
26
|
-
rescue AdWords::Error::ApiError => e
|
27
|
-
puts e.code
|
28
|
-
puts e.message
|
29
|
-
end
|
30
|
-
|
@@ -1,34 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# Use adwords4r in parent dir
|
4
|
-
$LOAD_PATH.unshift '../lib/'
|
5
|
-
|
6
|
-
require 'adwords4r'
|
7
|
-
|
8
|
-
SEP = "---"
|
9
|
-
|
10
|
-
def dumpObj(o)
|
11
|
-
str = ""
|
12
|
-
o.instance_variables.each { |v| str << dumpAttr(o, v)}
|
13
|
-
return str << SEP
|
14
|
-
end
|
15
|
-
|
16
|
-
def dumpAttr(o, v)
|
17
|
-
name = v.sub(/@/,'')
|
18
|
-
value = eval("o.#{name}.to_s")
|
19
|
-
return "#{name}: #{value}\n"
|
20
|
-
end
|
21
|
-
|
22
|
-
begin
|
23
|
-
adwords = AdWords::API.new
|
24
|
-
|
25
|
-
res = adwords.estimateKeywordList(
|
26
|
-
[AdWords::KeywordRequest.new(nil, 50000, false, 'flowers', 'Broad')]).estimateKeywordListReturn
|
27
|
-
res.each {|c| puts dumpObj(c)}
|
28
|
-
|
29
|
-
rescue AdWords::Error::UnknownAPICall => e
|
30
|
-
puts e
|
31
|
-
rescue AdWords::Error::ApiError => e
|
32
|
-
puts e.code
|
33
|
-
puts e.message
|
34
|
-
end
|
@@ -1,652 +0,0 @@
|
|
1
|
-
require 'xsd/qname'
|
2
|
-
|
3
|
-
module AdWords; module ReportService
|
4
|
-
|
5
|
-
|
6
|
-
# {https://adwords.google.com/api/adwords/v10}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/v10}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/v10}ReportJob
|
60
|
-
# abstract
|
61
|
-
# aggregationType - AdWords::ReportService::AggregationType
|
62
|
-
# clientEmails - SOAP::SOAPString
|
63
|
-
# crossClient - SOAP::SOAPBoolean
|
64
|
-
# endDay - SOAP::SOAPDate
|
65
|
-
# id - SOAP::SOAPLong
|
66
|
-
# name - SOAP::SOAPString
|
67
|
-
# startDay - SOAP::SOAPDate
|
68
|
-
# status - AdWords::ReportService::ReportJobStatus
|
69
|
-
class ReportJob
|
70
|
-
attr_accessor :aggregationType
|
71
|
-
attr_accessor :clientEmails
|
72
|
-
attr_accessor :crossClient
|
73
|
-
attr_accessor :endDay
|
74
|
-
attr_accessor :id
|
75
|
-
attr_accessor :name
|
76
|
-
attr_accessor :startDay
|
77
|
-
attr_accessor :status
|
78
|
-
|
79
|
-
def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil)
|
80
|
-
@aggregationType = aggregationType
|
81
|
-
@clientEmails = clientEmails
|
82
|
-
@crossClient = crossClient
|
83
|
-
@endDay = endDay
|
84
|
-
@id = id
|
85
|
-
@name = name
|
86
|
-
@startDay = startDay
|
87
|
-
@status = status
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
# {https://adwords.google.com/api/adwords/v10}AccountReportJob
|
92
|
-
# aggregationType - AdWords::ReportService::AggregationType
|
93
|
-
# clientEmails - SOAP::SOAPString
|
94
|
-
# crossClient - SOAP::SOAPBoolean
|
95
|
-
# endDay - SOAP::SOAPDate
|
96
|
-
# id - SOAP::SOAPLong
|
97
|
-
# name - SOAP::SOAPString
|
98
|
-
# startDay - SOAP::SOAPDate
|
99
|
-
# status - AdWords::ReportService::ReportJobStatus
|
100
|
-
# adWordsType - AdWords::ReportService::AdWordsType
|
101
|
-
class AccountReportJob < ReportJob
|
102
|
-
attr_accessor :aggregationType
|
103
|
-
attr_accessor :clientEmails
|
104
|
-
attr_accessor :crossClient
|
105
|
-
attr_accessor :endDay
|
106
|
-
attr_accessor :id
|
107
|
-
attr_accessor :name
|
108
|
-
attr_accessor :startDay
|
109
|
-
attr_accessor :status
|
110
|
-
attr_accessor :adWordsType
|
111
|
-
|
112
|
-
def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adWordsType = nil)
|
113
|
-
@aggregationType = aggregationType
|
114
|
-
@clientEmails = clientEmails
|
115
|
-
@crossClient = crossClient
|
116
|
-
@endDay = endDay
|
117
|
-
@id = id
|
118
|
-
@name = name
|
119
|
-
@startDay = startDay
|
120
|
-
@status = status
|
121
|
-
@adWordsType = adWordsType
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
# {https://adwords.google.com/api/adwords/v10}AdGroupReportJob
|
126
|
-
# aggregationType - AdWords::ReportService::AggregationType
|
127
|
-
# clientEmails - SOAP::SOAPString
|
128
|
-
# crossClient - SOAP::SOAPBoolean
|
129
|
-
# endDay - SOAP::SOAPDate
|
130
|
-
# id - SOAP::SOAPLong
|
131
|
-
# name - SOAP::SOAPString
|
132
|
-
# startDay - SOAP::SOAPDate
|
133
|
-
# status - AdWords::ReportService::ReportJobStatus
|
134
|
-
# adGroupStatuses - AdWords::ReportService::AdGroupStatus
|
135
|
-
# adWordsType - AdWords::ReportService::AdWordsType
|
136
|
-
# campaigns - SOAP::SOAPInt
|
137
|
-
class AdGroupReportJob < ReportJob
|
138
|
-
attr_accessor :aggregationType
|
139
|
-
attr_accessor :clientEmails
|
140
|
-
attr_accessor :crossClient
|
141
|
-
attr_accessor :endDay
|
142
|
-
attr_accessor :id
|
143
|
-
attr_accessor :name
|
144
|
-
attr_accessor :startDay
|
145
|
-
attr_accessor :status
|
146
|
-
attr_accessor :adGroupStatuses
|
147
|
-
attr_accessor :adWordsType
|
148
|
-
attr_accessor :campaigns
|
149
|
-
|
150
|
-
def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adGroupStatuses = [], adWordsType = nil, campaigns = [])
|
151
|
-
@aggregationType = aggregationType
|
152
|
-
@clientEmails = clientEmails
|
153
|
-
@crossClient = crossClient
|
154
|
-
@endDay = endDay
|
155
|
-
@id = id
|
156
|
-
@name = name
|
157
|
-
@startDay = startDay
|
158
|
-
@status = status
|
159
|
-
@adGroupStatuses = adGroupStatuses
|
160
|
-
@adWordsType = adWordsType
|
161
|
-
@campaigns = campaigns
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
# {https://adwords.google.com/api/adwords/v10}AdImageReportJob
|
166
|
-
# aggregationType - AdWords::ReportService::AggregationType
|
167
|
-
# clientEmails - SOAP::SOAPString
|
168
|
-
# crossClient - SOAP::SOAPBoolean
|
169
|
-
# endDay - SOAP::SOAPDate
|
170
|
-
# id - SOAP::SOAPLong
|
171
|
-
# name - SOAP::SOAPString
|
172
|
-
# startDay - SOAP::SOAPDate
|
173
|
-
# status - AdWords::ReportService::ReportJobStatus
|
174
|
-
# campaigns - SOAP::SOAPInt
|
175
|
-
class AdImageReportJob < ReportJob
|
176
|
-
attr_accessor :aggregationType
|
177
|
-
attr_accessor :clientEmails
|
178
|
-
attr_accessor :crossClient
|
179
|
-
attr_accessor :endDay
|
180
|
-
attr_accessor :id
|
181
|
-
attr_accessor :name
|
182
|
-
attr_accessor :startDay
|
183
|
-
attr_accessor :status
|
184
|
-
attr_accessor :campaigns
|
185
|
-
|
186
|
-
def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, campaigns = [])
|
187
|
-
@aggregationType = aggregationType
|
188
|
-
@clientEmails = clientEmails
|
189
|
-
@crossClient = crossClient
|
190
|
-
@endDay = endDay
|
191
|
-
@id = id
|
192
|
-
@name = name
|
193
|
-
@startDay = startDay
|
194
|
-
@status = status
|
195
|
-
@campaigns = campaigns
|
196
|
-
end
|
197
|
-
end
|
198
|
-
|
199
|
-
# {https://adwords.google.com/api/adwords/v10}AdTextReportJob
|
200
|
-
# aggregationType - AdWords::ReportService::AggregationType
|
201
|
-
# clientEmails - SOAP::SOAPString
|
202
|
-
# crossClient - SOAP::SOAPBoolean
|
203
|
-
# endDay - SOAP::SOAPDate
|
204
|
-
# id - SOAP::SOAPLong
|
205
|
-
# name - SOAP::SOAPString
|
206
|
-
# startDay - SOAP::SOAPDate
|
207
|
-
# status - AdWords::ReportService::ReportJobStatus
|
208
|
-
# adWordsType - AdWords::ReportService::AdWordsType
|
209
|
-
# campaigns - SOAP::SOAPInt
|
210
|
-
class AdTextReportJob < ReportJob
|
211
|
-
attr_accessor :aggregationType
|
212
|
-
attr_accessor :clientEmails
|
213
|
-
attr_accessor :crossClient
|
214
|
-
attr_accessor :endDay
|
215
|
-
attr_accessor :id
|
216
|
-
attr_accessor :name
|
217
|
-
attr_accessor :startDay
|
218
|
-
attr_accessor :status
|
219
|
-
attr_accessor :adWordsType
|
220
|
-
attr_accessor :campaigns
|
221
|
-
|
222
|
-
def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adWordsType = nil, campaigns = [])
|
223
|
-
@aggregationType = aggregationType
|
224
|
-
@clientEmails = clientEmails
|
225
|
-
@crossClient = crossClient
|
226
|
-
@endDay = endDay
|
227
|
-
@id = id
|
228
|
-
@name = name
|
229
|
-
@startDay = startDay
|
230
|
-
@status = status
|
231
|
-
@adWordsType = adWordsType
|
232
|
-
@campaigns = campaigns
|
233
|
-
end
|
234
|
-
end
|
235
|
-
|
236
|
-
# {https://adwords.google.com/api/adwords/v10}CampaignReportJob
|
237
|
-
# aggregationType - AdWords::ReportService::AggregationType
|
238
|
-
# clientEmails - SOAP::SOAPString
|
239
|
-
# crossClient - SOAP::SOAPBoolean
|
240
|
-
# endDay - SOAP::SOAPDate
|
241
|
-
# id - SOAP::SOAPLong
|
242
|
-
# name - SOAP::SOAPString
|
243
|
-
# startDay - SOAP::SOAPDate
|
244
|
-
# status - AdWords::ReportService::ReportJobStatus
|
245
|
-
# adWordsType - AdWords::ReportService::AdWordsType
|
246
|
-
# campaigns - SOAP::SOAPInt
|
247
|
-
class CampaignReportJob < ReportJob
|
248
|
-
attr_accessor :aggregationType
|
249
|
-
attr_accessor :clientEmails
|
250
|
-
attr_accessor :crossClient
|
251
|
-
attr_accessor :endDay
|
252
|
-
attr_accessor :id
|
253
|
-
attr_accessor :name
|
254
|
-
attr_accessor :startDay
|
255
|
-
attr_accessor :status
|
256
|
-
attr_accessor :adWordsType
|
257
|
-
attr_accessor :campaigns
|
258
|
-
|
259
|
-
def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adWordsType = nil, campaigns = [])
|
260
|
-
@aggregationType = aggregationType
|
261
|
-
@clientEmails = clientEmails
|
262
|
-
@crossClient = crossClient
|
263
|
-
@endDay = endDay
|
264
|
-
@id = id
|
265
|
-
@name = name
|
266
|
-
@startDay = startDay
|
267
|
-
@status = status
|
268
|
-
@adWordsType = adWordsType
|
269
|
-
@campaigns = campaigns
|
270
|
-
end
|
271
|
-
end
|
272
|
-
|
273
|
-
# {https://adwords.google.com/api/adwords/v10}CustomReportJob
|
274
|
-
# aggregationType - AdWords::ReportService::AggregationType
|
275
|
-
# clientEmails - SOAP::SOAPString
|
276
|
-
# crossClient - SOAP::SOAPBoolean
|
277
|
-
# endDay - SOAP::SOAPDate
|
278
|
-
# id - SOAP::SOAPLong
|
279
|
-
# name - SOAP::SOAPString
|
280
|
-
# startDay - SOAP::SOAPDate
|
281
|
-
# status - AdWords::ReportService::ReportJobStatus
|
282
|
-
# adGroupStatuses - AdWords::ReportService::AdGroupStatus
|
283
|
-
# adGroups - SOAP::SOAPInt
|
284
|
-
# adWordsType - AdWords::ReportService::AdWordsType
|
285
|
-
# campaignStatuses - AdWords::ReportService::CampaignStatus
|
286
|
-
# campaigns - SOAP::SOAPInt
|
287
|
-
# customOptions - AdWords::ReportService::CustomReportOption
|
288
|
-
# includeZeroImpression - SOAP::SOAPBoolean
|
289
|
-
# keywordStatuses - AdWords::ReportService::KeywordStatus
|
290
|
-
# keywordType - AdWords::ReportService::KeywordType
|
291
|
-
# keywords - SOAP::SOAPString
|
292
|
-
class CustomReportJob < ReportJob
|
293
|
-
attr_accessor :aggregationType
|
294
|
-
attr_accessor :clientEmails
|
295
|
-
attr_accessor :crossClient
|
296
|
-
attr_accessor :endDay
|
297
|
-
attr_accessor :id
|
298
|
-
attr_accessor :name
|
299
|
-
attr_accessor :startDay
|
300
|
-
attr_accessor :status
|
301
|
-
attr_accessor :adGroupStatuses
|
302
|
-
attr_accessor :adGroups
|
303
|
-
attr_accessor :adWordsType
|
304
|
-
attr_accessor :campaignStatuses
|
305
|
-
attr_accessor :campaigns
|
306
|
-
attr_accessor :customOptions
|
307
|
-
attr_accessor :includeZeroImpression
|
308
|
-
attr_accessor :keywordStatuses
|
309
|
-
attr_accessor :keywordType
|
310
|
-
attr_accessor :keywords
|
311
|
-
|
312
|
-
def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adGroupStatuses = [], adGroups = [], adWordsType = nil, campaignStatuses = [], campaigns = [], customOptions = [], includeZeroImpression = nil, keywordStatuses = [], keywordType = nil, keywords = [])
|
313
|
-
@aggregationType = aggregationType
|
314
|
-
@clientEmails = clientEmails
|
315
|
-
@crossClient = crossClient
|
316
|
-
@endDay = endDay
|
317
|
-
@id = id
|
318
|
-
@name = name
|
319
|
-
@startDay = startDay
|
320
|
-
@status = status
|
321
|
-
@adGroupStatuses = adGroupStatuses
|
322
|
-
@adGroups = adGroups
|
323
|
-
@adWordsType = adWordsType
|
324
|
-
@campaignStatuses = campaignStatuses
|
325
|
-
@campaigns = campaigns
|
326
|
-
@customOptions = customOptions
|
327
|
-
@includeZeroImpression = includeZeroImpression
|
328
|
-
@keywordStatuses = keywordStatuses
|
329
|
-
@keywordType = keywordType
|
330
|
-
@keywords = keywords
|
331
|
-
end
|
332
|
-
end
|
333
|
-
|
334
|
-
# {https://adwords.google.com/api/adwords/v10}KeywordReportJob
|
335
|
-
# aggregationType - AdWords::ReportService::AggregationType
|
336
|
-
# clientEmails - SOAP::SOAPString
|
337
|
-
# crossClient - SOAP::SOAPBoolean
|
338
|
-
# endDay - SOAP::SOAPDate
|
339
|
-
# id - SOAP::SOAPLong
|
340
|
-
# name - SOAP::SOAPString
|
341
|
-
# startDay - SOAP::SOAPDate
|
342
|
-
# status - AdWords::ReportService::ReportJobStatus
|
343
|
-
# adWordsType - AdWords::ReportService::AdWordsType
|
344
|
-
# campaigns - SOAP::SOAPInt
|
345
|
-
# includeZeroImpression - SOAP::SOAPBoolean
|
346
|
-
# keywordStatuses - AdWords::ReportService::KeywordStatus
|
347
|
-
# keywordType - AdWords::ReportService::KeywordType
|
348
|
-
class KeywordReportJob < ReportJob
|
349
|
-
attr_accessor :aggregationType
|
350
|
-
attr_accessor :clientEmails
|
351
|
-
attr_accessor :crossClient
|
352
|
-
attr_accessor :endDay
|
353
|
-
attr_accessor :id
|
354
|
-
attr_accessor :name
|
355
|
-
attr_accessor :startDay
|
356
|
-
attr_accessor :status
|
357
|
-
attr_accessor :adWordsType
|
358
|
-
attr_accessor :campaigns
|
359
|
-
attr_accessor :includeZeroImpression
|
360
|
-
attr_accessor :keywordStatuses
|
361
|
-
attr_accessor :keywordType
|
362
|
-
|
363
|
-
def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adWordsType = nil, campaigns = [], includeZeroImpression = nil, keywordStatuses = [], keywordType = nil)
|
364
|
-
@aggregationType = aggregationType
|
365
|
-
@clientEmails = clientEmails
|
366
|
-
@crossClient = crossClient
|
367
|
-
@endDay = endDay
|
368
|
-
@id = id
|
369
|
-
@name = name
|
370
|
-
@startDay = startDay
|
371
|
-
@status = status
|
372
|
-
@adWordsType = adWordsType
|
373
|
-
@campaigns = campaigns
|
374
|
-
@includeZeroImpression = includeZeroImpression
|
375
|
-
@keywordStatuses = keywordStatuses
|
376
|
-
@keywordType = keywordType
|
377
|
-
end
|
378
|
-
end
|
379
|
-
|
380
|
-
# {https://adwords.google.com/api/adwords/v10}UrlReportJob
|
381
|
-
# aggregationType - AdWords::ReportService::AggregationType
|
382
|
-
# clientEmails - SOAP::SOAPString
|
383
|
-
# crossClient - SOAP::SOAPBoolean
|
384
|
-
# endDay - SOAP::SOAPDate
|
385
|
-
# id - SOAP::SOAPLong
|
386
|
-
# name - SOAP::SOAPString
|
387
|
-
# startDay - SOAP::SOAPDate
|
388
|
-
# status - AdWords::ReportService::ReportJobStatus
|
389
|
-
# adWordsType - AdWords::ReportService::AdWordsType
|
390
|
-
# campaigns - SOAP::SOAPInt
|
391
|
-
class UrlReportJob < ReportJob
|
392
|
-
attr_accessor :aggregationType
|
393
|
-
attr_accessor :clientEmails
|
394
|
-
attr_accessor :crossClient
|
395
|
-
attr_accessor :endDay
|
396
|
-
attr_accessor :id
|
397
|
-
attr_accessor :name
|
398
|
-
attr_accessor :startDay
|
399
|
-
attr_accessor :status
|
400
|
-
attr_accessor :adWordsType
|
401
|
-
attr_accessor :campaigns
|
402
|
-
|
403
|
-
def initialize(aggregationType = nil, clientEmails = [], crossClient = nil, endDay = nil, id = nil, name = nil, startDay = nil, status = nil, adWordsType = nil, campaigns = [])
|
404
|
-
@aggregationType = aggregationType
|
405
|
-
@clientEmails = clientEmails
|
406
|
-
@crossClient = crossClient
|
407
|
-
@endDay = endDay
|
408
|
-
@id = id
|
409
|
-
@name = name
|
410
|
-
@startDay = startDay
|
411
|
-
@status = status
|
412
|
-
@adWordsType = adWordsType
|
413
|
-
@campaigns = campaigns
|
414
|
-
end
|
415
|
-
end
|
416
|
-
|
417
|
-
# {https://adwords.google.com/api/adwords/v10}AdGroupStatus
|
418
|
-
class AdGroupStatus < ::String
|
419
|
-
Deleted = AdGroupStatus.new("Deleted")
|
420
|
-
Enabled = AdGroupStatus.new("Enabled")
|
421
|
-
Paused = AdGroupStatus.new("Paused")
|
422
|
-
end
|
423
|
-
|
424
|
-
# {https://adwords.google.com/api/adwords/v10}AdWordsType
|
425
|
-
class AdWordsType < ::String
|
426
|
-
ContentOnly = AdWordsType.new("ContentOnly")
|
427
|
-
SearchOnly = AdWordsType.new("SearchOnly")
|
428
|
-
end
|
429
|
-
|
430
|
-
# {https://adwords.google.com/api/adwords/v10}AggregationType
|
431
|
-
class AggregationType < ::String
|
432
|
-
Daily = AggregationType.new("Daily")
|
433
|
-
HourlyByDate = AggregationType.new("HourlyByDate")
|
434
|
-
HourlyRegardlessDate = AggregationType.new("HourlyRegardlessDate")
|
435
|
-
Monthly = AggregationType.new("Monthly")
|
436
|
-
Quarterly = AggregationType.new("Quarterly")
|
437
|
-
Summary = AggregationType.new("Summary")
|
438
|
-
Weekly = AggregationType.new("Weekly")
|
439
|
-
Yearly = AggregationType.new("Yearly")
|
440
|
-
end
|
441
|
-
|
442
|
-
# {https://adwords.google.com/api/adwords/v10}CampaignStatus
|
443
|
-
class CampaignStatus < ::String
|
444
|
-
Active = CampaignStatus.new("Active")
|
445
|
-
Deleted = CampaignStatus.new("Deleted")
|
446
|
-
Ended = CampaignStatus.new("Ended")
|
447
|
-
Paused = CampaignStatus.new("Paused")
|
448
|
-
Pending = CampaignStatus.new("Pending")
|
449
|
-
Suspended = CampaignStatus.new("Suspended")
|
450
|
-
end
|
451
|
-
|
452
|
-
# {https://adwords.google.com/api/adwords/v10}CustomReportOption
|
453
|
-
class CustomReportOption < ::String
|
454
|
-
AccountName = CustomReportOption.new("AccountName")
|
455
|
-
AdGroup = CustomReportOption.new("AdGroup")
|
456
|
-
AdGroupId = CustomReportOption.new("AdGroupId")
|
457
|
-
AdGroupStatus = CustomReportOption.new("AdGroupStatus")
|
458
|
-
AdWordsType = CustomReportOption.new("AdWordsType")
|
459
|
-
AverageConversionValue = CustomReportOption.new("AverageConversionValue")
|
460
|
-
AveragePosition = CustomReportOption.new("AveragePosition")
|
461
|
-
BottomPosition = CustomReportOption.new("BottomPosition")
|
462
|
-
BusinessAddress = CustomReportOption.new("BusinessAddress")
|
463
|
-
BusinessName = CustomReportOption.new("BusinessName")
|
464
|
-
CPM = CustomReportOption.new("CPM")
|
465
|
-
Campaign = CustomReportOption.new("Campaign")
|
466
|
-
CampaignEndDate = CustomReportOption.new("CampaignEndDate")
|
467
|
-
CampaignId = CustomReportOption.new("CampaignId")
|
468
|
-
CampaignStatus = CustomReportOption.new("CampaignStatus")
|
469
|
-
Clicks = CustomReportOption.new("Clicks")
|
470
|
-
ConversionRate = CustomReportOption.new("ConversionRate")
|
471
|
-
ConversionValuePerClick = CustomReportOption.new("ConversionValuePerClick")
|
472
|
-
ConversionValuePerCost = CustomReportOption.new("ConversionValuePerCost")
|
473
|
-
Conversions = CustomReportOption.new("Conversions")
|
474
|
-
Cost = CustomReportOption.new("Cost")
|
475
|
-
CostPerConversion = CustomReportOption.new("CostPerConversion")
|
476
|
-
CostPerTransaction = CustomReportOption.new("CostPerTransaction")
|
477
|
-
Cpc = CustomReportOption.new("Cpc")
|
478
|
-
CreativeDestinationUrl = CustomReportOption.new("CreativeDestinationUrl")
|
479
|
-
CreativeId = CustomReportOption.new("CreativeId")
|
480
|
-
CreativeStatus = CustomReportOption.new("CreativeStatus")
|
481
|
-
CreativeType = CustomReportOption.new("CreativeType")
|
482
|
-
Ctr = CustomReportOption.new("Ctr")
|
483
|
-
CurrencyCode = CustomReportOption.new("CurrencyCode")
|
484
|
-
CustomerId = CustomReportOption.new("CustomerId")
|
485
|
-
CustomerTimeZone = CustomReportOption.new("CustomerTimeZone")
|
486
|
-
DailyBudget = CustomReportOption.new("DailyBudget")
|
487
|
-
DefaultConversionCount = CustomReportOption.new("DefaultConversionCount")
|
488
|
-
DefaultConversionValue = CustomReportOption.new("DefaultConversionValue")
|
489
|
-
DescriptionLine1 = CustomReportOption.new("DescriptionLine1")
|
490
|
-
DescriptionLine2 = CustomReportOption.new("DescriptionLine2")
|
491
|
-
DescriptionLine3 = CustomReportOption.new("DescriptionLine3")
|
492
|
-
DestinationUrl = CustomReportOption.new("DestinationUrl")
|
493
|
-
ImageAdName = CustomReportOption.new("ImageAdName")
|
494
|
-
ImageHostingKey = CustomReportOption.new("ImageHostingKey")
|
495
|
-
Impressions = CustomReportOption.new("Impressions")
|
496
|
-
Keyword = CustomReportOption.new("Keyword")
|
497
|
-
KeywordDestinationUrl = CustomReportOption.new("KeywordDestinationUrl")
|
498
|
-
KeywordId = CustomReportOption.new("KeywordId")
|
499
|
-
KeywordStatus = CustomReportOption.new("KeywordStatus")
|
500
|
-
KeywordType = CustomReportOption.new("KeywordType")
|
501
|
-
LeadCount = CustomReportOption.new("LeadCount")
|
502
|
-
LeadValue = CustomReportOption.new("LeadValue")
|
503
|
-
MaxContentCPC = CustomReportOption.new("MaxContentCPC")
|
504
|
-
MaximumCPM = CustomReportOption.new("MaximumCPM")
|
505
|
-
MaximumCpc = CustomReportOption.new("MaximumCpc")
|
506
|
-
MinimumCpc = CustomReportOption.new("MinimumCpc")
|
507
|
-
PageViewCount = CustomReportOption.new("PageViewCount")
|
508
|
-
PageViewValue = CustomReportOption.new("PageViewValue")
|
509
|
-
PhoneNumber = CustomReportOption.new("PhoneNumber")
|
510
|
-
SaleCount = CustomReportOption.new("SaleCount")
|
511
|
-
SaleValue = CustomReportOption.new("SaleValue")
|
512
|
-
SignupCount = CustomReportOption.new("SignupCount")
|
513
|
-
SignupValue = CustomReportOption.new("SignupValue")
|
514
|
-
TopPosition = CustomReportOption.new("TopPosition")
|
515
|
-
TotalConversionValue = CustomReportOption.new("TotalConversionValue")
|
516
|
-
Transactions = CustomReportOption.new("Transactions")
|
517
|
-
VisibleUrl = CustomReportOption.new("VisibleUrl")
|
518
|
-
Website = CustomReportOption.new("Website")
|
519
|
-
end
|
520
|
-
|
521
|
-
# {https://adwords.google.com/api/adwords/v10}KeywordStatus
|
522
|
-
class KeywordStatus < ::String
|
523
|
-
Active = KeywordStatus.new("Active")
|
524
|
-
Deleted = KeywordStatus.new("Deleted")
|
525
|
-
Disapproved = KeywordStatus.new("Disapproved")
|
526
|
-
InActive = KeywordStatus.new("InActive")
|
527
|
-
Paused = KeywordStatus.new("Paused")
|
528
|
-
end
|
529
|
-
|
530
|
-
# {https://adwords.google.com/api/adwords/v10}KeywordType
|
531
|
-
class KeywordType < ::String
|
532
|
-
Broad = KeywordType.new("Broad")
|
533
|
-
Exact = KeywordType.new("Exact")
|
534
|
-
Phrase = KeywordType.new("Phrase")
|
535
|
-
end
|
536
|
-
|
537
|
-
# {https://adwords.google.com/api/adwords/v10}ReportJobStatus
|
538
|
-
class ReportJobStatus < ::String
|
539
|
-
Completed = ReportJobStatus.new("Completed")
|
540
|
-
Failed = ReportJobStatus.new("Failed")
|
541
|
-
InProgress = ReportJobStatus.new("InProgress")
|
542
|
-
Pending = ReportJobStatus.new("Pending")
|
543
|
-
end
|
544
|
-
|
545
|
-
# {https://adwords.google.com/api/adwords/v10}deleteReport
|
546
|
-
# reportJobId - SOAP::SOAPLong
|
547
|
-
class DeleteReport
|
548
|
-
attr_accessor :reportJobId
|
549
|
-
|
550
|
-
def initialize(reportJobId = nil)
|
551
|
-
@reportJobId = reportJobId
|
552
|
-
end
|
553
|
-
end
|
554
|
-
|
555
|
-
# {https://adwords.google.com/api/adwords/v10}deleteReportResponse
|
556
|
-
class DeleteReportResponse
|
557
|
-
def initialize
|
558
|
-
end
|
559
|
-
end
|
560
|
-
|
561
|
-
# {https://adwords.google.com/api/adwords/v10}getAllJobs
|
562
|
-
class GetAllJobs
|
563
|
-
def initialize
|
564
|
-
end
|
565
|
-
end
|
566
|
-
|
567
|
-
# {https://adwords.google.com/api/adwords/v10}getAllJobsResponse
|
568
|
-
class GetAllJobsResponse < ::Array
|
569
|
-
end
|
570
|
-
|
571
|
-
# {https://adwords.google.com/api/adwords/v10}getGzipReportDownloadUrl
|
572
|
-
# reportJobId - SOAP::SOAPLong
|
573
|
-
class GetGzipReportDownloadUrl
|
574
|
-
attr_accessor :reportJobId
|
575
|
-
|
576
|
-
def initialize(reportJobId = nil)
|
577
|
-
@reportJobId = reportJobId
|
578
|
-
end
|
579
|
-
end
|
580
|
-
|
581
|
-
# {https://adwords.google.com/api/adwords/v10}getGzipReportDownloadUrlResponse
|
582
|
-
# getGzipReportDownloadUrlReturn - SOAP::SOAPString
|
583
|
-
class GetGzipReportDownloadUrlResponse
|
584
|
-
attr_accessor :getGzipReportDownloadUrlReturn
|
585
|
-
|
586
|
-
def initialize(getGzipReportDownloadUrlReturn = nil)
|
587
|
-
@getGzipReportDownloadUrlReturn = getGzipReportDownloadUrlReturn
|
588
|
-
end
|
589
|
-
end
|
590
|
-
|
591
|
-
# {https://adwords.google.com/api/adwords/v10}getReportDownloadUrl
|
592
|
-
# reportJobId - SOAP::SOAPLong
|
593
|
-
class GetReportDownloadUrl
|
594
|
-
attr_accessor :reportJobId
|
595
|
-
|
596
|
-
def initialize(reportJobId = nil)
|
597
|
-
@reportJobId = reportJobId
|
598
|
-
end
|
599
|
-
end
|
600
|
-
|
601
|
-
# {https://adwords.google.com/api/adwords/v10}getReportDownloadUrlResponse
|
602
|
-
# getReportDownloadUrlReturn - SOAP::SOAPString
|
603
|
-
class GetReportDownloadUrlResponse
|
604
|
-
attr_accessor :getReportDownloadUrlReturn
|
605
|
-
|
606
|
-
def initialize(getReportDownloadUrlReturn = nil)
|
607
|
-
@getReportDownloadUrlReturn = getReportDownloadUrlReturn
|
608
|
-
end
|
609
|
-
end
|
610
|
-
|
611
|
-
# {https://adwords.google.com/api/adwords/v10}getReportJobStatus
|
612
|
-
# reportJobId - SOAP::SOAPLong
|
613
|
-
class GetReportJobStatus
|
614
|
-
attr_accessor :reportJobId
|
615
|
-
|
616
|
-
def initialize(reportJobId = nil)
|
617
|
-
@reportJobId = reportJobId
|
618
|
-
end
|
619
|
-
end
|
620
|
-
|
621
|
-
# {https://adwords.google.com/api/adwords/v10}getReportJobStatusResponse
|
622
|
-
# getReportJobStatusReturn - AdWords::ReportService::ReportJobStatus
|
623
|
-
class GetReportJobStatusResponse
|
624
|
-
attr_accessor :getReportJobStatusReturn
|
625
|
-
|
626
|
-
def initialize(getReportJobStatusReturn = nil)
|
627
|
-
@getReportJobStatusReturn = getReportJobStatusReturn
|
628
|
-
end
|
629
|
-
end
|
630
|
-
|
631
|
-
# {https://adwords.google.com/api/adwords/v10}scheduleReportJob
|
632
|
-
# job - AdWords::ReportService::ReportJob
|
633
|
-
class ScheduleReportJob
|
634
|
-
attr_accessor :job
|
635
|
-
|
636
|
-
def initialize(job = nil)
|
637
|
-
@job = job
|
638
|
-
end
|
639
|
-
end
|
640
|
-
|
641
|
-
# {https://adwords.google.com/api/adwords/v10}scheduleReportJobResponse
|
642
|
-
# scheduleReportJobReturn - SOAP::SOAPLong
|
643
|
-
class ScheduleReportJobResponse
|
644
|
-
attr_accessor :scheduleReportJobReturn
|
645
|
-
|
646
|
-
def initialize(scheduleReportJobReturn = nil)
|
647
|
-
@scheduleReportJobReturn = scheduleReportJobReturn
|
648
|
-
end
|
649
|
-
end
|
650
|
-
|
651
|
-
|
652
|
-
end; end
|