Hi,

I am having this issue where I can't update any labels. The update doesn't 
change the label name.

My code is pretty standard I think (scala):

val g = Label.newBuilder
.setName(StringValue.of("Keyword_Coverage_v4.0_Native"))
.setStatus(LabelStatus.valueOf("ENABLED"))
.setResourceName("customers/$ACC/labels/$LABEL_ID")
.build
val fields = FieldMasks.allSetFieldsOf(g)
val op=LabelOperation.newBuilder
.setUpdate(g)
.setUpdateMask(fields)
.build
val client = clientProvider.googleAdsVersion.createLabelServiceClient
client.mutateLabels(account.id.toString,Seq(op).asJava) 

*Keyword_Coverage_v4.0_Native* exists already but I am getting this error:

[error_code {
  label_error: DUPLICATE_NAME
}
message: "Label names must be unique."
trigger {
  string_value: "Keyword_Coverage_v4.0"
}
location {
  field_path_elements {
    field_name: "operations"
    index {
    }
  }
  field_path_elements {
    field_name: "create"
  }
  field_path_elements {
    field_name: "name"
  }
}
,]

Any ideas why?

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8e182415-f729-4ffa-8fad-892d3940c748n%40googlegroups.com.
  • Label update ret... 'Kostas Kougios' via AdWords API and Google Ads API Forum
    • RE: Label u... Google Ads API Forum Advisor Prod
      • Re: Lab... 'Kostas Kougios' via AdWords API and Google Ads API Forum
        • Re:... 'Kostas Kougios' via AdWords API and Google Ads API Forum
          • ... 'Kostas Kougios' via AdWords API and Google Ads API Forum
    • Re: Label u... Google Ads API Forum Advisor Prod
      • Re: Lab... 'Kostas Kougios' via AdWords API and Google Ads API Forum
    • Re: Label u... Google Ads API Forum Advisor Prod

Reply via email to