Hello!

We're trying to migrate a few reports from v201809 of the AdWords API to V6 
of the Ads API

I'm referencing this 
documentation: https://developers.google.com/google-ads/api/fields/v6/campaign

My query is:

select customer.id, campaign.id, segments.date, segments.ad_network_type, 
segments.conversion_action_category, metrics.conversions, 
segments.conversion_action_name, metrics.cost_per_conversion, 
metrics.conversions_from_interactions_rate from campaign where 
segments.date   DURING   LAST_30_DAYS 

My error is:


Failure message: errors {

  error_code {

    query_error: 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_action_category\'(unsupported metrics: 
\'conversions_from_interactions_rate\', \'cost_per_conversion\'), 
\'segments.conversion_action_name\'(unsupported metrics: 
\'conversions_from_interactions_rate\', \'cost_per_conversion\')."

}


When I reference the above V6 documentation, and I select "Yes, it is" for 
is Campaign in the FROM clause, all of the fields referenced above show as 
available to select at the same time ... ie. "This page shows all metrics 
and segments that can be put in the same SELECT clause as the fields of 
campaign."

So, is the documentation incorrect or is the error message incorrect?


Thanks

Pete

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ed70d996-2668-4634-8cdf-c5bdd02b2946n%40googlegroups.com.

Reply via email to