Hi Bharani,
Thanks for your help. Here is an example query and the error I get. Note
that the query works if I remove `metrics.engagements` from the requested
fields. Engagements is listed in the migration guide for URL Performance
Report, but not listed as a metric for the detail_placement_view.
Query:
query = ('SELECT detail_placement_view.display_name,
detail_placement_view.group_placement_target_url, '
'detail_placement_view.placement,
detail_placement_view.placement_type, '
'detail_placement_view.resource_name, '
'detail_placement_view.target_url, campaign.id, ad_group.id, '
'metrics.clicks, metrics.impressions, metrics.video_views,
metrics.engagements '
'FROM detail_placement_view '
'WHERE segments.date DURING LAST_7_DAYS')
response = self.service.search(self.account_id_ext, query, page_size=50)
Error message:
{
error_code {
query_error: PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE
}
message: "Cannot select or filter on the following metrics:
\'engagements\'(could not support requested resources:
\'DETAIL_PLACEMENT_VIEW\', \'DETAIL_PLACEMENT_VIEW\'), since metric is
incompatible with the resource in the FROM clause or other selected
segmenting resources."
}
Thanks,
Ryan
On Tuesday, July 9, 2019 at 1:36:36 PM UTC-4, adsapiforumadvisor wrote:
>
> Hello Ryan,
>
> I'm Peter's colleague addressing your concern on his behalf. The migration
> guide should be helpful to find the equivalent Google Ads API report
> fields. The reporting data can be pulled using the Views directly or they
> can be pulled through the Criteria reports. If you could share more
> context(error logs, report query) on the error that you are receiving it
> will help check this further.
>
> Thanks,
> Bharani, Google Ads API Team
>
> ref:_00D1U1174p._5001UCb3UA:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/cb043c4f-d5be-48c0-9851-9b2f36fefaa7%40googlegroups.com.