Re: [Python] Adwords API - Product Partition

2018-10-26 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Kevin, Glad that you were able to find the solution. You are right, to partition with the offer id, you will need to use the ProductOfferId dimension. Here is the list

Re: [Python] Adwords API - Product Partition

2018-10-26 Thread Kevin Weitzner
I figured it out, using the pre-built definitions in the example. For anybody else who needs to do this in Python - you can build it off this -- include the class ProductPartitionHelper - pass it a list of PLA IDs and it will create them. There is probably a better way to do this - but this

Re: [Python] Adwords API - Product Partition

2018-10-26 Thread Kevin Weitzner
Additionally -- the end goal is to be able to built it out like the attached image. On Friday, October 19, 2018 at 9:39:25 AM UTC-5, Kevin Weitzner wrote: > > Greetings, > > I'm attempting to modify the add_product_partition_tree.py ( >

Re: [Python] Adwords API - Product Partition

2018-10-26 Thread Kevin Weitzner
Hi Sreelakshmi, Sorry for the delay, I've been working on other projects this week. The image you've attached does not appear to show up. I am trying to modify the sample you've given to do a small test, and still running into an error - if I exclude the parentCriterionId:-1, it gives an

Re: [Python] Adwords API - Product Partition

2018-10-23 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Kevin, Yes, I did get the details that you had shared. If you are looking for a product partition tree as attached in the screenshot, you could use the code sample attached. The "empty" caseValue of the correct type is required to represent "all other values". Please check here

Re: [Python] Adwords API - Product Partition

2018-10-22 Thread Kevin Weitzner
I have sent you some details privately. Thanks On Monday, October 22, 2018 at 2:15:48 PM UTC-5, Sreelakshmi Sasidharan (AdWords API Team) wrote: > > Hello Kevin, > > Glad that you were able to remove the existing product partition. What > issue are you facing? Could you please share the

Re: [Python] Adwords API - Product Partition

2018-10-22 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello Kevin, Glad that you were able to remove the existing product partition. What issue are you facing? Could you please share the error that you are getting along with your SOAP logs? You can use reply privately to the author option while responding. Thanks, Sreelakshmi, AdWords API Team

Re: [Python] Adwords API - Product Partition

2018-10-22 Thread Kevin Weitzner
> > 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':

Re: [Python] Adwords API - Product Partition

2018-10-19 Thread Kevin Weitzner
Hi, It's not clear exactly how to do this - can I do it via this library without an external report call? In the c# library it looks like there exists a method to do this rather easily - "// Build a new ProductPartitionTree using the ad group's current set of criteria.

Re: [Python] Adwords API - Product Partition

2018-10-19 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Kevin, >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

[Python] Adwords API - Product Partition

2018-10-19 Thread Kevin Weitzner
Greetings, I'm attempting to modify the add_product_partition_tree.py (https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201806/shopping/add_product_partition_tree.py) example file to create a product group with a single PLAID - and every other item to be