Shopping Campaign Ads: If I have no Product Groups (no partitions) will all my products be included in the shopping ad campaign?

188 views
Skip to first unread message

Clement Leung

unread,
Oct 6, 2016, 10:20:49 PM10/6/16
to AdWords API Forum
Currently experimenting with the shopping campaign ads via this example: https://github.com/googleads/google-api-ads-ruby/blob/master/adwords_api/examples/v201609/shopping_campaigns/add_shopping_campaign.rb 

Shopping Campaign, Ad Group, and Product Ad is created. But no "Product Group"/Product Partitions. What is the behaviour of this configuration? Are all products included? Or no products are included because no partition is created? 

When created a campaign user in Adwords Web UI, "All Products" is the default Product Group created. So i wonder if i need to do the same via the API? Or is the partition not required?

Thanks!

Clement

Joyce Lava

unread,
Oct 6, 2016, 10:57:41 PM10/6/16
to AdWords API Forum
Hi Clement,

I can see that you have the same question in this other post. Let us continue the discussion in this thread to properly track the case.

Regarding your concern, the example code add_shopping_campaign.rb shows the creation of shopping campaign, adGroup and a productAd. After this, you may try out our add_product_partition_tree.rb to create the ProductPartition tree on your adGroup. You may try this using your test account and please let me know the results. The complete documentation about Shopping campaigns in the AdWords API is available here.

Best,
Joyce, AdWords API Team

Clement Leung

unread,
Oct 7, 2016, 9:59:58 AM10/7/16
to AdWords API Forum
Hi Joyce,

Thank you for the quick response. I understand that I can use add_product_partition_tree.rb. However, if I don't need to subdivide/partition my products, and just want to advertise all products with the same bid amount, is it necessary to add a "product group"/partition in order to run an ad for all my products?

Thanks,

Clement

Joyce Lava

unread,
Oct 10, 2016, 10:30:27 PM10/10/16
to AdWords API Forum
Hi Clement,

Apologies for the delayed response. You will still need to make a product partition tree with just a root node to be able to serve ads.

Hope this helps.

Clement Leung

unread,
Oct 11, 2016, 12:53:12 AM10/11/16
to AdWords API Forum
I see. Thanks Joyce!

chris...@feedforce.jp

unread,
May 12, 2017, 6:35:30 AM5/12/17
to AdWords API Forum
Hi Clement and Joyce,

We have exactly the same issue as you did, meaning we only need one group without any sub-group or partition. However my engineer has no idea how to create a "product partition tree with just a root node".
Can you please let me know how did you sort this out in the end? Do you have a code sample available by any chance?

Thanks!

Sreelakshmi Sasidharan (AdWords API Team)

unread,
May 12, 2017, 2:27:29 PM5/12/17
to AdWords API Forum
Hi, 

I will be following up on this thread.

To create a product partition with just the root node, you will need to create the instance of product partition node as 'unit' instead of 'subdivision' and specify the bid. Please check the sample SOAP request for reference:
  <soapenv:Body>
            <operations>
                <operator>ADD</operator>
                <operand xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201702" xsi:type="ns2:BiddableAdGroupCriterion">
                    <ns2:adGroupId>****</ns2:adGroupId>
                    <ns2:criterion xsi:type="ns2:ProductPartition">
                        <ns2:id>-1</ns2:id>
                        <ns2:partitionType>UNIT</ns2:partitionType>
                    </ns2:criterion>
                    <ns2:biddingStrategyConfiguration>
                        <ns2:bids xsi:type="ns2:CpcBid">
                            <ns2:bid>
                                <ns2:microAmount>900000</ns2:microAmount>
                            </ns2:bid>
                            <ns2:cpcBidSource>CRITERION</ns2:cpcBidSource>
                        </ns2:bids>
                    </ns2:biddingStrategyConfiguration>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>

You can find the sample to create product partition here. The highlighted portion is required with the change mentioned above. You could remove the section after that which is adding child nodes. Samples in other languages can also be found here. Let me know if you have face any issues. 

Thanks,
Sreelakshmi, AdWords API Team

chris...@feedforce.jp

unread,
May 14, 2017, 11:00:38 PM5/14/17
to AdWords API Forum
Great! thanks for the sample, this helped a lot! :)
Reply all
Reply to author
Forward
0 new messages