Ruby AdWords client, add_shopping_campaign.rb -derived code not adding a product group

12 views
Skip to first unread message

doug livesey

unread,
Jan 19, 2016, 1:59:04 PM1/19/16
to AdWords API Forum
Hi -- I've been adapting the code in the Ruby examples: https://github.com/googleads/google-api-ads-ruby/blob/master/adwords_api/examples/v201506/shopping_campaigns/add_shopping_campaign.rb
However, the campaign, once created, gets no impressions -- it's been running all weekend.
We think that it might be because no product group is created for the campaign by the calls to the API.
When I go to look at a created campaign in the browser UI, there is a link in the product group section telling me to click it to create a default product group.
I do that, and an "All products" group is created.
Firstly, does my thinking seem right, here?
And secondly, could any one offer any advice as to how I could create the "All products" product group in the API when I create the campaign?
Thanks very much for any & all assistance,
   Doug.

Yin Niu

unread,
Jan 19, 2016, 9:17:14 PM1/19/16
to AdWords API Forum
Hi Doug, 

If you create a shopping campaign from UI, a default product group will be created for you. In API, you need to create one yourself. Otherwise it is an empty AdGroup and won't serve. This link explains how to create ProductPartition and associate it with AdGroup. If you create only the root node with ProductPartitionType=UNIT, then a "All Products" product group will be created. 

Thanks,
Yin, AdWords API Team. 

doug livesey

unread,
Jan 20, 2016, 9:04:59 AM1/20/16
to AdWords API Forum
That seems to be doing the trick, thankyou! I'll see if the created campaign is working, then mark this as complete.
Thanks again!
Reply all
Reply to author
Forward
0 new messages