Hi Ashish,

AdWords API calls are usually atomic in nature - either all the operations 
succeed, or they fail. If you have a failing operation, you should remove 
the failing operation, and make the API call again.

There's a partialFailure soapHeader you could use to get the behaviour you 
want, but I'm not sure if it applies to adding labels. 

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Monday, October 13, 2014 12:36:23 PM UTC-4, Ashish Pathak wrote:
>
> Hi,
>
> I'm trying to apply labels on adgroups
>
> using code -        perations.append({
>           'operator': 'ADD',
>           'operand': {
>               'adGroupId': adGroupID,
>               'labelId':  labelId
>                      }
>          })
>
> if label is already associated with adgroup it returns error 
> : AdGroupServiceError.ADGROUP_LABEL_ALREADY_EXISTS @ 
> operations[104].operand 
>
> which is fine but label should be applied to some of the operation to 
> which label is missing.
>
> Example : if label for operation 0-103 is missing in account I'm not get 
> above error but when I checked in account label was not applied adgroup for 
> which label was missing.
>
> how to handle this case? 
>
> Thanks in advance!
> Ashish
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/4c75205e-73d4-4efd-a2f3-aed6798b2370%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to