class Bing::Ads::API::V11::Services::CustomerManagement

Bing::Ads::API::V11::Services::CustomerManagement

Public Class Methods

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

Public Instance Methods

get_accounts_info(customer_id = @customer_id, only_parent_accounts = false) click to toggle source
# File lib/bing/ads/api/v11/services/customer_management.rb, line 12
def get_accounts_info(customer_id = @customer_id, only_parent_accounts = false)
  payload = {
    customer_id: customer_id,
    only_parent_accounts: (only_parent_accounts == true).to_s
  }
  response = call(:get_accounts_info, payload.compact)
  response_body = response_body(response, __method__)
  response_body[:accounts_info][:account_info]
end

Private Instance Methods

service_name() click to toggle source

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

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