Hi,
I'm trying to get a report with statistic of a campaign, which includes how many visits received the store from an Ad, and how many orders got. Reading the Docs, i found that there are 2 metrics that could get me that info: metrics.all_conversions_from_order and metrics.all_conversions_from_store_visit. I've the ConversionActions created, i've GTag setted on the Frontend, yet, when i try to query that data, i get an error.
This is my Quey:
SELECT
customer.conversion_tracking_setting.conversion_tracking_id,
metrics.interactions,
metrics.clicks,
metrics.conversions,
metrics.impressions,
metrics.average_cpc,
metrics.all_conversions,
metrics.all_conversions_from_order,
metrics.all_conversions_from_store_visit
FROM campaign
WHERE campaign.resource_name = "[resource_name]"
This is the error:
message: "Cannot select or filter on the following metrics: \'all_conversions_from_order\'(could not support requested resources: \'CAMPAIGN\'), \'all_conversions_from_store_visit\'(could not support requested resources: \'CAMPAIGN\'), since metric is incompatible with the resource in the FROM clause or other selected segmenting resources."
I got to communicate with a Google associate to try to solve this, but i only got this info about this problem:
- It matters which report is specified in the WHERE clause of your query.
- These are both segmenting resources in the extension_feed_item report.
Metrics.all_conversions_from_order and metrics.all_conversions_from_store_visit
apply to feed items only. Use the extension_feed_item report type in the WHERE
clause of the query to get these metrics.
- Metrics.all_conversions should work fine from campaign report
But i dind't understood at all how to use extension_feed_item, i tried to change it on the FROM from campaign to extension_feed_item, but it just returned nothing. Does someone knows how to get this data for reporting from a Query?