Hi Josh, Thanks for your reply.
I think you misunderstood my query. I am getting the DUPLICATE_ADGROUP_NAME error when I am trying to create a new Adgroup so, in that case the MutateJob operation itself do not have the Adgroup ID. As we know, once we create the Adgroup, we get respective Adgroup ID from Adwords. In earlier API versions, we were getting Adgroup ID in the error response if we try to create a adgroup which already exist in the Adwords account. This behavior helped us to know the Adgroup ID of the duplicate Adgroup (without any additional step for finding the Adgroup ID), the automated script stores it and continue the insertion of the Ads and keywords in that Adgroup using the Adgroup ID. If this behavior is not changed in v201502, with the MutateJobService, there might be some technical issue in the API system. Can you please confirm it. For now, as a workaround, we have applied edits in our automated script which makes separate API call to get Adgroup ID of the respective Adgroup name, if MutateJobService gives the mentioned error. It will help if we can prevent this extra API call. Thanks, Janak On Friday, June 5, 2015 at 2:25:18 AM UTC+5:30, Josh Radcliff (AdWords API Team) wrote: > > Hi, > > I'm not aware of any changes around this logic in v201502. Populating the > ad group ID in the error has always been done on a best-efforts basis, so > there hasn't been a guarantee that this will always occur. > > If the ad group ID is critical to your processing, it would be more > reliable to use the operations index (38 in your example) to look up the > corresponding operation in your mutate job request, and then use the ad > group ID contained in that operation. > > Thanks, > Josh, AdWords API Team > > On Wednesday, June 3, 2015 at 11:15:11 AM UTC-4, Janak Prajapati wrote: >> >> Hi, >> >> We have migrated to v201502 recently and we noticed that, when we get >> DUPLICATE_ADGROUP_NAME error through MutateJobService, the error detail not >> including respective Adgroup ID. In the earlier API versions, we were >> getting Adgroup ID along with the DUPLICATE_ADGROUP_NAME error. >> >> Here is part of the Soap response with v201502, >> >> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:type="AdGroupServiceError"> >> <fieldPath>operations[38].operand.name</fieldPath> >> <trigger>Adgroup Name Here</trigger> >> <errorString>AdGroupServiceError.DUPLICATE_ADGROUP_NAME</errorString> >> <ApiError.Type>AdGroupServiceError</ApiError.Type> >> <reason>DUPLICATE_ADGROUP_NAME</reason> >> </errors> >> >> The Adgroup ID in the error notification was very helpful for our >> automated script so, wanted to confirm about this change. With this change, >> we need to made a separate API call to get Adgroup ID of the duplicate >> adgroup so that, the automated script can continue insertion of Keywords >> and Ads in the same adgroup. >> >> Please confirm, is this a bug in v201502 or a permanent change? >> >> >> Thanks >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. 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/f5c27dfe-42a1-4ac3-9ef9-8b882c04db35%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.