Hi,
I am trying to automate Budget Order management (I am using consolidated billing). I want to be able to add an amount to a budget order using the adwords api.
Using the BudgetOrderService, I can get a
BudgetOrder, and see its spendingLimit. I can also use BudgetOrderService to modify the spendingLimit.
Using these, I can increase the Budget Amount of a BudgetOrder by any amount. Let's say I want to add $50 to a $180 budget:
I get the BudgetOrder's spendingLimit ($180) and add $50 for a total of $230. I then use BudgetOrderService to set the spendingLimit of the budget order to $230. So far, this has been working perfectly.
The problem comes in when there is a credit on the budget order:

In this case, the BudgetOrder's spendingLimit is $280.00, which makes sense, I guess: $180 + $100 = $280
Let's say I want to add $50 to this budget order. I get the spendingLimit ($280), and add $50 for a total of $330. I use BudgetOrderService to set the spendingLimit of this particular budget order to $330.
I expect to see in the account's Account Budgets page:
Budget Amount
$230
+$100
= $330
But what I get is:
Budget Amount
$330
+$100
= $430
So, if I am looking at this correctly, spendingLimit represents Budget Amount + Credit Amount, but when I mutate the budget order, spendingLimit only represents Budget Amount.
Is there any way around this?
Thanks!