How to update a shopping product partition tree (Python)

59 views
Skip to first unread message

Ben

unread,
May 24, 2019, 10:44:04 AM5/24/19
to AdWords API and Google Ads API Forum
Hey,

I managed to create shopping product partition trees based on the following example:

However, in case the partition needs to change e.g. a new product needs to be added, I remove the existing partition via this part:

division_old = {
              'xsi_type': 'ProductPartition',
              'partitionType': 'SUBDIVISION',
              'id': '293946777986'
          }

        adgroup_criterion_old = {
              'xsi_type': 'BiddableAdGroupCriterion',
              'adGroupId': ADGROUP_ID,
              'criterion': division_old
          }

        operation = {
              'operator': 'REMOVE',
              'operand': adgroup_criterion_old
          }

before adding a new product partition tree

Is there a way to update an existing product partition tree? 

I am aksing because our SEM team is worried, that the removal will have negative effects on performance as the collected information might be deleted as well for optimization. 

Thanks 

Google Ads API Forum Advisor Prod

unread,
May 24, 2019, 5:21:25 PM5/24/19
to adwor...@googlegroups.com
Hello Ben,

Yes, you should be able to update the product partitions created.

Regards,
Sai Teja, AdWords API Team

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