three-sixty 0.0.1 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/README.md +3 -1
- data/lib/three-sixty/report.rb +36 -0
- data/lib/three-sixty/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: 9ec17dd45d8f70cf5b6bde49bba6e7f47560961b
|
4
|
+
data.tar.gz: 1a262ae72333365aa7c18b08b224c06833455cc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16f6b107bcf2bac3d0324dbbfc266f9c84b351bc0923b1710ae26063b230a27485d088f42cbf37e3b37a93ea955af02bca5dfa1f8c5a822ec9fccadc0b11b9cb
|
7
|
+
data.tar.gz: 4dbd40997204dae0ca05c1d03030c514dc82422c006ef8383bcfb307ce80872b47d179cac271f5de668c97c9f10fb27c1289e7ef4ddcd2ccf0f3484bd2b57964
|
data/.gitignore
CHANGED
data/README.md
CHANGED
data/lib/three-sixty/report.rb
CHANGED
@@ -3,5 +3,41 @@ require_relative 'core/report'
|
|
3
3
|
module ThreeSixty
|
4
4
|
class Report < ThreeSixty::Core::Report
|
5
5
|
|
6
|
+
def all_keywords(start_date, level)
|
7
|
+
keyword_data = []
|
8
|
+
page = 0
|
9
|
+
begin
|
10
|
+
keywords = keyword(start_date, level, page: page)['keywordList']
|
11
|
+
break if keywords.nil?
|
12
|
+
keyword_data += keywords unless
|
13
|
+
page += 1
|
14
|
+
end while keywords.count >= 1000
|
15
|
+
keyword_data
|
16
|
+
end
|
17
|
+
|
18
|
+
def all_creatives(start_date, level)
|
19
|
+
creative_data = []
|
20
|
+
page = 0
|
21
|
+
begin
|
22
|
+
creatives = creative(start_date, level, page: page)['creativeList']
|
23
|
+
break if creatives.nil?
|
24
|
+
creative_data += creatives
|
25
|
+
page += 1
|
26
|
+
end while creatives.count >= 1000
|
27
|
+
creative_data
|
28
|
+
end
|
29
|
+
|
30
|
+
def all_regions(start_date, level)
|
31
|
+
region_data = []
|
32
|
+
page = 0
|
33
|
+
begin
|
34
|
+
regions = region(start_date, level, page: page)['regionList']
|
35
|
+
break if regions.nil?
|
36
|
+
region_data += regions
|
37
|
+
page += 1
|
38
|
+
end while regions.count >= 1000
|
39
|
+
region_data
|
40
|
+
end
|
41
|
+
|
6
42
|
end
|
7
43
|
end
|
data/lib/three-sixty/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: three-sixty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Padden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Connecting to the 360 api
|
14
14
|
email:
|