Hi, If you specify partialFailure <https://developers.google.com/adwords/api/docs/guides/soap#partialFailure> *true* then yes, the first one will succeed and the rest will fail. If you do not specify *partialFailure* or set it to *false*, then all of the operations will fail and you'll get a SOAP fault.
Cheers, Josh, AdWords API Team On Thursday, July 10, 2014 4:04:52 PM UTC-4, Filipe Costa wrote: > > Josh, what are you saying exactly? If I send more than one > AdGroupCriterionOperation, for same ad_group_id and keyword_id, in the same > request, it will reject n -1 and consider just one? Or will it reject all? > > Thanks > > On Monday, June 2, 2014 2:23:34 PM UTC-3, Josh Radcliff (AdWords API Team) > wrote: >> >> Hi, >> >> Are you passing more than one AdGroupCriterionOperation for the same >> *ad_group_id* and *criterion.id <http://criterion.id>* in the same >> request? It's possible that the API rejects such requests because one of >> the operations will overwrite the other. >> >> Thanks, >> Josh, AdWords API Team >> >> On Saturday, May 31, 2014 7:46:50 PM UTC-4, Michael Ni wrote: >>> >>> 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 >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.