Lower() function doesn't working

14 views
Skip to first unread message

Banu Chandar

unread,
Aug 17, 2022, 10:18:34 AM8/17/22
to Google Ads API and AdWords API Forum
Hi Google Support,

I've run into an issue with the Google Ads Query Validator and need some help debugging.

  * API Version: v11

  * Query: "SELECT ad_group.name FROM search_term_view WHERE lower(ad_group.name) LIKE 'sds'"

  * Result: Invalid Query (errors below)

    * 'lower(ad_group.name)' is not a valid field in the WHERE clause when 'search_term_view' is the resource in the FROM clause. Fields in the WHERE must be 'Filterable'.

  * Link to query result: https://gaql-query-builder.uc.r.appspot.com/v11/share?q=SELECT%20ad_group.name%20FROM%20search_term_view%20WHERE%20lower(ad_group.name)%20LIKE%20'sds'

  * Expected result: [PLEASE FILL IN (if the query validator produced results that are different than the Google Ads API server, please include your complete logs)]

Thanks!

Google Ads API Forum Advisor

unread,
Aug 17, 2022, 2:51:32 PM8/17/22
to ba...@bwcubesmart.com, adwor...@googlegroups.com
Hi Banu,

Thank you for reaching out to the Google Ads API support team.

You can not use Lower function. Please refer to the GAQL query grammar guide. You can try below the query.

SELECT ad_group.name FROM search_term_view WHERE ad_group.name LIKE 'sds'

Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


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