Unable to Edit Existing Product Partition

118 views
Skip to first unread message

road11

unread,
Aug 6, 2014, 9:55:48 AM8/6/14
to adwor...@googlegroups.com
I've figured out how to create an new Partition tree, but now I had to edit the CaseValue of the Partition I wish to bid on (not the parent partition of the "everything else" partition). 

There is no code sample in the .Net API that shows how to do this (we *really* need that example). I've seen elsewhere Josh indicated that in order to modify any part of the tree, you have to pass the whole tree over. I tried that and got an error indicating that I'm not allowed to modify a product partition that is a Negative AdGroupCriterion (we're excluding the "everything else" unit, thereby making it negative). So, I tried passing every part of the tree except the "everything else" partition. I didn't get an error on the mutate method, but it didn't change anything either; the resulting tree is exactly as it was before. 

That being the case, I see no way to modify the biddable partition using the API. Could someone from the Google API team please give us a code sample of how to do this. We really need complete examples, guys (Create, Read, Update, and Delete). The code samples you've published, even though they don't run successfully, are at least enough to point us in a direction to figure out how to create a partition tree. For editing an existing tree, we need more. It's not as easy as just changing the operation type from ADD to SET (tried that, and got the result above)

This is costing us days trying to figure out how to do this. I've tried seemingly 100 ways to make it work, but cannot seem to. Can somebody please give us a working C# (I'd settle for VB.Net at this point) sample of how to edit an existing partition? 

Eric

Sérgio Gomes (Shopping API Team)

unread,
Aug 8, 2014, 7:02:10 AM8/8/14
to adwor...@googlegroups.com
Hi Eric,

The best approach, if your tree isn't exceptionally large, is to delete the entire tree and re-upload it. IDs will be preserved for items that do not change and have the same parent, so it shouldn't be an issue.

If your trees are large enough that you can't upload them in their entirety in a single request, your best bet is to find a small enough sub-tree for the changes (or part of them), and follow the same procedure: delete the root node of the sub-tree and reupload the entire sub-tree.

Hope this helps!

Cheers,
Sérgio

---
Sérgio Gomes
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902
Reply all
Reply to author
Forward
0 new messages