class Bing::Ads::API::V11::Services::Bulk

Bing::Ads::API::V11::Services::Bulk

Public Class Methods

new(options = {}) click to toggle source
# File lib/bing/ads/api/v11/services/bulk.rb, line 8
def initialize(options = {})
  super(options)
end

Public Instance Methods

get_bulk_upload_status(request_id) click to toggle source
# 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') click to toggle source
# 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

Private Instance Methods

service_name() click to toggle source

TODO operations: msdn.microsoft.com/en-us/library/bing-ads-bulk-service-operations.aspx

# File lib/bing/ads/api/v11/services/bulk.rb, line 30
def service_name
  'bulk'
end