search_click_share at ad_group level not available, contrary to documentation (google ads api beta)

20 views
Skip to first unread message

Younggyo Lee

unread,
Aug 7, 2020, 6:29:05 AM8/7/20
to AdWords API and Google Ads API Forum
Hi team,

I was having difficulties at getting some data from API.
I have tried this query in Google Ads API Beta v3 and v4 but always getting this error.

I can also see that the field is available from the UI.
--------------------------------------
Query used:

query = (
 "SELECT "
 "segments.date, "
 "metrics.search_click_share " # This column throws API error for unknown reason
 "FROM ad_group "
 'WHERE segments.date BETWEEN "2020-08-01" AND "2020-08-07" '
 "AND metrics.impressions > 0 "
 "ORDER BY segments.date DESC "
)
--------------------------------------

--------------------------------------
Part of error message from the API:

 query_error: PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE
  }
  message: "Cannot select or filter on the following metrics: \'search_click_share\'(could not support requested resources: \'AD_GROUP\'), since metric is incompatible with the resource in the FROM clause or other selected segmenting resources."
--------------------------------------

Can you please help on this? Thank you!

Google Ads API Forum Advisor Prod

unread,
Aug 7, 2020, 1:36:03 PM8/7/20
to youngl...@gmail.com, adwor...@googlegroups.com
Hello,

There is an issue on our side. I'll pass this over to the team and let you know when this issue is resolved.

Regards,
Anthony
Google Ads API Team

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