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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3357b6f308efd6f848d6c5cee39547780b32dc2b
4
- data.tar.gz: 3ad95ad642210362e42b440278ec98d7d9f8b75f
3
+ metadata.gz: 9ec17dd45d8f70cf5b6bde49bba6e7f47560961b
4
+ data.tar.gz: 1a262ae72333365aa7c18b08b224c06833455cc1
5
5
  SHA512:
6
- metadata.gz: 97e80e12364c3a079c33c5f6e07abf23d2056eeacf6b60490d8341f5f339c825880779a42950024d4acc974e73aa4b90944cc9e3c18e3d0a15df1480afa8f670
7
- data.tar.gz: 9385af23b6f6187947b989fc1e0d2feed8b99b678cf629b8f21416b3468ff08699439fa3c6c93e6d73caf408fada0c5e54d3718d9734fb257cc513d081bd8f5e
6
+ metadata.gz: 16f6b107bcf2bac3d0324dbbfc266f9c84b351bc0923b1710ae26063b230a27485d088f42cbf37e3b37a93ea955af02bca5dfa1f8c5a822ec9fccadc0b11b9cb
7
+ data.tar.gz: 4dbd40997204dae0ca05c1d03030c514dc82422c006ef8383bcfb307ce80872b47d179cac271f5de668c97c9f10fb27c1289e7ef4ddcd2ccf0f3484bd2b57964
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  documentation/*
2
2
  Gemfile*
3
3
  .bundle/*
4
- .ruby*
4
+ .ruby*
5
+ *.gem
data/README.md CHANGED
@@ -3,7 +3,9 @@ A Ruby gem for connecting to the 360 Dianjing AD system, using the Open API Plat
3
3
 
4
4
  ## Install
5
5
 
6
- gem 'three-sixty', github: 'forward3d/three-sixty'
6
+ Using bundler, add to your Gemfile
7
+
8
+ gem 'three-sixty'
7
9
 
8
10
 
9
11
  ## Configuration
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ThreeSixty
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.4"
3
3
  end
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.1
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-17 00:00:00.000000000 Z
11
+ date: 2014-06-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Connecting to the 360 api
14
14
  email: