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!