Attach existing textlabel to new adgroup

52 views
Skip to first unread message

Margaret

unread,
Jul 27, 2017, 12:04:11 PM7/27/17
to AdWords API Forum
I'm trying to create a new adgroup and attach an existing label to it.  I'm getting this error:

'methodName': mutate, 'serviceName': AdGroupService, 'operations': 1, 'faultMessage': "[EntityNotFound.INVALID_ID @ operations[0].operand.labels[0].id; trigger:'LabelId: #####'

I know the label id is right because my code just got it using labelservice.get().  When I try to create a new label instead, with the same text, I get this error:

'[LabelError.DUPLICATE_NAME @ operations[0].operand.name]'.

How can I get the adgroupservice to recognize that the label with the labelid that I sent it exists?

Shwetha Vastrad (AdWords API Team)

unread,
Jul 27, 2017, 2:25:38 PM7/27/17
to AdWords API Forum
Hi, 

Could you enable logging and provide the SOAP request and response logs for the AdGroupService.mutate() request which encountered the EntityNotFound.INVALID_ID error? Please use Reply privately to author when responding. 

Thanks,
Shwetha, AdWords API Team.

Abdul Samad

unread,
Sep 4, 2019, 5:17:35 PM9/4/19
to AdWords API and Google Ads API Forum
Put the code in try catch to avoide duplication errors.
Reply all
Reply to author
Forward
0 new messages