Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Handle the case when the url is nil for no data from bing
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantvithani committed Mar 4, 2019
1 parent b55c103 commit 80b21fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/bing/ads/api/v12/services/reporting.rb
Expand Up @@ -35,6 +35,9 @@ def report_url(report_request_id)
end

def report_body(report_request_id)
report_url = report_url(report_request_id)
return if report_url.nil?

HttpClient.download(report_url(report_request_id))
end

Expand Down

0 comments on commit 80b21fe

Please sign in to comment.