bing-ads-reporting 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bing-ads-reporting/service.rb +4 -2
- data/lib/bing-ads-reporting/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5ea9a2f68ab024058db195ff33acb2e3c8eaa0e
|
4
|
+
data.tar.gz: 6ea308cc9e3c116bec9454035e78859dd6ae42bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a6c30cb0d9568d4790a695060267f140c8c558f69fc207e854aa6db141e88e4f5356a8bd943efc86165e3b4ea968843152fd3eb0e0500433a864419f690b6ec
|
7
|
+
data.tar.gz: e5597a7043e225f0c420fa5e3e2f14f0eae0b8f66b8149584b36769959504b7031017ddab9115b6316d7567a62d430d6c4b09849b4136286550b76880af0b6b5
|
@@ -49,7 +49,9 @@ module BingAdsReporting
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def report_ready?(id)
|
52
|
-
|
52
|
+
polled = poll_report(id)
|
53
|
+
status = polled.body[:poll_generate_report_response][:report_request_status][:status] rescue nil
|
54
|
+
raise "Report status: Error for ID: #{id}. TrackingId: #{polled.header[:tracking_id]}" if status == "Error"
|
53
55
|
status == "Success"
|
54
56
|
end
|
55
57
|
|
@@ -99,7 +101,7 @@ module BingAdsReporting
|
|
99
101
|
ns('UserName') => @settings[:username],
|
100
102
|
ns('Password') => @settings[:password] }
|
101
103
|
})
|
102
|
-
# .merge({pretty_print_xml: true, log_level: :debug}) # for more logging
|
104
|
+
# .merge({pretty_print_xml: true, log_level: :debug})) # for more logging
|
103
105
|
end
|
104
106
|
|
105
107
|
def ns(str)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bing-ads-reporting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Borkowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: datebox
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.2.2
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Allows easily pull reports from Bing Ads
|