Hello Peter! Very thanks for reply!

I think my question is related more to Ads API because i use GAQL queries, 
and think this queries routed to the same engine that process queries from 
API (please, correct me if its wrong).

My customer want to analyze data which appeared in UI when selecting 
"Locations" (from left menu) -> and then "Matched locations (account)" 
(above table header)
Here is the screenshot with data which i want to get from query:
https://yadi.sk/i/vYwXdBYQC9pNLg
(can't attach image here because message was deleted immediately after i 
try to post it)

In API docs (near here: 
https://developers.google.com/google-ads/api/fields/v8/user_location_view_query_builder
 ) 
i found 3 resources related to locations:

geographic_view
location_view
user_location_view

Only "user_location_view" has "user_location_view.targeting_location" 
attribute. Which i expect to be responsible for showing targeted or matched 
locations.

I make 2 queries with different user_location_view.targeting_location 
condition:


This query, with user_location_view.targeting_location = TRUE produces 3 
rows:

"SELECT user_location_view.country_criterion_id, 
user_location_view.resource_name, user_location_view.targeting_location, 
segments.geo_target_most_specific_location, customer.descriptive_name, 
customer.id FROM user_location_view WHERE 
user_location_view.targeting_location = TRUE"

3 rows returned.

But this, with only difference that user_location_view.targeting_location = 
FALSE

"SELECT user_location_view.country_criterion_id, 
user_location_view.resource_name, user_location_view.targeting_location, 
segments.geo_target_most_specific_location, customer.descriptive_name, 
customer.id FROM user_location_view WHERE 
user_location_view.targeting_location = FALSE"

returns nothing.


And here i am stuck... Don't know how to pull this data, which i expect to 
get from my second query.

On Tuesday, October 19, 2021 at 10:59:31 AM UTC+7 adsapi wrote:

> Hi, 
>
> Thank you for reaching out.
>
> You may note that this forum channel specializes in AdWords 
> <https://developers.google.com/adwords/api/docs/guides/start?hl=en> / Google 
> Ads <https://developers.google.com/google-ads/api/docs/start?hl=en> API 
> related concerns only.
>
> Since you mentioned using Adwords (Google Ads) Scripts 
> <https://developers.google.com/google-ads/scripts/docs/your-first-script>, 
> you may reach out to their support team instead via their own forum 
> <https://groups.google.com/g/adwords-scripts>, if this is indeed the 
> platform you are currently using.
>
> However, if you are using the above mentioned APIs, could you provide our 
> team with more details on the said matched locations? I asked because 
> targeted (not matched) locations can be extracted using the location_view 
> <https://developers.google.com/google-ads/api/fields/v8/location_view?hl=en>
> .
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2PKP5e: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 
"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/e4238ffb-dd26-4985-8f6c-3902b332d02cn%40googlegroups.com.
  • Ho... Александр Кочкарёв
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Александр Кочкарёв
      • ... Александр Кочкарёв
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
          • ... Александр Кочкарёв
      • ... Александр Кочкарёв
    • ... Александр Кочкарёв
      • ... Александр Кочкарёв

Reply via email to