outbrain-api 0.1.6 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1432fa565760986e9847e2626c845e83a74f9213
4
- data.tar.gz: ffb584a218ea82418e194929ad6c2794b749364a
3
+ metadata.gz: 2e37c66899f9c3b56713940571536a8cf3d84da9
4
+ data.tar.gz: 67906118549c3fbaec86440c60e70774b4332db0
5
5
  SHA512:
6
- metadata.gz: 164939127bb86b6cf321dae9bf5dc507f76c442d0496ed841b3341f729bfd41cbd105de88ebc4b9c95c8ef8f32ff79324f54641825a8d87a1c22d1573e1f6046
7
- data.tar.gz: 62d1c73188c94333a0089a4bfeaed64171201051eaf2dda7bc6286dfd0cc2e59fd8a3a9487d0e39d0bd4257ae3892079a8b834f963ce340a01262bdd441f9b51
6
+ metadata.gz: d525ab153294ea31beea439e667476f499b11f7f874535507796e3f72a8db6a33795f97b8cfd594026c99b8a947cc4e1194bcc28ded28de9f75db681e7ee0783
7
+ data.tar.gz: e4dd0c87a903c143eba2a42b81a5399c52cc901dcddd874f8617968c225dc0431979d94fd7c484033352ff9686e7974cf9934dd26893b747b533506baa5dfb97
data/lib/outbrain/api.rb CHANGED
@@ -12,6 +12,7 @@ require "outbrain/api/campaign"
12
12
  require "outbrain/api/budget"
13
13
  require "outbrain/api/campaign_report"
14
14
  require "outbrain/api/publisher_report"
15
+ require "outbrain/api/campaign_by_day_report"
15
16
 
16
17
  module Outbrain
17
18
  HEADER_AUTH_KEY = 'OB-TOKEN-V1'
@@ -0,0 +1,18 @@
1
+ require 'outbrain/api/report'
2
+
3
+ module Outbrain
4
+ module Api
5
+ class CampaignByDayReport < Report
6
+ PATH = 'performanceByDay'
7
+
8
+ def self.path(campaign_id)
9
+ "campaigns/#{campaign_id}/#{PATH}"
10
+ end
11
+
12
+ def self.where(options = {})
13
+ super(options.merge({path: self.path(options.fetch(:campaign_id))}))
14
+ end
15
+ end
16
+ end
17
+ end
18
+
@@ -1,5 +1,5 @@
1
1
  module Outbrain
2
2
  module Api
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outbrain-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Blanchet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-19 00:00:00.000000000 Z
11
+ date: 2016-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -113,6 +113,7 @@ files:
113
113
  - lib/outbrain/api.rb
114
114
  - lib/outbrain/api/budget.rb
115
115
  - lib/outbrain/api/campaign.rb
116
+ - lib/outbrain/api/campaign_by_day_report.rb
116
117
  - lib/outbrain/api/campaign_report.rb
117
118
  - lib/outbrain/api/config.rb
118
119
  - lib/outbrain/api/errors.rb