citygrid_api 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.22
1
+ 0.0.23
data/citygrid_api.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "citygrid_api"
8
- s.version = "0.0.22"
8
+ s.version = "0.0.23"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Elpizo Choi"]
12
- s.date = "2012-12-06"
12
+ s.date = "2013-01-16"
13
13
  s.description = "Ruby wrapper for CityGrid APIs"
14
14
  s.email = "fu7iin@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -88,6 +88,7 @@ Gem::Specification.new do |s|
88
88
  "lib/citygrid/api/advertising/account_manager.rb",
89
89
  "lib/citygrid/api/advertising/ad_group.rb",
90
90
  "lib/citygrid/api/advertising/ad_group_ad.rb",
91
+ "lib/citygrid/api/advertising/ad_group_call_detail.rb",
91
92
  "lib/citygrid/api/advertising/ad_group_criterion.rb",
92
93
  "lib/citygrid/api/advertising/ad_group_geo.rb",
93
94
  "lib/citygrid/api/advertising/billing.rb",
@@ -170,7 +171,7 @@ Gem::Specification.new do |s|
170
171
  ]
171
172
  s.licenses = ["MIT"]
172
173
  s.require_paths = ["lib"]
173
- s.rubygems_version = "1.8.24"
174
+ s.rubygems_version = "1.8.16"
174
175
  s.summary = "Ruby wrapper for CityGrid APIs"
175
176
 
176
177
  if s.respond_to? :specification_version then
@@ -31,6 +31,7 @@ api:
31
31
  endpoint: advertising/campaign/v2/accountmanager
32
32
  ad_group: advertising/adgroup/v2
33
33
  ad_group_ad: advertising/adgroupad/v2
34
+ ad_group_call_detail: advertising/performance/v2/adgroup/calldetail
34
35
  ad_group_criterion: advertising/adgroupcriterion/v2
35
36
  ad_group_geo: advertising/adgroupgeo/v2
36
37
  budget: advertising/budget/v2/recommend
@@ -0,0 +1,9 @@
1
+ class CityGrid
2
+ class API
3
+ class Advertising
4
+ class AdGroupCallDetail < Advertising
5
+ include CityGrid::API::Searchable
6
+ end
7
+ end
8
+ end
9
+ end
@@ -2,8 +2,7 @@ class CityGrid
2
2
  class API
3
3
  class Advertising
4
4
  class CallDetail < Advertising
5
- define_action :search, :post, "get", :auth_token => true, :format => false
6
- define_action :note, :post, "note", :auth_token => true, :format => false
5
+ define_action :search, :post, "", :auth_token => true, :format => false
7
6
  end
8
7
  end
9
8
  end
@@ -7,6 +7,10 @@ class CityGrid
7
7
  base.define_action :search, :get, "get",
8
8
  :auth_token => true,
9
9
  :format => true
10
+
11
+ base.define_action :get, :get, nil,
12
+ :auth_token => true,
13
+ :format => true
10
14
  end
11
15
  end
12
16
  end
@@ -2,30 +2,34 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'helper')
2
2
 
3
3
  context "search for call detail" do
4
4
  set :vcr, false
5
- context "by campaign" do
6
- setup do
7
- SessionHelper.sales_coord.call_api CityGrid::API::Advertising::CallDetail,
8
- :search,
9
- :campaignId => 786,
10
- :period => 'last30Days'
11
- end
12
- should("not be empty"){ !topic.empty? }
13
- should("have call detail resources"){
14
- topic.callDetailsResources.length > 0
15
- }
16
- end
5
+ # context "by campaign" do
6
+ # setup do
7
+ # SessionHelper.sales_coord.call_api CityGrid::API::Advertising::CallDetail,
8
+ # :search,
9
+ # :campaignId => 786,
10
+ # :period => 'last30Days'
11
+ # end
12
+ # should("not be empty"){ !topic.empty? }
13
+ # should("have call detail resources"){
14
+ # topic.callDetailsResources.length > 0
15
+ # }
16
+ # end
17
+ #
18
+ # context "by adgroup" do
19
+ # setup do
20
+ # SessionHelper.sales_coord.call_api CityGrid::API::Advertising::CallDetail,
21
+ # :search,
22
+ # :adGroupId => 7264632,
23
+ # :period => 'last30Days'
24
+ # end
25
+ # should("not be empty"){ !topic.empty? }
26
+ # should("have call detail resources"){
27
+ # topic.callDetailsResources.length > 0
28
+ # }
29
+ # end
17
30
 
18
- context "by adgroup" do
19
- setup do
20
- SessionHelper.sales_coord.call_api CityGrid::API::Advertising::CallDetail,
21
- :search,
22
- :adGroupId => 7264632,
23
- :period => 'last30Days'
24
- end
25
- should("not be empty"){ !topic.empty? }
26
- should("have call detail resources"){
27
- topic.callDetailsResources.length > 0
28
- }
31
+ setup do
32
+ puts CityGrid::API::Advertising::CallDetail.search :token => '256aa52875b142019b284ba2614f0428', :adGroupId => 20215642, :period => 'last30Days'
29
33
  end
30
34
 
31
35
  # Can't really do this test if can't reliably access the same note again and again
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: citygrid_api
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.22
5
+ version: 0.0.23
6
6
  platform: ruby
7
7
  authors:
8
8
  - Elpizo Choi
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-12-06 00:00:00 Z
13
+ date: 2013-01-16 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -192,6 +192,7 @@ files:
192
192
  - lib/citygrid/api/advertising/account_manager.rb
193
193
  - lib/citygrid/api/advertising/ad_group.rb
194
194
  - lib/citygrid/api/advertising/ad_group_ad.rb
195
+ - lib/citygrid/api/advertising/ad_group_call_detail.rb
195
196
  - lib/citygrid/api/advertising/ad_group_criterion.rb
196
197
  - lib/citygrid/api/advertising/ad_group_geo.rb
197
198
  - lib/citygrid/api/advertising/billing.rb
@@ -294,7 +295,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
294
295
  requirements: []
295
296
 
296
297
  rubyforge_project:
297
- rubygems_version: 1.8.24
298
+ rubygems_version: 1.8.16
298
299
  signing_key:
299
300
  specification_version: 3
300
301
  summary: Ruby wrapper for CityGrid APIs