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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 872bb914f504ab0d8f78387b202b41b618a61e6d
4
- data.tar.gz: f065b6e757fc41c38d2e39fe5dfe6009c9be71d0
3
+ metadata.gz: e5ea9a2f68ab024058db195ff33acb2e3c8eaa0e
4
+ data.tar.gz: 6ea308cc9e3c116bec9454035e78859dd6ae42bc
5
5
  SHA512:
6
- metadata.gz: 96626935185812e7a7d0fe4cd9066b14d39ed26cd48024c3c00f3fc321296e1a227908c87dd42d8dc7ce08b331491a3e3d7ed51f4a604c5df62840b58f3a55f8
7
- data.tar.gz: 1845801d10c318c742e37d2c73f4013308bb72e91d523a0d4506065a7fa453c607fe4e0192eef3102ca76a12aeead061443ed166b63c9c96d2a20805cd041ae4
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
- status = poll_report(id).body[:poll_generate_report_response][:report_request_status][:status] rescue nil
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)
@@ -1,3 +1,3 @@
1
1
  module BingAdsReporting
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-03-31 00:00:00.000000000 Z
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.0.5
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