BudgetOrderService spendingLimit 'get' vs 'SET' when credits are present

49 views
Skip to first unread message

Evan Giesel

unread,
Aug 15, 2016, 9:25:29 AM8/15/16
to AdWords API Forum
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?

(If it makes any difference, I am using the googleads/googleads-python-lib client library)

Thanks!


Vishal Vinayak (Adwords API Team)

unread,
Aug 15, 2016, 5:08:57 PM8/15/16
to AdWords API Forum
Hi Evan,

spendingLimit in BudgetOrder only accounts for the budget amount and not the credit associated with the account. I would suggest fetching the updated budget amount after the mutate and adding credit manually for calculation purposes.

Regards,
Vishal, AdWords API Team
Reply all
Reply to author
Forward
0 new messages