Hi,
I have a query that works but after adding in
"segments.conversion_attribution_event_type" into the SELECT clause, I get
the following error:
"errors": [
{
"errorCode": {
"queryError": "PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE"
},
"message": "Cannot select the following segments because at least one
unsupported metric is found in SELECT or WHERE clause:
'segments.conversion_attribution_event_type'(unsupported metrics:
'all_conversions_from_interactions_rate', 'average_cpc', 'clicks',
'cost_micros', 'cost_per_all_conversions', 'cost_per_conversion', 'ctr',
'impressions')."
}
]
My query looks like this:
"SELECT campaign.name, campaign.status, campaign.advertising_channel_type,
campaign.start_date, campaign.end_date, metrics.impressions,
metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros,
metrics.conversions, metrics.cost_per_all_conversions,
metrics.cost_per_conversion,
metrics.all_conversions_from_interactions_rate,
segments.conversion_attribution_event_type
FROM campaign
WHERE segments.date DURING LAST_30_DAYS"
It looks like the segment is not compatible with some of the metric fields.
I added in "segments.conversion_attribution_event_type" to be able to know
if the conversion was from a signup, download, etc. Is there a way I can
find that information another way? Also does anyone know why that segment
is incompatible with some metrics in the SELECT? Thanks!
Bryan
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ac6527a4-bbc3-447d-a9a1-ff1f0709b251n%40googlegroups.com.