Hey folks,
We're trying to fetch the number of phone calls (metrics.phone_calls) on a
customer level with this query:
```
SELECT
metrics.phone_calls
FROM customer
WHERE segments.date >= '2021-01-01'
AND segments.date <= '2023-01-28'
```
We're getting this error:
{"error"=>{"code"=>400, "message"=>"Request contains an invalid
argument.", "status"=>"INVALID_ARGUMENT",
"details"=>[{"@type"=>"type.googleapis.com/google.ads.googleads.v13.errors.GoogleAdsFailure",
"errors"=>[{"errorCode"=>{"queryError"=>"PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE"},
"message"=>"Cannot select or filter on the following metrics:
'phone_calls'(could not support requested resources: 'CUSTOMER'), since
metric is incompatible with the resource in the FROM clause or other
selected segmenting resources."}], "requestId"=>"HIDDEN_FOR_YOU_FOLKS"}]}}
But it should work, according to the doc
<https://developers.google.com/google-ads/api/fields/v13/customer#metrics.phone_calls>
:
[image: Screenshot 2023-04-26 at 7.21.39 PM.png]
Which one is wrong, and which one is right?
I guess there is always the workaround of getting it on the campaign level
and adding them all, but it's not ideal, if it should be supported anyways.
Thanks! :)
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/f4eacf83-23ff-4750-9cca-b615abc8a71cn%40googlegroups.com.