This query works fine,
string testQuery = $@"SELECT campaign.name,
campaign.campaign_budget, metrics.clicks, metrics.ctr, metrics.conversions,
metrics.all_conversions
FROM campaign";
but when the field 'metrics.all_conversions_from_store_visits' is added it
throws an error.
string testQuery = $@"SELECT campaign.name,
campaign.campaign_budget, metrics.clicks, metrics.ctr, metrics.conversions,
metrics.all_conversions, metrics.all_conversions_from_store_visit
FROM campaign";
Failure:
Message: Status(StatusCode=InvalidArgument, Detail="Request contains an
invalid argument.")
Failure: { "errors": [ { "errorCode": { "queryError":
"PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE" }, "message": "Cannot select
or filter on the following metrics:
'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." } ] }
How do i get 'Selectable with' metrics (store visits) when querying the
campaign resource?
thanks in advance.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/962e0611-36a7-4ec3-8907-e8b4b9b8a70a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.