Hi Iván,

Thank you for reaching out to our API support team. You may refer below for my 
responses to the questions that you sent over :

I have a product from the shopping_performance_view, how can I get the product 
group this product belongs to? In order to see if its product groups i excluded 
or not?

You can try the query below to determine which listing group or parent the 
product item belongs to :

SELECT ad_group_criterion.negative, ad_group_criterion.listing_group.type, 
ad_group_criterion.listing_group.parent_ad_group_criterion FROM 
ad_group_criterion WHERE 
ad_group_criterion.listing_group.case_value.product_item_id.value = '123456789'

Moreover, if I have an specific product group, how can I get all the products 
that belongs to that product group?

If you already know the criterion Id of your Product Group, you can then try 
the query below :

SELECT ad_group_criterion.listing_group.case_value.product_item_id.value FROM 
ad_group_criterion WHERE ad_group_criterion.criterion_id IN  ('987654321')

If the product are not separated as a product group of 1 product, the do not 
have de parent_ad_group_criterion field and I cannot get this info.

For this item, could you further elaborate the scenario?

Best regards,

Peter Laurence
Google Ads API Team
ref:_00D1U1174p._5004Q2f33oo: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 [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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/BhFfQ000000000000000000000000000000000000000000000RJE0YY002APXPjTfRL6XrlorNN36Ew%40sfdc.net.

Reply via email to