One advertiser's balance month by month, newest first — what its page shows under Funds: startBalance, accrued (what it was charged), paid (the funds it paid in) and endBalance = startBalance - accrued + paid.
Reference
GET https://YOUR-NETWORK-DOMAIN/rest-api/network/management/get-advertiser-balance-history.do
One advertiser's balance month by month, newest first — what its page shows under Funds: startBalance, accrued (what it was charged), paid (the funds it paid in) and endBalance = startBalance - accrued + paid. Only months with a balance record are listed; 'current' is the newest of them, or null. Requires campaign view and SHOW_ADVERTISERS_BALANCE, or the NETWORK_BILLING_MANAGEMENT (enabled or read-only) and ADVERTISERS_FUNDS permissions; the advertiser must be visible to the caller.
Query Params
idintegerrequired
Advertiser ID
20
Responses
200
{success, data:[{year, month, startBalance, accrued, paid, endBalance}], current, startMonth: yyyy-MM|null — the month the balances start from; earlier months are left out}
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("GET"), "https://YOUR-NETWORK-DOMAIN/rest-api/network/management/get-advertiser-balance-history.do?id=20");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());