lib/bing/ads/api/v11/services/customer_management.rb in bing-ads-0.1.3 vs lib/bing/ads/api/v11/services/customer_management.rb in bing-ads-0.1.4
- old
+ new
@@ -10,10 +10,10 @@
end
def get_accounts_info(customer_id = @customer_id, only_parent_accounts = false)
payload = {
customer_id: customer_id,
- only_parent_accounts: only_parent_accounts
+ 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