During product partition in a newly created adgroup, getting error(some times
the code works and other time it gives an error)
Server raised fault: '[AdGroupCriterionError.PRODUCT_PARTITION_ALREADY_EXISTS @
operations[0].operand.criterion,
AdGroupCriterionError.PRODUCT_PARTITION_DOES_NOT_EXIST @
operations[1].operand.criterion.parentCriterionId;
trigger:'TempCriterionId{id=1}',
AdGroupCriterionError.PRODUCT_PARTITION_DOES_NOT_EXIST @
operations[2].operand.criterion.parentCriterionId;
trigger:'TempCriterionId{id=1}']'
I'm using adwordsapi python
https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201502/shopping/add_product_partition_tree.py
helper = ProductPartitionHelper(adgroup_id)
root = helper.CreateSubdivision()
cool_product_brand = {'xsi_type': 'ProductCustomAttribute','type':
row['Target'],'value': row['Target Data']}
other_product_brand = {'xsi_type': 'ProductCustomAttribute','type':
row['Target'],}
helper.CreateUnit(root, cool_product_brand, int(float(row['Bid'])*1000000))
helper.CreateUnit(root, other_product_brand)
adgroup_criterion_service.mutate(helper.GetOperations())
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords 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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d4f40a78-be90-4d4b-9e73-4522a4986746%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.