three-sixty 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46093f5001048093a0712c6ed9d473845df12bf7
4
- data.tar.gz: 1a98a57c052bcdaf8cee266c2c2c1edbff6cc60e
3
+ metadata.gz: c8bb8285370ea960ab4d6b2f43ba4a3d3fdb0aad
4
+ data.tar.gz: df4ff45183e9adbd55306b037bbf7b5f0e9f1307
5
5
  SHA512:
6
- metadata.gz: 6bd51cd208f2d068415d30088a7c7454ceeb0d1961ad39e34031a9b77c7d6b641188d23d7a847539c6165df6342583099e21a6f2f29815b81e8dff73bad78499
7
- data.tar.gz: 61f5a9ceafd9c201458e3426dd5e0eedaabfff332bfa6a21b3c36109265aebca68d280a2e436b353ff47ded7c379205a0f215b9caffd70b2ce157dfcb01e46a7
6
+ metadata.gz: 73348a8ebf55b9c6f58b9b55a192273a1fc9546e03b4ba5a1ae38ebb1e25e256b7df69ad11d2e16cfd7c53905397fdf175bc09e867fade72e3d6e1de6752ad02
7
+ data.tar.gz: 5272e7069aa97df7dc8ee3d2d536af2a2b6c55081d5128da92d09f31bbb7827bc2ec79fe8cafb94d87aa0df876c5ecb1f8709305feaa4c2d5f6b3b3510b4b0e8
@@ -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
- return [] if keyword_ids.empty?
13
- get_info_by_id_list(keyword_ids)["keywordList"]
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
- return [] if keyword_ids.empty?
19
- get_status_by_id_list(keyword_ids)["keywordList"]
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)
@@ -1,3 +1,3 @@
1
1
  module ThreeSixty
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
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.7
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-07-02 00:00:00.000000000 Z
11
+ date: 2014-08-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Connecting to the 360 api
14
14
  email: