Hello Ben,

From the error, it looks like the subdivision creation is failing as there
is already a product partition. The subsequent nodes seems to fail as the
subdivision creation failed. Could you please confirm if you were creating
the ad group via Google Ads UI? If so, you will need to first remove the
default product partition and then retry to create your new product
partition. If you want to do this in a new ad group, you could create one
via the API and then use the code sample
<https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201809/shopping/add_product_partition_tree.py> that
you shared to create the product partition. Please give this a try and let
me know if you face any issues.

If you're using the custom labels you will need to specify the xsi_type as
ProductCustomAttribute. Please refer to this
<https://developers.google.com/adwords/api/docs/samples/python/shopping-campaigns#set-a-product-scope-for-a-campaign> sample
as a reference. You may refer to this guide
<https://developers.google.com/adwords/api/docs/guides/shopping#modifying_existing_productpartition_trees> on
how to update existing partitions.

Let me know if you have any other questions.

Regards,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/00d12ia72g0000000h5q1u001vsmlcy60mjacpg6co30c1g68qjie1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • How to ... Ben
    • Ho... Ben
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
        • ... Ben
          • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
            • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
              • ... Ben
              • ... Ben
                • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
                • ... Ben
                • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum

Reply via email to