
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,
|
||||||

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.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,
|
||||||