BudgetOrderError.INVALID_BUDGET_DATE_RANGE

25 views
Skip to first unread message

Robert Zimmermann

unread,
Dec 15, 2020, 8:02:41 AM12/15/20
to AdWords API and Google Ads API Forum
Hello, 

we have a lot of accounts which has monthly budgets and a scheduled billing transfer for july 2021. 

Now we want to restart these accounts with different budget settings.

We removed all budgets and was trying to book a new budget for december 2020 (start: today) for our new billing account.

But we get an error: 
BudgetOrderError.INVALID_BUDGET_DATE_RANGE @ operations[0].operand.startDateTime.endDateTime

Because the scheduled billing transfer for july 2021 still present in the account.
We can manually remove these transfer. But we have to do it in 500 accounts.

Is there a way to cancel the billing transfer via Adwords API?

best regards
Robert

Google Ads API Forum Advisor Prod

unread,
Dec 16, 2020, 10:38:46 PM12/16/20
to taylor8...@gmail.com, adwor...@googlegroups.com
Hi Robert,

Thank you for reaching out.

The BudgetOrderError.INVALID_BUDGET_DATE_RANGE error is expected if you are attempting to create a BudgetOrder whose duration overlaps with another BudgetOrder for the same account.

You may try and perform a BudgetOrderService.get() first to verify which of your current BudgetOrders will overlap with the new one you are trying to create. If the old BudgetOrder will no longer be used, you can opt to perform a mutate() request to REMOVE it. Here is an example as to how.

Afterwards, you may proceed in creating your new BudgetOrder. Let me know if this helps.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q29S2DM:ref
Reply all
Reply to author
Forward
0 new messages