How to get product counts for Smart Shopping Ad

57 views
Skip to first unread message

Bat-Ochir Enkhbaatar

unread,
Sep 8, 2021, 5:46:55 AM9/8/21
to AdWords API and Google Ads API Forum
How to get product counts for Smart Shopping Ad using GoogleAdsAPI ?

Screen Shot 2021-09-08 at 18.42.20.png

There is conversation about this, but it recommended to use Shopping Performance report of AdWords API. I want to use GoogleAdsAPI only.

Thank you,
Bat

Google Ads API Forum Advisor

unread,
Sep 9, 2021, 5:26:33 AM9/9/21
to b...@corekara.co.jp, adwor...@googlegroups.com

Hello Bat,

Thank you for reaching out to us.

In the Google Ads API's perspective, you can get product counts by using the shopping_performance_view and utilize this segment field (segments.product_item_id).

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


ref:_00D1U1174p._5004Q2NSKdC:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Sep 13, 2021, 1:15:28 PM9/13/21
to b...@corekara.co.jp, adwor...@googlegroups.com
Hi Bat-Ochir,

I work with Mark and will assist you. I had to delete your last post as it contained logs. Here is a redacted version:


Thank you for your support.


I tried  shopping_performance_view  but no success. Could you help to build correct query?

 I am getting empty results for all my queries. For example:

SELECT shopping_performance_view.resource_name FROM shopping_performance_view

SELECT segments.product_type_l1, campaign.idad_group.id FROM shopping_performance_view WHERE customer.id = 1684984350 AND campaign.id = 14527668859 AND ad_group.id = 121937616370

SELECT campaign.id, ad_group.id, segments.product_item_id FROM shopping_performance_view WHERE customer.id = 1684984350 AND campaign.id = 14527668859 AND ad_group.id = 121937616370


This is my product group in Ads manager. I want to get same data in popup.
Screen Shot 2021-09-10 at 17.04.52.png


Attaching AdGroup info for reference



There's a good reason nothing is returned, according to Excluding zero impressions by segmenting zero impressions are always excluded when segmenting a report, provided all metrics are zero. All metrics are 0 in your case, hence with segmenting nothing is returned.

The issue is that "SELECT shopping_performance_view.resource_name FROM shopping_performance_view" also doesn't return anything. I reproduced this behavior and will raise it with my team. We will get back to you as soon as possible.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 


ref:_00D1U1174p._5004Q2NSKdC:ref
Reply all
Reply to author
Forward
0 new messages