Class: AmazonAds::Reporting
Overview
Offline Report
Constant Summary
Constants inherited from API
Instance Attribute Summary
Attributes inherited from API
#access_token, #account_id, #profile_id, #region, #retries
Instance Method Summary collapse
-
#create_async_report(configuration:, end_date:, start_date:, name: nil) ⇒ Object
Creates a report request.
-
#delete_async_report(report_id) ⇒ Object
Deletes a report by id.
-
#get_async_report(report_id) ⇒ Object
Gets a generation status of report by id.
Methods inherited from API
Constructor Details
This class inherits a constructor from AmazonAds::API
Instance Method Details
#create_async_report(configuration:, end_date:, start_date:, name: nil) ⇒ Object
Creates a report request
11 12 13 |
# File 'lib/amazon_ads/apis/reporting.rb', line 11 def create_async_report(configuration:, end_date:, start_date:, name: nil) request(:post, "/reporting/reports", json: { "configuration" => configuration, "endDate" => end_date, "name" => name, "startDate" => start_date }.compact, headers: { "Content-Type" => "application/vnd.createasyncreportrequest.v3+json" }) end |
#delete_async_report(report_id) ⇒ Object
Deletes a report by id
18 19 20 |
# File 'lib/amazon_ads/apis/reporting.rb', line 18 def delete_async_report(report_id) request(:delete, "/reporting/reports/#{report_id}") end |
#get_async_report(report_id) ⇒ Object
Gets a generation status of report by id
25 26 27 |
# File 'lib/amazon_ads/apis/reporting.rb', line 25 def get_async_report(report_id) request(:get, "/reporting/reports/#{report_id}") end |