diff --git a/lib/bing/ads/api/v12/services/reporting.rb b/lib/bing/ads/api/v12/services/reporting.rb index a34a5c5..555c7ea 100644 --- a/lib/bing/ads/api/v12/services/reporting.rb +++ b/lib/bing/ads/api/v12/services/reporting.rb @@ -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