Problem with Account_budget.Status

66 views
Skip to first unread message

Xuan Van Do

unread,
Feb 7, 2023, 8:24:03 PM2/7/23
to Google Ads API and AdWords API Forum
We are trying to use the account_budget.status. Based on the Google Ads API docs, there are 5 types of acc_budget.status. But when we call the API using filter status IN ('UNSPECIFIED', 'UNKNOWN'), it returns an error.
Can you confirm if those statuses are still supported or is it deprecated?
Screen Shot 2023-02-07 at 11.33.29.png

Google Ads API Forum Advisor

unread,
Feb 8, 2023, 5:27:59 AM2/8/23
to van...@flinters.vn, adwor...@googlegroups.com

Hi Xuan,
 

Thanks for reaching out to the Google Ads API team. I hope you are doing well today.
 

With regards to your concern, I can see that you encountered PROHIBITED_ENUM_CONSTANT error. This means a condition used in the query references an unsupported enum constant.


As aside, I tried using the Query builder with your provided filter "IN ('UNSPECIFIED', 'UNKNOWN')" in the account_budget it returns an invalid query message (Malformed operand: "IN ('UNSPECIFIED', 'UNKNOWN')". Filtering conditions on the "account_budget.status" field using the "IN" operator must contain an operand that takes the format of parentheses containing a comma separated list of enum values on the field account_budget.status. The following are valid enum values: APPROVED, CANCELLED, PENDING, UNKNOWN.)


You may also refer to this exact account_budget_query_builder to freely see the selectable fields in the “Choose a Clause to Select From” section.


Regards,

Google Logo
Darwin
Google Ads API Team
 



ref:_00D1U1174p._5004Q2iXD9h:ref

Xuan Van Do

unread,
Feb 8, 2023, 6:58:27 AM2/8/23
to Google Ads API and AdWords API Forum
 Thank you so much! So I have two question:
1. UNSPECIFIED is no longer supported, right?
2. I tried your guides with UNKNOWN enum but still got the error as the picture.
 That's mean UNKNOWN enum is also no longer supported, right?Screen Shot 2023-02-07 at 11.34.16.png

Vào lúc 17:27:59 UTC+7 ngày Thứ Tư, 8 tháng 2, 2023, Google Ads API Forum Advisor đã viết:

Google Ads API Forum Advisor

unread,
Feb 8, 2023, 11:29:21 AM2/8/23
to van...@flinters.vn, adwor...@googlegroups.com

Hi Xuan,

Thanks for getting back to us.

Kindly see below responses to your queries:



1. UNSPECIFIED is no longer supported, right?

>> Yes, correct.



2. I tried your guides with UNKNOWN enum but still got the error as the picture.
That's mean UNKNOWN enum is also no longer supported, right?

>> I’ve tried on my end to include the UNKNOWN enum in the filter and I didn’t get any error. You may see below GAQL:

SELECT 

  account_budget.id

  account_budget.name

  account_budget.status 

FROM account_budget 

WHERE 

  account_budget.status IN ('APPROVED', 'CANCELLED', 'PENDING', 'UNKNOWN') 


That said, you should be able to use enum in your filter as seen in the below screenshot:

 

 

Feel free to reach back to us for any other additional queries related to the Google Ads API by opening a new forum thread, and we will assist you better.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2iXD9h:ref

Xuan Van Do

unread,
Feb 8, 2023, 8:28:30 PM2/8/23
to Google Ads API and AdWords API Forum
I understand. Thank for your support so much! 

Vào lúc 23:29:21 UTC+7 ngày Thứ Tư, 8 tháng 2, 2023, Google Ads API Forum Advisor đã viết:
Reply all
Reply to author
Forward
0 new messages