Product Partition Issue when when migrated from adspygoogle (v201409) to googleads (201502)

52 views
Skip to first unread message

mccaccou...@gmail.com

unread,
Jul 15, 2015, 5:54:30 PM7/15/15
to adwor...@googlegroups.com, yoge...@yahoo-inc.com, gua...@yahoo-inc.com

The same code to create Product Partition Tree seems to succeed in v201409 and with adspygoogle library but fails with googleads in v201502.
As far as I understand the version upgrade to v201502 did not include any changes in this particular area and I have also referred the examples for each of the versions mentioned in https://github.com/googleads/googleads-python-lib/search?utf8=%E2%9C%93&q=ProductPartition and see that no specific code change has happened except for the version number change.

Am confused and would appreciate some help here. 

Please note that the same list of operations succeeds when using adspygoogle library in 201409v

Error I get while using googleads library and hitting v201502:

[AdGroupCriterionError.PRODUCT_PARTITION_ALREADY_EXISTS @ operations[42].operand.criterion, AdGroupCriterionError.PRODUCT_PARTITION_ALREADY_EXISTS @ operations[45].operand.criterion, AdGroupCriterionError.PRODUCT_PARTITION_ALREADY_EXISTS @ operations[46].operand.criterion, AdGroupCriterionError.PRODUCT_PARTITION_ALREADY_EXISTS @ operations[47].operand.criterion]


List of Operations used for the mutate call:

[{'operator': 'REMOVE', 'operand': {'adGroupId': '14803427457', 'criterion': {'partitionType': 'SUBDIVISION', 'id': u'18283950120', 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'adGroupId': '14803427457', 'criterion': {'partitionType': 'SUBDIVISION', 'id': '-1', 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'chic alert t-shirts', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'fashionable id pendants', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'stainless steel id necklaces', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'shop other chic products', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1100000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'medical id keychains', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'other chic products', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'chic all around id necklaces', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1100000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"toddler id's", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1100000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'chic charm id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '210000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"men's dog tags & necklaces", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1100000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'id key chains', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1200000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'cool dog tag id pendants', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '500000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'watches with medical id', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"men's chain id bracelets", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '2000000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"men's ids", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '500000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'pet id tags', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1500000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'kids id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '280000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'athletic & sport id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1100000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'classy classic id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '500000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"pet id collar tags - they're your kids too!", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '2000000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"women's bracelets", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"men's stainless steel bracelets", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1500000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'kids ids', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1600000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'athletic & sporty id bracelets for kids', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1600000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'athletic id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'leather ids for kids & teens', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1200000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'fashionable chain id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'shop id necklaces', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1300000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'bangle id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'stylish id chain necklaces', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '2100000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'shop id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1900000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"shop men's ids", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1100000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'trendsetter id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"women's necklaces", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'stainless steel id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '2700000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'para cord id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '400000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'sale', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1300000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'cool leather id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1800000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"men's id bracelets", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'long layering id necklaces', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1100000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"men's dog tags & necklaces", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1900000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"shop kid's ids", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '500000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'id watches', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1600000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'athletic & sport id bracelets', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '210000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'leather ids for kids & teens', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '280000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'athletic & sporty id bracelets for kids', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '20000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u"men's stainless steel necklaces", 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, {'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '10000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}]

Josh Radcliff (AdWords API Team)

unread,
Jul 16, 2015, 9:58:55 AM7/16/15
to adwor...@googlegroups.com, mccaccou...@gmail.com, gua...@yahoo-inc.com, yoge...@yahoo-inc.com
Hi,

It looks like operations 25 and 47 are the same except for escaping the ampersand:

25:
{'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '1600000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'athletic & sporty id bracelets for kids', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, 
47:
{'operator': 'ADD', 'operand': {'biddingStrategyConfiguration': {'bids': [{'bid': {'microAmount': '280000', 'xsi_type': 'Money'}, 'xsi_type': 'CpcBid'}]}, 'adGroupId': '14803427457', 'criterion': {'parentCriterionId': '-1', 'partitionType': 'UNIT', 'caseValue': {'type': 'CUSTOM_ATTRIBUTE_0', 'value': u'athletic & sporty id bracelets for kids', 'xsi_type': 'ProductCustomAttribute'}, 'xsi_type': 'ProductPartition'}, 'xsi_type': 'BiddableAdGroupCriterion'}}, 

If you remove one of those operations, does the request succeed?

Thanks,
Josh, AdWords API Team

mccaccou...@gmail.com

unread,
Jul 16, 2015, 6:24:28 PM7/16/15
to adwor...@googlegroups.com, yoge...@yahoo-inc.com, gua...@yahoo-inc.com
Thanks for the response! It was the issue.
However earlier we were setting the custom_label0 as escaped string. And so we were trying to escape the product groups as well. Was there a change on that front? Right now everything seems to work fine without escaping on the GMC side
And there were no deduce happening on escaped and unescaped string as it happens now

Josh Radcliff (AdWords API Team)

unread,
Jul 17, 2015, 11:19:28 AM7/17/15
to adwor...@googlegroups.com, mccaccou...@gmail.com, gua...@yahoo-inc.com, yoge...@yahoo-inc.com
Hi,

I don't see any changes over recent months that would modify the behavior for escaped vs. unescaped strings in the AdWords API. It may be that some of the encoding issues recently resolved in the Python library also removed the need to add escaping.
Reply all
Reply to author
Forward
0 new messages