adops_report_scrapper 0.1.32 → 0.1.33

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: 7626d2300b7b2ac18fd80e8f71a8f07cccef2e79
4
- data.tar.gz: 4252ccae865ad2dac558fd7d812fcd04d6a4138a
3
+ metadata.gz: 4a633c8cf0856165fc6c1800dba2b47783f8c430
4
+ data.tar.gz: 4a97596911c12a37f0cdbdf8dc4c1489dca5778f
5
5
  SHA512:
6
- metadata.gz: b464d5fcd7661e7f614d89bf8a61124ddfbd8e172760c2eafe6fc5bec74fbcf405f1e8b17d2e48b88c2c0fd766d073fd00269559fb26f7c87a6a0fc0e6a10049
7
- data.tar.gz: 34b3c9a21a078d155293d905d9b02eb8bbc476d56d8c8b6728be6782d127a91d4d9a71d7a48f48015a7ada5525459c31574e6f2c2dc52c24998021a82e22b51a
6
+ metadata.gz: 98a1f620bd14c2c635f3651f59167da96755befe938ee32cb4c10f205e33122d39365fedb85060a97c76d73edb180c56b4332aecb2bc75e5d08b80edf0996435
7
+ data.tar.gz: d6fe2d0a0c1a37e270a718fd21a68d13c9e8e2caf87aed4803986f81f30c05a3fa7d8e00475b15761dc76059b25326c47febfedf06e4c2f343919441b2798809
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.1.33
4
+ distinguish adx product in adx client
5
+
3
6
  ## 0.1.25
4
7
  reduce sonobi country number to fix it
5
8
 
@@ -50,13 +50,15 @@ class AdopsReportScrapper::AdxClient < AdopsReportScrapper::BaseClient
50
50
 
51
51
  def scrap
52
52
  date_str = @date.strftime('%Y-%m-%d')
53
- result = @client.accounts.reports.generate(
53
+ option = {
54
54
  :accountId => @account_id,
55
55
  :startDate => date_str,
56
56
  :endDate => date_str,
57
57
  :metric => ['AD_REQUESTS', 'AD_IMPRESSIONS', 'CLICKS', 'EARNINGS'],
58
- :dimension => ['DATE', 'DFP_AD_UNITS', 'DFP_AD_UNIT_ID', 'COUNTRY_CODE', 'PLATFORM_TYPE_NAME'],
59
- :alt => 'csv').execute
58
+ :dimension => ['DATE', 'DFP_AD_UNITS', 'DFP_AD_UNIT_ID', 'COUNTRY_CODE', 'PLATFORM_TYPE_NAME', 'PRODUCT_NAME'],
59
+ :alt => 'csv'
60
+ }
61
+ result = @client.accounts.reports.generate(option).execute
60
62
  @data = CSV.parse(result.body)
61
63
  end
62
64
  end
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.1.32"
2
+ VERSION = "0.1.33"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adops_report_scrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.32
4
+ version: 0.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stayman Hou
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-09 00:00:00.000000000 Z
11
+ date: 2016-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient