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 +4 -4
- data/CHANGELOG +3 -0
- data/lib/adops_report_scrapper/adx_client.rb +5 -3
- data/lib/adops_report_scrapper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a633c8cf0856165fc6c1800dba2b47783f8c430
|
4
|
+
data.tar.gz: 4a97596911c12a37f0cdbdf8dc4c1489dca5778f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98a1f620bd14c2c635f3651f59167da96755befe938ee32cb4c10f205e33122d39365fedb85060a97c76d73edb180c56b4332aecb2bc75e5d08b80edf0996435
|
7
|
+
data.tar.gz: d6fe2d0a0c1a37e270a718fd21a68d13c9e8e2caf87aed4803986f81f30c05a3fa7d8e00475b15761dc76059b25326c47febfedf06e4c2f343919441b2798809
|
data/CHANGELOG
CHANGED
@@ -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
|
-
|
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'
|
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
|
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.
|
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-
|
11
|
+
date: 2016-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|