adops_report_scrapper 0.1.61 → 0.1.62

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69824afd48c63b45650950d184a9713ebeae951e
4
- data.tar.gz: 9aa1dee3f08d42f7430cd7dfce42e8e467565850
3
+ metadata.gz: 5601b07d21e2faa78af8c8437dc421710ee443d1
4
+ data.tar.gz: f99f7465028d86170f5714dac2bcf7a237cbc8d0
5
5
  SHA512:
6
- metadata.gz: a8ba97f5ba81deb3869efde99d9cbdc691c05a26f1772c3f13dc09865e8d4c05e937df391561fb6e004c6a7e457c4608a4456746c14ee530a170a0c3411b64e8
7
- data.tar.gz: 1c6bd33c7e073b9a5876cb417ae4f03af7aa5d0e854c42c2d408a315a4b3a099e07591b3243ec4e66318621399a50d7aba95a112a581e8ce0eba5e2e3d3c7903
6
+ metadata.gz: d3a366dbc34a9e96740714ae865be067e4153f2559350f312b7af22cd6777c143066bc7e7b83d3917ac362e77fb771449ab3f54c0426496c5fa7f07f9c609a81
7
+ data.tar.gz: 142425cb523cce5f3ffb85278fa5d22a0ad697b8c76f29deb1d1172bc625d5585e2a106b576c9800784ec1ea841a6e39720029936b7ffaabfdf67a4de33bef4e
@@ -25,7 +25,7 @@ class AdopsReportScrapper::AppnexusClient < AdopsReportScrapper::BaseClient
25
25
  response_data = JSON.parse(response.body)
26
26
  token = response_data['response']['token']
27
27
 
28
- response = RestClient.post 'http://api.appnexus.com/report', { 'report' => { 'report_type' => 'network_analytics', 'report_interval' => 'last_7_days', 'columns' => %w(day publisher_name geo_country supply_type imp_requests imps clicks total_convs revenue) } }.to_json, { content_type: :json, accept: :json, authorization: token }
28
+ response = RestClient.post 'http://api.appnexus.com/report', { 'report' => { 'report_type' => 'network_analytics', 'report_interval' => 'last_7_days', 'columns' => %w(day publisher_name site_name geo_country supply_type imp_requests imps clicks total_convs revenue) } }.to_json, { content_type: :json, accept: :json, authorization: token }
29
29
  response_data = JSON.parse(response.body)
30
30
  report_id = response_data['response']['report_id']
31
31
 
@@ -36,6 +36,6 @@ class AdopsReportScrapper::AppnexusClient < AdopsReportScrapper::BaseClient
36
36
  fail 'appnexus report failed' unless response_data['response']['execution_status'] == 'ready'
37
37
 
38
38
  response = RestClient.get "http://api.appnexus.com/report-download?id=#{report_id}", { authorization: token }
39
- @data = CSV.parse(response.body).select { |row| row[0] == 'day' || (row[0] == date_str && row[4].to_i > 0) }
39
+ @data = CSV.parse(response.body).select { |row| row[0] == 'day' || (row[0] == date_str && row[5].to_i > 0) }
40
40
  end
41
41
  end
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.1.61"
2
+ VERSION = "0.1.62"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adops_report_scrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.61
4
+ version: 0.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stayman Hou