Re: Inconsistency between Report description, Query Validator and real life query response

2023-03-06 Thread Guilhem DELAITRE
Gosh, my bad, I feel so dumb now. It's all described in the page, I just 
had to read carefully.

Sorry for wasting your time, and thx for the reply.
Regards.
On Thursday, March 2, 2023 at 3:20:39 PM UTC+1 Google Ads API Forum Advisor 
wrote:

> Hello Guilhem,
>
> Welcome to Google Ads API support team. Thank you for reaching out to us.
>
> With regards to your concern, this is because the ad_group 
>  page 
> shows all metrics and segments that can be put in the same SELECT clause as 
> the fields of ad_group. However, when you specify ad_group in the FROM 
> clause, some metrics and segments cannot be used and this includes the 
> segments.geo_target_city which is available under geographic_view 
>  if 
> you need it. If you wish to see the available resource under ad_group table 
> you would need to select the "*Yes, it is*" in the option box under the "Is 
> ad_group 
> specified in the FROM clause of your query? 
> "
>  
> question.
>
> For ease of use of API reporting, we would recommend to use the query 
> builder 
> 
>  where 
> it automatically filter what is available resource for specific tables.
>
> Let us know if you have further questions.
>
> Regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2jIXFG:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/3d0c4afb-1867-4694-afe1-1d3ee8d378e6n%40googlegroups.com.


Inconsistency between Report description, Query Validator and real life query response

2023-03-02 Thread Guilhem DELAITRE
Hello,
I don't know if it's the right place to report that but there seems to be 
an inconsistency between this page : ad_group 
 which 
list geo_target_city as an available segment for the ad_group resource, and 
the Query Validator that outputs the following : 
*'segments.geo_target_city' is not a valid field in the SELECT clause when 
'ad_group' is the resource in the FROM clause. Fields in the SELECT must be 
'Selectable'.*

When I actually use a query, I indeed get an error :
*Cannot select or filter on the following segments: 
'segments.geo_target_city'(could not support requested resources: 
'AD_GROUP'), since segment is incompatible with the resource in the FROM 
clause or other selected segmenting resources.*The overly simple request I 
used is this : *SELECT ad_group.id,metrics.impressions, 
segments.geo_target_city FROM ad_group* Which both works and gets validated 
in the Query Validator if I drop *segments.geo_target_city *The same 
problem appear to exists on other *geo_targeting_ *segments with the 
ad_group _resource
Thx in advance for any clarifications,
Regards.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/17d436e8-d1cb-487f-945d-d953067b2b64n%40googlegroups.com.