sogou 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: 34ca740ff610ccc11d870a62c19a27598d665774
4
- data.tar.gz: 2c8c3d3e28e7243cfbf26fbbd7098c6ccca0614f
3
+ metadata.gz: dab71821dc1bdbba2e964e7f86521544958e5a41
4
+ data.tar.gz: 93af2155aeddcc07320f07a3b6ccbbc1b223146d
5
5
  SHA512:
6
- metadata.gz: 7ce3c4afc5e97a99795a243c41e0719a3bad53b16c97d9334efaed7443e13cf8e3c81ad2f84cef3fba778b86211df8a4a6073bb0ea92e47984880521bf314130
7
- data.tar.gz: 307392307a8daaa544c8ef86fbec772db420963058aed0c13383ff6749058b45876bc3bccf730be8100f16adbc72c14b2808e2a6ae6a73836801fcf65801fc96
6
+ metadata.gz: 999fccf29f188b8aa8a482dbb780873fe7179c37e41612e011086a11d1326ffd48929bd9cf71df717d1b1df7467bb27d12b9c62a87c331d14b1493c4afa4b9a5
7
+ data.tar.gz: beba552f8fe094c83b7a6fef0c9bee38cbbe5cb112959c088e042c346456101dfe8f3fbee68f679ec9401317430cbc1db4ffd7cb19df678556fdfd497299b4da
@@ -8,6 +8,7 @@ module Sogou
8
8
  @quota = @header[:quota].to_i
9
9
  @status = @header[:status].to_i
10
10
  @desc = @header[:desc]
11
+ @failures = @header[:failures]
11
12
  @oprs = @header[:oprs]
12
13
  @oprtime = @header[:oprtime]
13
14
  end
@@ -54,12 +54,12 @@ module Sogou
54
54
  puts operation.build if debug
55
55
  response = operation.call
56
56
  ap response if debug
57
- # ap response.failures if debug
58
- if response.failures
59
- raise response.failures.to_s
60
- else
57
+ ap response.failures if debug
58
+ # if response.failures
59
+ # raise response.failures.to_s
60
+ # else
61
61
  Sogou::Response.new(response,name_response_sym)
62
- end
62
+ # end
63
63
  end
64
64
  def operations
65
65
  @client.operations(@service_name,@port_name)
@@ -1,64 +1,57 @@
1
1
  module Sogou
2
2
  module SEM
3
+
3
4
  module Format
4
- CSV = 2
5
+ CSV = 1
5
6
  end
6
7
 
7
8
  module ReportState
8
- PENDING = 1 #等待中
9
- DOING = 2 #处理中
10
- DONE = 3 #处理成功
9
+ DOING = 0 #处理中
10
+ DONE = 1 #处理成功
11
+ ERROR =-1 #报表生成异常
11
12
  end
12
13
 
13
-
14
14
  module PerformanceData
15
15
  COST = 'cost' #消费
16
16
  CPC = 'cpc' #每个点击的消费
17
17
  CLICK = 'click' #点击数
18
18
  IMPRESSION = 'impression' #展示量
19
19
  CTR = 'ctr' #转化率
20
- CPM = 'cpm' #?
21
- POSITION = 'position' #?
22
- CONVERSION = 'conversion' #?
20
+ # CPM = 'cpm' #?
21
+ # POSITION = 'position' #?
22
+ # CONVERSION = 'conversion' #?
23
23
  end
24
24
 
25
- module LevelOfDetails
26
- PORTFOLIO = 2 #账户粒度
27
- CAMPAIGN = 3 #计划粒度
28
- ADGROUP = 5 #单元粒度
29
- CREATIVE = 7 #创意粒度
30
- KEYWORDID = 11 #关键词(keywordid)粒度
31
- KEYWORD = 12 #关键词(keywordid)+创意粒度
32
- end
25
+ # module LevelOfDetails
26
+ # PORTFOLIO = 2 #账户粒度
27
+ # CAMPAIGN = 3 #计划粒度
28
+ # ADGROUP = 5 #单元粒度
29
+ # CREATIVE = 7 #创意粒度
30
+ # KEYWORDID = 11 #关键词(keywordid)粒度
31
+ # KEYWORD = 12 #关键词(keywordid)+创意粒度
32
+ # end
33
33
 
34
34
  module ReportType
35
- PORTFOLIO = 2 #账户
36
- CAMPAIGN = 10 #计划
37
- ADGROUP = 11 #单元
38
- KEYWORDID = 14 #关键词(keywordid)
39
- CREATIVE = 12 #创意
40
- PAIR = 15 #配对
41
- REGION = 3 #地域
35
+ PORTFOLIO = 1 #账户
36
+ CAMPAIGN = 2 #计划
37
+ ADGROUP = 3 #单元
38
+ KEYWORDID = 5 #关键词(keywordid)
39
+ CREATIVE = 4 #创意
42
40
  QUERY = 6 #搜索词
43
- WORD = 9 #关键词(wordid)
44
41
  end
45
42
 
46
43
  module StatRange #注意:统计范围不能细于当前的统计 粒度,例如统计粒度为计划,则统计 范围不能细到单元
47
- PORTFOLIO = 2 #账户范围
48
- CAMPAIGN = 3 #计划范围
49
- ADGROUP = 5 #单元范围
50
- CREATIVE = 7 #创意范围
51
- KEYWORDID = 11 #关键词(keywordid)范围
52
- WORD = 6 #关键词(wordid)范围
44
+ PORTFOLIO = 1 #账户范围
45
+ CAMPAIGN = 2 #计划范围
46
+ ADGROUP = 3 #单元范围
47
+ CREATIVE = 4 #创意范围
48
+ KEYWORDID = 5 #关键词(keywordid)范围
53
49
  end
54
50
 
55
51
  module UnitOfTime
56
- DAY = 5 #分日
57
- WEEK = 4 #分周
52
+ DAY = 1 #分日
53
+ WEEK = 2 #分周
58
54
  MONTH = 3 #分月
59
- YEAR = 1 #分年
60
- HOUR = 7 #分小时
61
- TIME = 8 #请求时间段汇总(endDate-StartDate)
62
55
  end
63
56
 
64
57
  module Device
@@ -1,3 +1,3 @@
1
1
  module Sogou
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sogou
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
  - seoaqua
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-22 00:00:00.000000000 Z
11
+ date: 2014-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: savon
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  description: sogou web services
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
63
  - Gemfile
64
64
  - LICENSE.txt
65
65
  - README.md
@@ -96,17 +96,17 @@ require_paths:
96
96
  - lib
97
97
  required_ruby_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - '>='
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - '>='
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.1.5
109
+ rubygems_version: 2.2.2
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: sogou sem services