I am doing bulk operations where I am updating destination urls of keywords
{
:xsi_type => 'AdGroupCriterionOperation',
:operator => 'SET',
:operand => {
xsi_type: 'BiddableAdGroupCriterion',
ad_group_id: ad_group_id,
criterion: {
xsi_type: 'Keyword',
id: keyword_id,
},
destination_url: url,
}
}
however for some of them, I get
{:field_path=>"operations[197]",
:trigger=>nil,
:error_string=>"DistinctError.DUPLICATE_ELEMENT",
:api_error_type=>"DistinctError",
:reason=>"DUPLICATE_ELEMENT",
:xsi_type=>"DistinctError"}
my suspicion is that when a keyword is
:approval_status=>"PENDING_REVIEW",
that additional mutate on the same keyword will trigger this.
am i wrong?
if I am wrong, what would cause the duplicate element error? out of a batch of 10000 i tried looking for another operation with the same keyword and couldn't find any