How to get active account budget?

54 views
Skip to first unread message

min jia

unread,
Nov 10, 2019, 10:06:05 PM11/10/19
to AdWords API and Google Ads API Forum
Hi Team,

As  google-ads api document showes,   account_budget.status is in range of ENUM

 [ 
 APPROVED
CANCELLED
PENDING
UNKNOWN
UNSPECIFIED  ]

And now I want to get the "active one" budget as backend UI showed : 


gg1024.png


as attachment gg1024.png showed.



How can I do a filter query in QAQL to make it work.


Thansks.





gg1024.png

Google Ads API Forum Advisor Prod

unread,
Nov 11, 2019, 12:48:47 PM11/11/19
to 14421...@qq.com, adwor...@googlegroups.com

Hi Min,

Thanks for reaching out. Unfortunately, the Google Ads API currently does not support the Active or Ended as seen from the Google Ads UI. The Google Ads UI has a different logic for their statuses Active and Ended. As an example for Ended status, the API status may be APPROVED but the account budget account_budget.approved_end_date_time may have passed its end date or account_budget.approved_spending_limit_micros has been reached, which is why the Google UI status is Ended. Please let me know if you have any further concerns.

Thanks and regards,
Xiaoming, Google Ads API Team



ref:_00D1U1174p._5001UJaEqC:ref

min jia

unread,
Nov 11, 2019, 9:50:51 PM11/11/19
to AdWords API and Google Ads API Forum
Hi Xiaoming,

Thanks for feeding back to me firstly. That's greate you show me the ended logic, and could you please tell me the active status logic of account bugdet?

Here's my confusion, there is only one active budget in my backend UI, but when I do a QAQL to get account budgets like attachemnt showed:

 WHERE account_budget.approved_end_time_type = 'FOREVER'
 AND account_budget.status = 'APPROVED'

I got two results. And one of them at backend UI was already ended. like 

gg2019.png



Look forward to hearing from you,

Min

 

在 2019年11月12日星期二 UTC+8上午1:48:47,adsapiforumadvisor写道:
gg2019.png

Google Ads API Forum Advisor Prod

unread,
Nov 12, 2019, 11:13:05 AM11/12/19
to 14421...@qq.com, adwor...@googlegroups.com

Hi Min,

The Active status logic on the Google Ads UI is similar to Ended status. If the account_budget.approved_end_date_time has not passed its end date and account_budget.approved_spending_limit_micros has not been reached, then the account budget is considered Active. Our colleagues have raised a feature request for the status of active budget and we will update you on this thread once we have more information.



Thanks and regards,
Xiaoming, Google Ads API Team



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