>
> I was able to remove the existing partition via the code:
>

adgroup_criterion_service = client.GetService(
    'AdGroupCriterionService', version='v201806')

helper = ProductPartitionHelper(adgroup_id)
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
  }


# Make the mutate request
result = adgroup_criterion_service.mutate(operation)



I am still struggling with creating the proper mutate requests for a single 
product partition, and everything else in the other case.  

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/38acf14d-817e-4319-992f-c1da1955bb42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Kevin Weitzner
    • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Kevin Weitzner
        • ... Kevin Weitzner
          • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
            • ... Kevin Weitzner
              • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
                • ... Kevin Weitzner
    • ... Kevin Weitzner
      • ... Kevin Weitzner
        • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to