Hi Shree,
I have responded to your original question
on
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/adwords-api/luSgfAYfw7E/BciPew4OeBcJ
Cheers,
Anash P. Oommen,
AdWords API Advisor.
On Thursday, January 15, 2015 at 12:19:54 PM UTC+5:30, Shree wrote:
>
> I am trying to write code to check if 'MyLabel' already exists in Labels
> before creating it. I am using Python.
> Using LabelService APIs how should be code written ? Actually I am looking
> for the use of LabelService.get method but cannot specify serviceSelector
> correctly.
> This code gives error for serviceSelector SelectorError.INVALID_FIELD_NAME
>
> label_service = client.GetService('LabelService', version='v201409')
> serviceSelector = {'fields': ['id', 'name'],
> 'predicates' : {'field' : 'name', 'operator' : 'EQUALS',
> 'values' : 'MyLabel'}
> }
> result = label_service.get(serviceSelector)
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f6e068f9-17d8-4c9d-bee6-dfec441f3e9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.