adops_report_scrapper 0.2.26 → 0.2.27
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fb2480f19f6ff8991b7fed728ac0141d0a9b973
|
4
|
+
data.tar.gz: bb95392905946a4b5166b0b664591a8e41db83f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcb4261f4001f67c2d5a277adb7499fac125a60397d178ae68f7fb00ff517190783226c0656a3b2e79bc9b199fc0324f74292c9e943c005334587a444576c523
|
7
|
+
data.tar.gz: a9fdf9f4b9da9549adba283fc2ebf3be7445c7c6b7512bb9527f1e0d6723c15ee87a35b02b994f0af798520e6c1fbecf2e0820ade037a0b91687d2b86d23a011
|
@@ -32,7 +32,7 @@ class AdopsReportScrapper::PopadsbuyerClient < AdopsReportScrapper::BaseClient
|
|
32
32
|
response = RestClient.post "https://www.popads.net/api/report_advertiser?key=#{@secret}&zone=#{time_zone_id}&start=#{date_str}%2000%3A00&end=#{date_str}%2023%3A59&groups=campaign,datetime%3Aday", {}
|
33
33
|
|
34
34
|
data = JSON.parse response
|
35
|
-
unless data[0]
|
35
|
+
unless data['rows'] && data['rows'][0]
|
36
36
|
@data = []
|
37
37
|
return
|
38
38
|
end
|
@@ -51,7 +51,7 @@ class AdopsReportScrapper::PopadsbuyerClient < AdopsReportScrapper::BaseClient
|
|
51
51
|
response = RestClient.post "https://www.popads.net/api/report_advertiser?key=#{@secret}&zone=#{time_zone_id}&start=#{date_str}%2000%3A00&end=#{date_str}%2023%3A59&groups=datetime%3Ahour", {}
|
52
52
|
|
53
53
|
data = JSON.parse response
|
54
|
-
unless data[0]
|
54
|
+
unless data['rows'] && data['rows'][0]
|
55
55
|
@data = []
|
56
56
|
return
|
57
57
|
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.2.
|
4
|
+
version: 0.2.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stayman Hou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|