Hi Support, 
I am trying to pull metrics.historical_quality_score of customer, ad_group, 
campaign and keyword_view resources but getting an error message in the 
response for all except keyword_view resource. The documentation 
<https://developers.google.com/google-ads/api/docs/fields/metrics#metricshistorical_quality_score>
 mentions 
historical_quality_score can be pulled for these resources but I guess not. 
Please advice.

-- customer resource
message: "Cannot select or filter on the following metrics: 
\'historical_quality_score\'(could not support requested resources: 
\'CUSTOMER\'), since metric is incompatible with the resource in the FROM 
clause or other selected segmenting resources."
* Campaign resource
message: "Cannot select or filter on the following metrics: 
\'historical_quality_score\'(could not support requested resources: 
\'CAMPAIGN\'), since metric is incompatible with the resource in the FROM 
clause or other selected segmenting resources."


Request
-------
MethodName: google.ads.googleads.v1.services.GoogleAdsService/Search
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=************, 
x-goog-api-client=gl-java/11.0.1 gapic/ gax/1.35.0 grpc/1.16.1}
Body: customer_id: "**********"
query: "Select  metrics.historical_quality_score,  campaign.id,  
customer.id FROM campaign limit 100"
page_size: 1000


Response
--------
Headers: 
Metadata(content-type=application/grpc,request-id=ILT3HQXIh7bumINi9XhKVA,date=Wed,
 
20 Mar 2019 15:51:20 GMT,alt-svc=quic=":443"; ma=2592000; v="46,44,43,39")
Body: null
Status: Status{code=INVALID_ARGUMENT, description=Request contains an 
invalid argument., cause=null}.
Request ID ILT3HQXIh7bumINi9XhKVA failed due to GoogleAdsException. 
Underlying errors:
  Error 0: error_code {
  query_error: PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE
}
message: "Cannot select or filter on the following metrics: 
\'historical_quality_score\'(could not support requested resources: 
\'CAMPAIGN\'), since metric is incompatible with the resource in the FROM 
clause or other selected segmenting resources."

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0bb0a592-9728-40ee-bfd1-4ac39d46bbc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Not abl... Darshan Pradhan
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Darshan Pradhan
        • ... Darshan Pradhan
          • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
            • ... Darshan Pradhan
    • No... Darshan Pradhan

Reply via email to