three-sixty 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/three-sixty/keyword.rb +10 -4
- 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: c8bb8285370ea960ab4d6b2f43ba4a3d3fdb0aad
|
4
|
+
data.tar.gz: df4ff45183e9adbd55306b037bbf7b5f0e9f1307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73348a8ebf55b9c6f58b9b55a192273a1fc9546e03b4ba5a1ae38ebb1e25e256b7df69ad11d2e16cfd7c53905397fdf175bc09e867fade72e3d6e1de6752ad02
|
7
|
+
data.tar.gz: 5272e7069aa97df7dc8ee3d2d536af2a2b6c55081d5128da92d09f31bbb7827bc2ec79fe8cafb94d87aa0df876c5ecb1f8709305feaa4c2d5f6b3b3510b4b0e8
|
data/lib/three-sixty/keyword.rb
CHANGED
@@ -9,14 +9,20 @@ module ThreeSixty
|
|
9
9
|
|
10
10
|
def download_ad_group_all_keywords(ad_group_id, opts = {})
|
11
11
|
keyword_ids = download_ad_group_keyword_ids(ad_group_id)
|
12
|
-
|
13
|
-
|
12
|
+
id_list = []
|
13
|
+
keyword_ids.each_slice(500) do |ids|
|
14
|
+
id_list += get_info_by_id_list(ids)["keywordList"]
|
15
|
+
end
|
16
|
+
id_list
|
14
17
|
end
|
15
18
|
|
16
19
|
def download_ad_group_all_keyword_statuses(ad_group_id, opts = {})
|
17
20
|
keyword_ids = download_ad_group_keyword_ids(ad_group_id)
|
18
|
-
|
19
|
-
|
21
|
+
id_list = []
|
22
|
+
keyword_ids.each_slice(500) do |ids|
|
23
|
+
id_list += get_status_by_id_list(ids)["keywordList"]
|
24
|
+
end
|
25
|
+
id_list
|
20
26
|
end
|
21
27
|
|
22
28
|
def download_changed_keyword_ids(from_time)
|
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.8
|
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-
|
11
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Connecting to the 360 api
|
14
14
|
email:
|