SELECT
campaign.id,
customer.id,
ad_group.id,
metrics.historical_quality_score
FROM
ad_group
LIMIT
100
Hi Support,
I am trying to pull metrics.historical_quality_score of customer, ad_group, campaign and keyword_view resources but I am getting following message in the response for all except keyword_view. The documentation mentions I should be able to pull for these resources. 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."
* ad_group resourcemessage: "Cannot select fields from the following resource: \'AD_GROUP\', since the resource is incompatible with the resource in FROM clause."
Request-------MethodName: google.ads.googleads.v1.services.GoogleAdsService/SearchEndpoint: 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, ad_group.id, campaign.id, customer.id FROM campaign limit 100"page_size: 1000Response--------Headers: Metadata(content-type=application/grpc,request-id=vDMcF0EmG2UIxWrQ8-wtxQ,date=Wed, 20 Mar 2019 13:20:49 GMT,alt-svc=quic=":443"; ma=2592000; v="46,44,43,39")
Body: nullStatus: Status{code=INVALID_ARGUMENT, description=Request contains an invalid argument., cause=null}.
--Request ID vDMcF0EmG2UIxWrQ8-wtxQ failed due to GoogleAdsException. Underlying errors:Error 0: error_code {query_error: PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE}message: "Cannot select fields from the following resource: \'AD_GROUP\', since the resource is incompatible with the resource in FROM clause."
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 adwords-api+unsubscribe@googlegroups.com.
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/0c34e7b5-aefe-460b-91cb-277b4774ac71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 adwords-api...@googlegroups.com.
Hello,
If you want granularity at a higher level, then you would change your from clause and remove the more detailed items in the select. For example, you can do this to get it by just campaign:
or you can do this if you want granularity at the ad group level:
Of course, you can add more than that in the SELECT clause, but I was simplifying it to show you that this metric can be retrieved for other objects as well. If it is available for that resource, then it will be returned.
Regards,
Nadine, Google Ads API Team
Hi, i am aware of that rule so i corrected my query in the 2nd question. My issue is i am unable to pull historical_quality_score for customer, ad group or campaign.
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 adwords-api+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/5099a2aa-ae3d-429e-992c-cda07de01140%40googlegroups.com.