You also may want to check out the Labels Guide
<https://developers.google.com/adwords/api/docs/guides/labels#create_your_labels>,
which provides an overview of using labels and also mentions that you
should use *TextLabel*.
Cheers,
Josh, AdWords API Team
On Friday, November 21, 2014 6:18:45 AM UTC-5, Rocky Jaiswal wrote:
>
> We have something like this in Ruby, maybe it helps you -
>
> response = label_service.mutate([{operator: 'ADD',
> operand: {xsi_type:
> 'TextLabel',
> name: label_text}
> }])
> response[:value].first
>
> On Friday, 31 October 2014 17:56:58 UTC+1, [email protected] 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 [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/af9723fe-7a4f-4847-8614-1bab7906e255%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.