Class: Bing::Ads::API::V11::Services::Bulk
- Defined in:
- lib/bing/ads/api/v11/services/bulk.rb
Overview
Bing::Ads::API::V11::Services::Bulk
Instance Attribute Summary
Attributes inherited from Base
#environment, #retry_attempts, #soap_client
Instance Method Summary collapse
- #get_bulk_upload_status(request_id) ⇒ Object
- #get_bulk_upload_url(account_id = nil, response_mode = 'ErrorsOnly') ⇒ Object
-
#initialize(options = {}) ⇒ Bulk
constructor
A new instance of Bulk.
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ Bulk
Returns a new instance of Bulk.
8 9 10 |
# File 'lib/bing/ads/api/v11/services/bulk.rb', line 8 def initialize( = {}) super() end |
Instance Method Details
#get_bulk_upload_status(request_id) ⇒ Object
20 21 22 23 24 |
# File 'lib/bing/ads/api/v11/services/bulk.rb', line 20 def get_bulk_upload_status(request_id) response = call(__method__, request_id: request_id) response_body = response_body(response, __method__) response_body.slice(:errors, :percent_complete, :request_status, :result_file_url) end |
#get_bulk_upload_url(account_id = nil, response_mode = 'ErrorsOnly') ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/bing/ads/api/v11/services/bulk.rb', line 12 def get_bulk_upload_url(account_id = nil, response_mode = 'ErrorsOnly') account_id ||= @account_id response = call(__method__, response_mode: response_mode, account_id: account_id) response_body = response_body(response, __method__) response_body.slice(:request_id, :upload_url) end |