I had this same problem too...would be nice if this was made clear in the documentation, or possibly a slightly more helpful error? I was trying to work out what Label.Type they were wanting, especially given that in the documentation it didn't list this as required.
It was most confusing. On Friday, 31 October 2014 22:22:52 UTC+1, Josh Radcliff (AdWords API Team) wrote: > > Hi Martin, > > The type *Label* is an abstract type -- you'll want to create/specify a > TextLabel > <https://developers.google.com/adwords/api/docs/reference/v201409/LabelService.TextLabel> > when > creating a new label. > > Cheers, > Josh, AdWords API Team > > On Friday, October 31, 2014 12:56:58 PM UTC-4, odo...@gmail.com wrote: >> >> I tried to add a Label to a campaign. In order to do that, I need the ID >> of the Label so I tried to create the Label before. >> >> operation = [ >> { >> 'operator': 'ADD', >> 'operand': { >> 'name': 'New label', >> 'status': 'ENABLED', >> # 'xsi_type': '???????', >> } >> } >> ] >> label_service.mutate(operation) >> >> They ask me a Type.Label but there is nowhere I can find which type I can >> use ... Then I get this error. >> >> INVALID_LABEL_TYPEInvalid Label type. A specific type of Label is >> required. >> Thank you for your answer, >> >> Martin >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/1f2ddbb1-e60c-4d3e-a069-d84d9ceefb84%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.