API Query Builder Validator with unexpected error

30 views
Skip to first unread message

Joao Falcao

unread,
May 29, 2024, 4:43:39 PM5/29/24
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: v14

  * Query: "SELECT asset_group.name, metrics.clicks FROM asset_group"

  * Result: Invalid Query (errors below)

    * 'metrics.clicks' is not a valid field in the SELECT clause when 'asset_group' is the resource in the FROM clause. Fields in the SELECT must be 'Selectable'.

  * Link to query result: https://gaql-query-builder.uc.r.appspot.com/v14/share?q=SELECT%20asset_group.name%2C%20metrics.clicks%20FROM%20asset_group

  * Expected result: Valid Query


Thanks!

Google Ads API Forum Advisor

unread,
May 29, 2024, 7:00:21 PM5/29/24
to jo...@gopanoply.com, adwor...@googlegroups.com

Hi,

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

Kindly note that the field metrics.clicks is not available in version 14 of the Google Ads API. However, this field is available from version 15 onwards. This is the reason for the error that you are getting. So please run the same query with version 15 or 16.

Please be informed that version 14 is deprecated as of October 18, 2023, and will sunset by the end of June 5, 2024. So, I would suggest you upgrade to v16. For information regarding depreciation and sunset, you can check this reference document, and you may follow this link to upgrade to the latest version

This message is in relation to case "ref:!00D1U01174p.!5004Q02tJ89C:ref" (ADR-00237056)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages