My API is making a call to the Google Ads API and returns successful, but
when I try to add new metrics it breaks.
string testQuery = $@"SELECT campaign.name,
campaign.campaign_budget, metrics.clicks, metrics.ctr, metrics.conversions,
metrics.all_conversions
FROM campaign";
This works fine. But when I add
'metrics.all_conversions_from_store_visits'
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 include metrics that are "Selectable with" my campaigns to get
store visits?
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/68cd9f9b-eedd-4cc7-af27-8aecb9c4ff76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.